- All Superinterfaces:
Dct2d
- All Known Implementing Classes:
Dct2dDirect.Float,Dct2dFast.Float
- Enclosing interface:
Dct2d
Sub-interface for 2D DCT implementations operating on
float data.-
Nested Class Summary
Nested classes/interfaces inherited from interface imagingbook.spectral.dct.Dct2d
Dct2d.Double, Dct2d.Float -
Method Summary
Modifier and TypeMethodDescriptiondefault voidcheckSize(float[][] A) default voidextractCol(float[][] data, int u, float[] column) default voidextractRow(float[][] data, int v, float[] row) default voidforward(float[][] g) Performs an "in-place" 2D DCT forward transformation on the supplied data.get1dDct(int size) Returns a suitable 1D DCT of the specified size (float).default voidinsertCol(float[][] data, int u, float[] column) default voidinsertRow(float[][] data, int v, float[] row) default voidinverse(float[][] G) Performs an "in-place" 2D DCT inverse transformation on the supplied spectrum.default voidtransform(float[][] data, boolean forward) Transforms the given 2D array 'in-place'.
-
Method Details
-
get1dDct
Returns a suitable 1D DCT of the specified size (float).- Parameters:
size- the size of the DCT- Returns:
- a
Dct1d.Floatinstance
-
forward
Performs an "in-place" 2D DCT forward transformation on the supplied data. The input signal is replaced by the associated DCT spectrum.- Parameters:
g- the signal to be transformed (modified)
-
inverse
Performs an "in-place" 2D DCT inverse transformation on the supplied spectrum. The input spectrum is replaced by the associated signal.- Parameters:
G- the spectrum to be transformed (modified)
-
transform
Transforms the given 2D array 'in-place'.- Parameters:
data- the input signal or spectrum (modified)forward- forward transformation iftrue, inverse transformation iffalse
-
extractRow
-
insertRow
-
extractCol
-
insertCol
-
checkSize
-