public class FourierTransform extends Object
FourierTransformComplex
class.Constructor and Description |
---|
FourierTransform(FImage image,
boolean centre)
Construct Fourier Transform by performing a forward transform on the
given image.
|
FourierTransform(FImage magnitude,
FImage phase,
boolean centre)
Construct Fourier Transform object from the given magnitude and phase
images in the frequency domain.
|
Modifier and Type | Method and Description |
---|---|
FImage |
getLogNormalisedMagnitude()
Get a log-normalised copy of the magnitude image suitable for displaying.
|
FImage |
getMagnitude() |
FImage |
getPhase() |
FImage |
inverse()
Perform the inverse FFT using the underlying magnitude and phase images.
|
boolean |
isCentre() |
static float[][] |
prepareData(FImage input,
int rs,
int cs,
boolean centre)
Prepare data for a input to the FFT, padding if necessary.
|
static float[][] |
prepareData(float[][] input,
int rs,
int cs,
boolean centre)
Prepare data for a input to the FFT, padding if necessary.
|
static float[] |
prepareData1d(FImage input,
int rs,
int cs,
boolean centre)
Prepare data for a input to the FFT, padding if necessary.
|
static float[] |
prepareData1d(float[][] input,
int rs,
int cs,
boolean centre)
Prepare data for a input to the FFT, padding if necessary.
|
static void |
unprepareData(float[][] prepared,
FImage output,
boolean centre)
Extract the actual data from prepared data.
|
static void |
unprepareData(float[][] prepared,
float[][] output,
boolean centre)
Extract the actual data from prepared data.
|
static void |
unprepareData(float[] prepared,
FImage output,
boolean centre)
Extract the actual data from prepared data.
|
static void |
unprepareData(float[] prepared,
float[][] output,
boolean centre)
Extract the actual data from prepared data.
|
public FourierTransform(FImage image, boolean centre)
image
- the image to transformcentre
- should the FFT be reordered so the centre is DC componentpublic FourierTransform(FImage magnitude, FImage phase, boolean centre)
inverse()
method.magnitude
- the magnitude imagephase
- the phase imagecentre
- is the DC component in the image centre?public static float[][] prepareData(FImage input, int rs, int cs, boolean centre)
input
- input datars
- desired number of rowscs
- desired number of columnscentre
- if true, then the data will be prepared so that the DC
component is centred.public static float[] prepareData1d(FImage input, int rs, int cs, boolean centre)
input
- input datars
- desired number of rowscs
- desired number of columnscentre
- if true, then the data will be prepared so that the DC
component is centred.public static float[][] prepareData(float[][] input, int rs, int cs, boolean centre)
input
- input datars
- desired number of rowscs
- desired number of columnscentre
- if true, then the data will be prepared so that the DC
component is centered.public static float[] prepareData1d(float[][] input, int rs, int cs, boolean centre)
input
- input datars
- desired number of rowscs
- desired number of columnscentre
- if true, then the data will be prepared so that the DC
component is centered.public static void unprepareData(float[][] prepared, FImage output, boolean centre)
prepared
- the prepared dataoutput
- the outputcentre
- if true, then the data will be prepared so that the DC
component is centered.public static void unprepareData(float[] prepared, FImage output, boolean centre)
prepared
- the prepared dataoutput
- the outputcentre
- if true, then the data will be prepared so that the DC
component is centered.public static void unprepareData(float[][] prepared, float[][] output, boolean centre)
prepared
- the prepared dataoutput
- the outputcentre
- if true, then the data will be prepared so that the DC
component is centered.public static void unprepareData(float[] prepared, float[][] output, boolean centre)
prepared
- the prepared dataoutput
- the outputcentre
- if true, then the data will be prepared so that the DC
component is centered.public FImage inverse()
public FImage getLogNormalisedMagnitude()
public FImage getMagnitude()
public boolean isCentre()