|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjfftw.FFTW
jfftw.FFTWComplex
public class FFTWComplex
Class to implement simple one-off Complex to Complex Fourier transforms using jfftw as a native library.
A new plan is created for each FFT. This is sub-optimal for a large number of FFTs, but reasonable for ``one-off''.
| Field Summary |
|---|
| Fields inherited from class jfftw.FFTW |
|---|
BACKWARD, errorStream, ESTIMATE, EXHAUSTIVE, FORWARD, FOURIER, loaded, PATIENT, planFlag, REAL, version |
| Constructor Summary | |
|---|---|
FFTWComplex()
Default constructor which load sharable library and sets defaults. |
|
FFTWComplex(boolean systemWisdom)
Constructor to optionally load system wisdom file |
|
FFTWComplex(FFTW fft)
Constructor to form a FFTWComplex from a FFTW, The PlanFlag is also copied. |
|
FFTWComplex(File wisdomFile)
Constructor to load specified wisdom file |
|
FFTWComplex(String wisdomFile)
Constructor to load specified wisdom file by name |
|
| Method Summary | |
|---|---|
double[][] |
oneDimensional(double[][] data,
int dirn,
boolean overwrite)
Method to take a Complex one-dimensional FFT with the real and imaging data split format in a two-dimensional array of size [2][length] with the the i th component with real in the [0][i] element and the imaginary element in the [1][i] element. |
double[] |
oneDimensional(double[] data,
int dirn,
boolean overwrite)
Method to take one-dimensional Complex FFT with the data supplied in a one-dimensional interleaved double array with real parts in
even elements, and imaginary in the odd elements. |
double[][] |
threeDimensional(int width,
int height,
int depth,
double[][] data,
int dirn,
boolean overwrite)
Method to take a Complex the-dimensional FFT with the real and imaging data split format in a two-dimensional array of size [2][length] with the the i th component with real in the [0][i] element and the imaginary element in the [1][i] element. |
double[] |
threeDimensional(int width,
int height,
int depth,
double[] data,
int dirn,
boolean overwrite)
Method to take three-dimensional Complex FFT with the data supplied in a one-dimensional double array with real parts in even elements, and imaginary in the odd. |
double[][] |
twoDimensional(int width,
int height,
double[][] data,
int dirn,
boolean overwrite)
Method to take a Complex two-dimensional FFT with the real and imaging data split format in a two-dimensional array of size [2][length] with the the i th component with real in the [0][i] element and the imaginary element in the [1][i] element. |
double[] |
twoDimensional(int width,
int height,
double[] data,
int dirn,
boolean overwrite)
Method to take two-dimensional Complex FFT with the data supplied in a one-dimensional double array with real parts in even elements, and imaginary in the odd. |
| Methods inherited from class jfftw.FFTW |
|---|
addPlanFlag, clearWisdom, exportWisdom, getPlanFlag, getVersion, getWisdom, loadWisdom, loadWisdom, loadWisdom, readWisdom, setErrorStream, setPlanFlag, setSystemWisdom, writeWisdom |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FFTWComplex()
public FFTWComplex(FFTW fft)
fft - the FFTWpublic FFTWComplex(boolean systemWisdom)
systemWisdom - if true loads system wisdom filepublic FFTWComplex(File wisdomFile)
wisdomFile - public FFTWComplex(String wisdomFile)
wisdomFile - | Method Detail |
|---|
public double[] oneDimensional(double[] data,
int dirn,
boolean overwrite)
double array with real parts in
even elements, and imaginary in the odd elements.
data - the data to be transformeddirn - direction +1 for forward, -1 to backwardoverwrite - if true data is overwritten with FFT, else a
new array is returned.
double[] the FFTed array (if overwrite = true, this will
overwrite the input array).
public double[][] oneDimensional(double[][] data,
int dirn,
boolean overwrite)
data - two-dimensional array, real in [0][i] and imag in [0][i]dirn - forward or inverse transformoverwrite - if true overwrite given data, else return in new space
double[][] transformed data
IllegalArgumentException - if real and imaginary array of different length.
public double[] twoDimensional(int width,
int height,
double[] data,
int dirn,
boolean overwrite)
width - the width of the image dataheight - the height of the image datadata - the data to be transformeddirn - direction +1 for forward, -1 to backwardoverwrite - if true data is overwritten with FFT, else a
new array is returned.
double[] the FFTed array (if overwrite = true, this will
be the same at the input data array.
IllegalArgumentException - if width and height does not match the array length.
public double[][] twoDimensional(int width,
int height,
double[][] data,
int dirn,
boolean overwrite)
width - width of the dataheight - height of the datadata - two-dimensional array, real in [0][i] and imag in [0][i]dirn - forward or inverse transformoverwrite - if true overwrite given data, else return in new space
double[][] transformed data
IllegalArgumentException - if real and imaginary array of different length, or
width*height does not match the array lengths.
public double[] threeDimensional(int width,
int height,
int depth,
double[] data,
int dirn,
boolean overwrite)
width - the width of the image dataheight - the height of the image datadata - the data to be transformeddirn - direction +1 for forward, -1 to backwardoverwrite - if true data is overwritten with FFT, else a
new array is returned.
IllegalArgumentException - if width, height and depth does not match the array length.
public double[][] threeDimensional(int width,
int height,
int depth,
double[][] data,
int dirn,
boolean overwrite)
width - width of the dataheight - height of the datadepth - depth of the datadata - two-dimensional array, real in [0][i] and imag in [0][i]dirn - forward or inverse transformoverwrite - if true overwrite given data, else return in new space
double[][] transformed data
IllegalArgumentException - if real and imaginary array of different length, or
width*height does not match the array lengths.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||