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.FloatNested 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, waitMethods 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.FloatReturns a suitable 1D DCT of the specified size (float).- Specified by:
get1dDctin interfaceDct2d.Float- Parameters:
size- the size of the DCT- Returns:
- a
Dct1d.Floatinstance
-
getWidth
public int getWidth()Description copied from interface:Dct2dReturns 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:Dct2dReturns 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.
-