|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGiciTransform.InverseWaveletTransform
public class InverseWaveletTransform
This class receives an image and performs applies a discrete wavelet transform.
Usage example:
construct
setParameters
run
Field Summary | |
---|---|
(package private) float[][][] |
imageSamples
Original image samples (index meaning [z][y][x]). |
(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
Definition in ForwardWaveletTransform.WTTypes |
(package private) int |
xSize
Image width. |
(package private) int |
ySize
Image height. |
(package private) int |
zSize
Number of image components. |
Constructor Summary | |
---|---|
InverseWaveletTransform(float[][][] imageSamples)
Constructor that receives the original image samples and initializes default values. |
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. |
static boolean |
verifyParameters(int[] WTType,
int[] WTLevels,
int[] WTOrder)
Verify Parameters defined in this class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
float[][][] imageSamples
All values allowed.
int zSize
Negative values are not allowed for this field.
int ySize
Negative values are not allowed for this field.
int xSize
Negative values are not allowed for this field.
int[] WTTypes
ForwardWaveletTransform.WTTypes
int[] WTLevels
Negative values not allowed.
int[] WTOrder
Valid values are:
boolean parametersSet
True or false.
Constructor Detail |
---|
public InverseWaveletTransform(float[][][] imageSamples)
imageSamples
- a 3D float array that contains image samplesMethod Detail |
---|
public void setParameters(int[] WTTypes, int[] WTLevels)
WTTypes
- definition in this classWTLevels
- definition in this classpublic void setParameters(int[] WTTypes, int[] WTLevels, int[] WTOrder)
WTTypes
- definition in this classWTLevels
- definition in this classWTOrder
- definition in this classpublic static boolean verifyParameters(int[] WTType, int[] WTLevels, int[] WTOrder)
WTType
- defined in this classWTLevels
- defined in this classWTOrder
- definition in this class
public float[][][] run() throws java.lang.Exception
java.lang.Exception
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 unrecognized wavelet type is passedprivate 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 unrecognized wavelet type is passedprivate 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 unrecognized wavelet type is passed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |