| java.lang.Object com.sun.media.jai.opimage.FFT
All known Subclasses: com.sun.media.jai.mlib.FFTmediaLib,
FFT | public class FFT (Code) | | The Fast Fourier Transform (FFT) class.
since: EA3 |
Field Summary | |
final public static int | SCALING_DIMENSIONS A flag indicating that the transform is to be scaled by the product
of its dimensions. | final public static int | SCALING_NONE A flag indicating that the transform is not to be scaled. | final public static int | SCALING_UNITARY A flag indicating that the transform is to be scaled by the square
root of the product of its dimensions. | protected int | exponentSign The sign of the exponential. | protected double[] | imag Work array for imaginary part. | protected int | length The length of the FFT. | protected boolean | lengthIsSet Initialization flag. | protected double[] | real Work array for real part. | protected int | scaleType The type of scaling. |
Constructor Summary | |
public | FFT(boolean negatedExponent, Integer scaleType, int length) Construct a new FFT object. |
Method Summary | |
public void | getData(int dataType, Object realArg, int offsetReal, int strideReal, Object imagArg, int offsetImag, int strideImag) Get data from the internal work data arrays of the FFT object.
Parameters: dataType - The data type of the source data according toone of the DataBuffer TYPE_* flags. | public void | getFCTData(int dataType, Object data, int offset, int stride) Get data from the internal work data arrays of the FFT object after
an IFCT operation.
Parameters: dataType - The data type of the source data according toone of the DataBuffer TYPE_* flags. | public void | getIFCTData(int dataType, Object data, int offset, int stride) Get data from the internal work data arrays of the FFT object after
an IFCT operation.
Parameters: dataType - The data type of the source data according toone of the DataBuffer TYPE_* flags. | public void | setData(int dataType, Object realArg, int offsetReal, int strideReal, Object imagArg, int offsetImag, int strideImag, int count) Set the internal work data arrays of the FFT object.
Parameters: dataType - The data type of the source data according toone of the DataBuffer TYPE_* flags. | public void | setFCTData(int dataType, Object data, int offset, int stride, int count) Set the internal work data arrays of the FFT object for use with
an FCT operation.
Parameters: dataType - The data type of the source data according toone of the DataBuffer TYPE_* flags. | public void | setIFCTData(int dataType, Object data, int offset, int stride, int count) Set the internal work data arrays of the FFT object for use with
an IFCT operation.
Parameters: dataType - The data type of the source data according toone of the DataBuffer TYPE_* flags. | public void | setLength(int length) Initialize the length-dependent fields. | public void | transform() Calculate the DFT of a complex sequence using the FFT algorithm. |
SCALING_DIMENSIONS | final public static int SCALING_DIMENSIONS(Code) | | A flag indicating that the transform is to be scaled by the product
of its dimensions.
|
SCALING_NONE | final public static int SCALING_NONE(Code) | | A flag indicating that the transform is not to be scaled.
|
SCALING_UNITARY | final public static int SCALING_UNITARY(Code) | | A flag indicating that the transform is to be scaled by the square
root of the product of its dimensions.
|
exponentSign | protected int exponentSign(Code) | | The sign of the exponential.
|
imag | protected double[] imag(Code) | | Work array for imaginary part.
|
length | protected int length(Code) | | The length of the FFT.
|
lengthIsSet | protected boolean lengthIsSet(Code) | | Initialization flag.
|
real | protected double[] real(Code) | | Work array for real part.
|
scaleType | protected int scaleType(Code) | | The type of scaling.
|
FFT | public FFT(boolean negatedExponent, Integer scaleType, int length)(Code) | | Construct a new FFT object.
Parameters: negatedExponent - Whether the exponent is negated. Parameters: scaleType - The type of scaling to be applied. Parameters: length - The length of the FFT; must be a positive power of 2. |
getData | public void getData(int dataType, Object realArg, int offsetReal, int strideReal, Object imagArg, int offsetImag, int strideImag)(Code) | | Get data from the internal work data arrays of the FFT object.
Parameters: dataType - The data type of the source data according toone of the DataBuffer TYPE_* flags. This should be eitherDataBuffer.TYPE_FLOAT or DataBuffer.TYPE_DOUBLE. Parameters: realArg - Float or double array of real parts. Parameters: offsetReal - Offset into the array of real parts. Parameters: strideReal - The real array stride value. Parameters: imagArg - Float or double array of imaginary parts. Parameters: offsetImag - Offset into the array of imaginary parts. Parameters: strideImag - The imaginary array stride value. Parameters: count - The number of values to copy. |
getFCTData | public void getFCTData(int dataType, Object data, int offset, int stride)(Code) | | Get data from the internal work data arrays of the FFT object after
an IFCT operation.
Parameters: dataType - The data type of the source data according toone of the DataBuffer TYPE_* flags. This should be eitherDataBuffer.TYPE_FLOAT or DataBuffer.TYPE_DOUBLE. Parameters: data - The data as a float[] or double[]. Parameters: offset - Offset into the data array. Parameters: stride - The array stride value. Parameters: count - The number of values to copy. |
getIFCTData | public void getIFCTData(int dataType, Object data, int offset, int stride)(Code) | | Get data from the internal work data arrays of the FFT object after
an IFCT operation.
Parameters: dataType - The data type of the source data according toone of the DataBuffer TYPE_* flags. This should be eitherDataBuffer.TYPE_FLOAT or DataBuffer.TYPE_DOUBLE. Parameters: data - The data as a float[] or double[]. Parameters: offset - Offset into the data array. Parameters: stride - The array stride value. Parameters: count - The number of values to copy. |
setData | public void setData(int dataType, Object realArg, int offsetReal, int strideReal, Object imagArg, int offsetImag, int strideImag, int count)(Code) | | Set the internal work data arrays of the FFT object.
Parameters: dataType - The data type of the source data according toone of the DataBuffer TYPE_* flags. This should be eitherDataBuffer.TYPE_FLOAT or DataBuffer.TYPE_DOUBLE. Parameters: realArg - Float or double array of real parts. Parameters: offsetReal - Offset into the array of real parts. Parameters: strideReal - The real array stride value. Parameters: imagArg - Float or double array of imaginary parts. Parameters: offsetImag - Offset into the array of imaginary parts. Parameters: strideImag - The imaginary array stride value. Parameters: count - The number of values to copy. |
setFCTData | public void setFCTData(int dataType, Object data, int offset, int stride, int count)(Code) | | Set the internal work data arrays of the FFT object for use with
an FCT operation.
Parameters: dataType - The data type of the source data according toone of the DataBuffer TYPE_* flags. This should be eitherDataBuffer.TYPE_FLOAT or DataBuffer.TYPE_DOUBLE. Parameters: data - The data as a float[] or double[]. Parameters: offset - Offset into the data array. Parameters: stride - The array stride value. Parameters: count - The number of values to copy. |
setIFCTData | public void setIFCTData(int dataType, Object data, int offset, int stride, int count)(Code) | | Set the internal work data arrays of the FFT object for use with
an IFCT operation.
Parameters: dataType - The data type of the source data according toone of the DataBuffer TYPE_* flags. This should be eitherDataBuffer.TYPE_FLOAT or DataBuffer.TYPE_DOUBLE. Parameters: data - The data as a float[] or double[]. Parameters: offset - Offset into the data array. Parameters: stride - The array stride value. Parameters: count - The number of values to copy. |
setLength | public void setLength(int length)(Code) | | Initialize the length-dependent fields.
Parameters: length - The length of the FFT; must be a positive power of 2. |
transform | public void transform()(Code) | | Calculate the DFT of a complex sequence using the FFT algorithm.
|
|
|