- All Superinterfaces:
Dft2d
- All Known Implementing Classes:
Dft2dDirect.Float,Dft2dFast.Float
- Enclosing interface:
Dft2d
Sub-interface for 2D DFT implementations operating on
float data.-
Nested Class Summary
Nested classes/interfaces inherited from interface imagingbook.spectral.dft.Dft2d
Dft2d.Double, Dft2d.Float -
Method Summary
Modifier and TypeMethodDescriptiondefault voidcheckSize(float[][] A) default voidextractCol(float[][] g, int u, float[] col) default voidextractRow(float[][] g, int v, float[] row) default voidforward(float[][] gRe, float[][] gIm) Performs an "in-place" forward DFT or FFT on the supplied 2D data.get1dDft(int size) Returns a suitable 1D DFT of the specified size (float).default float[][]getMagnitude(float[][] re, float[][] im) Calculates and returns the magnitude of the supplied complex-valued 2D data.default voidinsertCol(float[][] g, int u, float[] col) default voidinsertRow(float[][] g, int v, float[] row) default voidinverse(float[][] GRe, float[][] GIm) Performs an "in-place" inverse DFT or FFT on the supplied 2D spectrum.default voidtransform(float[][] inRe, float[][] inIm, boolean forward) Transforms the given 2D arrays 'in-place'.Methods inherited from interface imagingbook.spectral.dft.Dft2d
getHeight, getScalingMode, getWidth
-
Method Details
-
get1dDft
Returns a suitable 1D DFT of the specified size (float).- Parameters:
size- the size of the DFT- Returns:
- a
Dft1d.Floatinstance
-
transform
Transforms the given 2D arrays 'in-place'. Separate arrays of identical size must be supplied for the real and imaginary parts of the signal (forward) or spectrum (inverse), neither of which may be null.- Parameters:
inRe- real part of the input signal or spectrum (modified)inIm- imaginary part of the input signal or spectrum (modified)forward- forward transformation iftrue, inverse transformation iffalse
-
extractRow
-
insertRow
-
extractCol
-
insertCol
-
forward
Performs an "in-place" forward DFT or FFT on the supplied 2D data. The input signal is replaced by the associated DFT spectrum.- Parameters:
gRe- real part of the signal (modified)gIm- imaginary part of the signal (modified)- See Also:
-
inverse
Performs an "in-place" inverse DFT or FFT on the supplied 2D spectrum. The input spectrum is replaced by the associated signal.- Parameters:
GRe- real part of the spectrum (modified)GIm- imaginary part of the spectrum (modified)- See Also:
-
checkSize
-
getMagnitude
Calculates and returns the magnitude of the supplied complex-valued 2D data.- Parameters:
re- the real part of the dataim- the imaginary part of the data- Returns:
- a 2D array of magnitude values
-