|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectGiciTransform.ForwardWaveletTransform
public class ForwardWaveletTransform
This class receives an image and performs applies a discrete wavelet transform.
Usage example:
construct
setParameters
run
| Field Summary | |
|---|---|
(package private) float[][][] |
imageSamples
Definition in Coder |
(package private) boolean |
parametersSet
To know if parameters are set. |
(package private) int[] |
WTLevels
DWT levels to apply for each component. |
(package private) int[] |
WTOrder
To know the order of the transform in the spatial dimentions for each component |
(package private) int[] |
WTTypes
Discrete wavelet transform to be applied for each component. |
(package private) int |
xSize
Definition in Coder |
(package private) int |
ySize
Definition in Coder |
(package private) int |
zSize
Definition in Coder |
| Constructor Summary | |
|---|---|
ForwardWaveletTransform(float[][][] imageSamples)
Constructor that receives the original image samples. |
|
| Method Summary | |
|---|---|
private float[] |
evenFiltering(float[] src,
int z)
This function applies the DWT filter to a source with even length. |
private float[] |
filtering(float[] src,
int z)
This function selects the way to apply the filter selected depending on the size of the source |
private float[] |
oddFiltering(float[] src,
int z)
This function applies the DWT filter to a source with odd length. |
float[][][] |
run()
Performs the discrete wavelete transform and returns the result image. |
void |
setParameters(int[] WTTypes,
int[] WTLevels)
Set the parameters used to apply the discrete wavelet transform, the order is set and cannot be selected.. |
void |
setParameters(int[] WTTypes,
int[] WTLevels,
int[] WTOrder)
Set the parameters used to apply the discrete wavelet transform when the order of the spatial dimentions can be chosen. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
float[][][] imageSamples
int zSize
int ySize
int xSize
int[] WTTypes
Valid values are:
int[] WTLevels
Negative values not allowed.
int[] WTOrder
Valid values are:
boolean parametersSet
True indicates that they are set otherwise false.
| Constructor Detail |
|---|
public ForwardWaveletTransform(float[][][] imageSamples)
imageSamples - definition in Coder| Method Detail |
|---|
public void setParameters(int[] WTTypes,
int[] WTLevels)
WTTypes - definition in WTTypesWTLevels - definition in WTLevels
public void setParameters(int[] WTTypes,
int[] WTLevels,
int[] WTOrder)
WTTypes - definition in WTTypesWTLevels - definition in WTLevelsWTOrder - definition in WTOrder
public float[][][] run()
throws ErrorException
ErrorException - when parameters are not set or wavelet type is unrecognized
private float[] filtering(float[] src,
int z)
throws ErrorException
src - a float array of the image samplesz - the component determines the filter to apply
ErrorException - when wavelet type is unrecognized
private float[] evenFiltering(float[] src,
int z)
throws ErrorException
src - a float array of the image samplesz - the component determines the filter to apply
ErrorException - when wavelet type is unrecognized or size is not proper
private float[] oddFiltering(float[] src,
int z)
throws ErrorException
src - a float array of the image samplesz - the component determines the filter to apply
ErrorException - when wavelet type is unrecognized or size is not proper
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||