- 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 void
checkSize
(float[][] A) default void
extractCol
(float[][] data, int u, float[] column) default void
extractRow
(float[][] data, int v, float[] row) default void
forward
(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 void
insertCol
(float[][] data, int u, float[] column) default void
insertRow
(float[][] data, int v, float[] row) default void
inverse
(float[][] G) Performs an "in-place" 2D DCT inverse transformation on the supplied spectrum.default void
transform
(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.Float
instance
-
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
-