- All Superinterfaces:
Dct2d
- All Known Implementing Classes:
Dct2dDirect.Double,Dct2dFast.Double
- Enclosing interface:
Dct2d
Sub-interface for 2D DCT implementations operating on
double data.-
Nested Class Summary
Nested classes/interfaces inherited from interface imagingbook.spectral.dct.Dct2d
Dct2d.Double, Dct2d.Float -
Method Summary
Modifier and TypeMethodDescriptiondefault voidcheckSize(double[][] A) default voidextractCol(double[][] data, int u, double[] column) default voidextractRow(double[][] data, int v, double[] row) default voidforward(double[][] 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 (double).default voidinsertCol(double[][] data, int u, double[] column) default voidinsertRow(double[][] data, int v, double[] row) default voidinverse(double[][] G) Performs an "in-place" 2D DCT inverse transformation on the supplied spectrum.default voidtransform(double[][] data, boolean forward) Transforms the given 2D array 'in-place'.
-
Method Details
-
get1dDct
Returns a suitable 1D DCT of the specified size (double).- Parameters:
size- the size of the DCT- Returns:
- a
Dct1d.Doubleinstance
-
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
-