public static class MathUtils.DCT
extends java.lang.Object
Constructor and Description |
---|
MathUtils.DCT() |
Modifier and Type | Method and Description |
---|---|
static void |
initCheck(Frame input,
int width,
int height,
int depth) |
static Frame |
transform1D(Frame input,
int N,
boolean inverse)
Compute the 1D discrete cosine transform for each row in the given Frame, and return a new Frame
|
static Frame |
transform2D(Frame input,
int height,
int width,
boolean inverse)
Compute the 2D discrete cosine transform for each row in the given Frame, and return a new Frame
|
static Frame |
transform3D(Frame input,
int height,
int width,
int depth,
boolean inverse)
Compute the 3D discrete cosine transform for each row in the given Frame, and return a new Frame
|
public static void initCheck(Frame input, int width, int height, int depth)
public static Frame transform1D(Frame input, int N, boolean inverse)
input
- Frame containing numeric columns with data samplesN
- Number of samples (must be less or equal than number of columns)inverse
- Whether to compute the inversepublic static Frame transform2D(Frame input, int height, int width, boolean inverse)
input
- Frame containing numeric columns with data samplesheight
- heightwidth
- widthinverse
- Whether to compute the inversepublic static Frame transform3D(Frame input, int height, int width, int depth, boolean inverse)
input
- Frame containing numeric columns with data samplesheight
- heightwidth
- widthdepth
- depthinverse
- Whether to compute the inverse