java.lang.Object
imagingbook.spectral.dct.Dct2dDirect
imagingbook.spectral.dct.Dct2dDirect.Float
- All Implemented Interfaces:
Dct2d
,Dct2d.Float
- Enclosing class:
- Dct2dDirect
Two-dimensional DCT implementation using
float
data.-
Nested Class Summary
Nested classes/interfaces inherited from class imagingbook.spectral.dct.Dct2dDirect
Dct2dDirect.Double, Dct2dDirect.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.Float
checkSize, extractCol, extractRow, forward, insertCol, insertRow, inverse, transform
-
Constructor Details
-
Float
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.Float
Returns a suitable 1D DCT of the specified size (float
).- Specified by:
get1dDct
in interfaceDct2d.Float
- Parameters:
size
- the size of the DCT- Returns:
- a
Dct1d.Float
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.
-