java.lang.Object
imagingbook.spectral.dct.Dct1dDirect
imagingbook.spectral.dct.Dct1dDirect.Double
- All Implemented Interfaces:
Dct1d
,Dct1d.Double
- Enclosing class:
- Dct1dDirect
One-dimensional DCT implementation using
double
data.-
Nested Class Summary
Nested classes/interfaces inherited from class imagingbook.spectral.dct.Dct1dDirect
Dct1dDirect.Double, Dct1dDirect.Float
Nested classes/interfaces inherited from interface imagingbook.spectral.dct.Dct1d
Dct1d.Double, Dct1d.Float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
forward
(double[] g) Performs an "in-place" 1D DCT forward transformation on the supplied data.int
getSize()
Returns the size of this DCT (length of data vectors).void
inverse
(double[] G) Performs an "in-place" 1D DCT inverse transformation on the supplied spectrum.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.Dct1d.Double
checkSize
-
Constructor Details
-
Double
Constructor.- Parameters:
M
- the data size
-
-
Method Details
-
forward
Description copied from interface:Dct1d.Double
Performs an "in-place" 1D DCT forward transformation on the supplied data. The input signal is replaced by the associated DFT spectrum.- Specified by:
forward
in interfaceDct1d.Double
- Parameters:
g
- the signal to be transformed (modified)
-
inverse
Description copied from interface:Dct1d.Double
Performs an "in-place" 1D DCT inverse transformation on the supplied spectrum. The input spectrum is replaced by the associated signal.- Specified by:
inverse
in interfaceDct1d.Double
- Parameters:
G
- the spectrum to be transformed (modified)
-
getSize
public int getSize()Description copied from interface:Dct1d
Returns the size of this DCT (length of data vectors).
-