|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cuni.jagrlib.DefaultProperty
cz.cuni.jagrlib.Piece
cz.cuni.jagrlib.DefaultDiscreteTransform
cz.cuni.jagrlib.piece.DCT
public class DCT
Discrete cosine transform (can process 1D or 2D data of arbitrary size).
| Field Summary | |
|---|---|
protected double[][] |
base
Transform bases for last computed transform sizes (accelerator). |
protected int |
last
Last cache to be recycled (0 or 1. |
protected int[] |
len
Last computed transform sizes (accelerator). |
static RegPiece |
reg
Static registration instance for this class. |
protected double[] |
tmpD
Temporary array for in-place transforms. |
| Fields inherited from class cz.cuni.jagrlib.DefaultDiscreteTransform |
|---|
CATEGORY, TEMPLATE_NAME |
| Fields inherited from class cz.cuni.jagrlib.Piece |
|---|
channels, info, pl, plugs, TEMPLATE_TYPE, userBreak |
| Fields inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
| Constructor Summary | |
|---|---|
DCT()
|
|
| Method Summary | |
|---|---|
protected double[] |
assertBase(int l)
Computes base matrix for the given size. |
boolean |
getSizeBounds(int[] bounds)
Get extreme domain (source) ranges. |
int |
inverse1D(double[] coef,
int len,
double[] sample,
int start)
Inverse 1D transform (floating-point form). |
static int |
setTemplate(Template t,
int ord)
General-purpose registration routine. |
int |
transform1D(double[] sample,
int start,
int len,
double[] coef)
Forward 1D transform (floating-point form). |
| Methods inherited from class cz.cuni.jagrlib.DefaultDiscreteTransform |
|---|
inverse1D, inverse2D, inverse2D, loadData, storeData, transform1D, transform2D, transform2D |
| Methods inherited from class cz.cuni.jagrlib.Piece |
|---|
className, connect, findPlug, findPlug, getInfo, getInterface, getInterface, getPlug, getReg, init, isCompatible, isCompatible, isConnected, logError, logWarning, myInterface, newInputPlug, newOptOutputPlug, newOutputPlug, newPlug, noTemplates, propBegin, propBounds, propDefault, propEnd, propEnum, propManipulator, propManipulator, setProgressListener, setRegStrings, setTemplateDynamic, stop |
| Methods inherited from class cz.cuni.jagrlib.DefaultProperty |
|---|
booleanProperty, booleanProperty, colorDoubleProperty, colorProperty, commit, doubleProperty, doubleProperty, doubleProperty, enumProperty, floatProperty, floatProperty, floatProperty, get, intProperty, intProperty, intProperty, longProperty, longProperty, longProperty, set, set, stringProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
commit, get, set |
| Field Detail |
|---|
protected double[][] base
protected int[] len
protected int last
protected double[] tmpD
public static final RegPiece reg
| Constructor Detail |
|---|
public DCT()
| Method Detail |
|---|
protected double[] assertBase(int l)
public boolean getSizeBounds(int[] bounds)
getSizeBounds in interface DiscreteTransformgetSizeBounds in class DefaultDiscreteTransformbounds - Pre-allocated array to hold extreme ranges:
public int transform1D(double[] sample,
int start,
int len,
double[] coef)
transform1D in interface DiscreteTransformtransform1D in class DefaultDiscreteTransformsample - Source array (containing sample data).start - Starting index of the transformed segment.len - Source segment length.coef - Pre-allocated array to hold transformed data (coefficients).
inverse1D(double[],int,double[],int),
DefaultDiscreteTransform.transform1D(int[],int,int,int[])
public int inverse1D(double[] coef,
int len,
double[] sample,
int start)
transform1D(double[],int,int,double[]).
inverse1D in interface DiscreteTransforminverse1D in class DefaultDiscreteTransformcoef - Source array (holding coefficients).len - Number of coefficients.sample - Pre-allocated array to hold reconstructed sample data.start - Starting index of the reconstructed sample data.
transform1D(double[],int,int,double[]),
DefaultDiscreteTransform.inverse1D(int[],int,int[],int)
public static int setTemplate(Template t,
int ord)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||