java.lang.Object
imagingbook.spectral.dft.Dft2dFast
imagingbook.spectral.dft.Dft2dFast.Float
- All Implemented Interfaces:
Dft2d
,Dft2d.Float
- Enclosing class:
- Dft2dFast
Two-dimensional DFT implementation using
float
data.-
Nested Class Summary
Nested classes/interfaces inherited from class imagingbook.spectral.dft.Dft2dFast
Dft2dFast.Double, Dft2dFast.Float
Nested classes/interfaces inherited from interface imagingbook.spectral.dft.Dft2d
Dft2d.Double, Dft2d.Float
-
Constructor Summary
ConstructorsConstructorDescriptionFloat
(int width, int height) Constructor using the default scaling mode.Float
(int width, int height, ScalingMode sm) Constructor using a specific scaling mode. -
Method Summary
Modifier and TypeMethodDescriptionget1dDft
(int size) Returns a suitable 1D DFT of the specified size (float
).int
Returns the 'height' of the 2D data array (length of dimension 1).Returns the scaling mode of this DFT (seeScalingMode
).int
getWidth()
Returns the 'width' of the 2D data array (length of dimension 0).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface imagingbook.spectral.dft.Dft2d
getHeight, getScalingMode, getWidth
Methods inherited from interface imagingbook.spectral.dft.Dft2d.Float
checkSize, extractCol, extractRow, forward, getMagnitude, insertCol, insertRow, inverse, transform
-
Constructor Details
-
Float
Constructor using a specific scaling mode.- Parameters:
width
- width of the data array (dimension 0)height
- height of the data array (dimension 1)sm
- the scaling mode
-
Float
Constructor using the default scaling mode.- Parameters:
width
- width of the data array (dimension 0)height
- height of the data array (dimension 1)
-
-
Method Details
-
get1dDft
Description copied from interface:Dft2d.Float
Returns a suitable 1D DFT of the specified size (float
).- Specified by:
get1dDft
in interfaceDft2d.Float
- Parameters:
size
- the size of the DFT- Returns:
- a
Dft1d.Float
instance
-
getWidth
public int getWidth()Description copied from interface:Dft2d
Returns the 'width' of the 2D data array (length of dimension 0). Data arrays are indexed asdata[x][y]
, with 0 ≤ x < width and 0 ≤ y < height. -
getHeight
public int getHeight()Description copied from interface:Dft2d
Returns the 'height' of the 2D data array (length of dimension 1). Data arrays are indexed asdata[x][y]
, with 0 ≤ x < width and 0 ≤ y < height. -
getScalingMode
Description copied from interface:Dft2d
Returns the scaling mode of this DFT (seeScalingMode
).- Specified by:
getScalingMode
in interfaceDft2d
- Returns:
- the scaling mode of this DFT.
-