public class DoubleDCT_2D extends Object
| Constructor and Description |
|---|
DoubleDCT_2D(int rows,
int columns)
Creates new instance of DoubleDCT_2D.
|
| Modifier and Type | Method and Description |
|---|---|
void |
forward(double[][] a,
boolean scale)
Computes 2D forward DCT (DCT-II) leaving the result in
a. |
void |
forward(double[] a,
boolean scale)
Computes 2D forward DCT (DCT-II) leaving the result in
a. |
void |
inverse(double[][] a,
boolean scale)
Computes 2D inverse DCT (DCT-III) leaving the result in
a. |
void |
inverse(double[] a,
boolean scale)
Computes 2D inverse DCT (DCT-III) leaving the result in
a. |
public DoubleDCT_2D(int rows, int columns)
rows - number of rowscolumns - number of columnspublic void forward(double[] a, boolean scale)
a.
The data is stored in 1D array in row-major order.a - data to transformscale - if true then scaling is performedpublic void forward(double[][] a, boolean scale)
a.
The data is stored in 2D array.a - data to transformscale - if true then scaling is performedpublic void inverse(double[] a, boolean scale)
a.
The data is stored in 1D array in row-major order.a - data to transformscale - if true then scaling is performedpublic void inverse(double[][] a, boolean scale)
a.
The data is stored in 2D array.a - data to transformscale - if true then scaling is performed