java.lang.Object
imagingbook.spectral.dct.Dct2dFast
imagingbook.spectral.dct.Dct2dFast.Double
- All Implemented Interfaces:
Dct2d
,Dct2d.Double
- Enclosing class:
- Dct2dFast
Two-dimensional DCT implementation using
double
data.-
Nested Class Summary
Nested classes/interfaces inherited from class imagingbook.spectral.dct.Dct2dFast
Dct2dFast.Double, Dct2dFast.Float
Nested classes/interfaces inherited from interface imagingbook.spectral.dct.Dct2d
Dct2d.Double, Dct2d.Float
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface imagingbook.spectral.dct.Dct2d.Double
checkSize, extractCol, extractRow, forward, insertCol, insertRow, inverse, transform
-
Constructor Details
-
Double
Constructor.- Parameters:
width
- width of the data array (dimension 0)height
- height of the data array (dimension 1)
-
-
Method Details
-
get1dDct
Description copied from interface:Dct2d.Double
Returns a suitable 1D DCT of the specified size (double
).- Specified by:
get1dDct
in interfaceDct2d.Double
- Parameters:
size
- the size of the DCT- Returns:
- a
Dct1d.Double
instance
-
getWidth
public int getWidth()Description copied from interface:Dct2d
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:Dct2d
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.
-