|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGiciTransform.ForwardDWTCore
public class ForwardDWTCore
This class receives an image and performs one level of an arbitrary defined 3D discrete wavelet transform on it. Usage example:
construct
setParameters
run
getImageSamples
Field Summary | |
---|---|
(package private) float[][][] |
imageSamples
Image samples (index meaning [z][y][x]). |
(package private) boolean |
parametersSet
To know if parameters are set. |
(package private) int |
WTAxis
Dimensional axis in which the transform is going to be applied. |
(package private) int |
WTTypes
Discrete wavelet transform to be applied. |
(package private) int |
WTXRegionEnd
Ending coordinate of the X axis region to be computed. |
(package private) int |
WTXRegionStart
Initial coordinate of the X axis region to be computed. |
(package private) int |
WTYRegionEnd
Ending coordinate of the Y axis region to be computed. |
(package private) int |
WTYRegionStart
Initial coordinate of the Y axis region to be computed. |
(package private) int |
WTZRegionEnd
Ending coordinate of the Z axis region to be computed. |
(package private) int |
WTZRegionStart
Initial coordinate of the Z axis region to be computed. |
Constructor Summary | |
---|---|
ForwardDWTCore(float[][][] imageSamples)
Constructor that receives the original image samples. |
Method Summary | |
---|---|
private float[] |
evenEvenFiltering(float[] src,
int WTTypes)
This function applies the DWT filter to a source with even length and even phase. |
private float[] |
evenOddFiltering(float[] src,
int WTTypes)
This function applies the DWT filter to a source with even length and odd phase. |
private float[] |
filtering(float[] src,
int WTTypes,
int WTLRegionStart)
This function selects the way to apply the filter depending on the phase and the size of the source. |
float[][][] |
getImageSamples()
Used to get the 3DWT transformed image. |
private float[] |
oddEvenFiltering(float[] src,
int WTTypes)
This function applies the DWT filter to a source with odd length and even phase. |
private float[] |
oddOddFiltering(float[] src,
int WTTypes)
This function applies the DWT filter to a source with odd length and odd phase. |
void |
run()
Performs the discrete wavelete transform. |
void |
setImageSamples(float[][][] imageSamples)
Used to set (or reset) the image over which the transform is going to be applied. |
void |
setParameters(int WTTypes,
int WTAxis,
int WTZRegionStart,
int WTZRegionEnd,
int WTYRegionStart,
int WTYRegionEnd,
int WTXRegionStart,
int WTXRegionEnd)
Set the parameters used to apply the discrete wavelet transform. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
float[][][] imageSamples
int WTTypes
Valid values are:
int WTAxis
Valid values are:
int WTZRegionStart
Negative Values not allowed
int WTZRegionEnd
Negative Values not allowed
int WTYRegionStart
Negative Values not allowed
int WTYRegionEnd
Negative Values not allowed
int WTXRegionStart
Negative Values not allowed
int WTXRegionEnd
Negative Values not allowed
boolean parametersSet
True indicates that they are set otherwise false.
Constructor Detail |
---|
public ForwardDWTCore(float[][][] imageSamples)
imageSamples
- definition in imageSamples
Method Detail |
---|
public void setParameters(int WTTypes, int WTAxis, int WTZRegionStart, int WTZRegionEnd, int WTYRegionStart, int WTYRegionEnd, int WTXRegionStart, int WTXRegionEnd)
WTTypes
- definition in WTTypes
WTAxis
- definition in WTAxis
WTZRegionStart
- definition in WTZRegionStart
WTZRegionEnd
- definition in WTZRegionEnd
WTYRegionStart
- definition in WTYRegionStart
WTYRegionEnd
- definition in WTYRegionEnd
WTXRegionStart
- definition in WTXRegionStart
WTXRegionEnd
- definition in WTXRegionEnd
public void setImageSamples(float[][][] imageSamples)
imageSamples
- definition in imageSamples
public float[][][] getImageSamples()
public void run() throws ErrorException
ErrorException
- when parameters are not set, wavelet type is unrecognized or trying to transform over an unimplemented axisprivate float[] filtering(float[] src, int WTTypes, int WTLRegionStart) throws ErrorException
src
- a float array of the image samplesWTTypes
- Filter to applyWTLRegionStart
- The starting coordinate of the original line to transform, used to determine the starting phase.
ErrorException
- when wavelet type is unrecognizedprivate float[] evenEvenFiltering(float[] src, int WTTypes) throws ErrorException
src
- a float array of the image samplesWTTypes
- Filter to apply
ErrorException
- when wavelet type is unrecognizedprivate float[] evenOddFiltering(float[] src, int WTTypes) throws ErrorException
src
- a float array of the image samplesWTTypes
- Filter to apply
ErrorException
- when wavelet type is unrecognizedprivate float[] oddEvenFiltering(float[] src, int WTTypes) throws ErrorException
src
- a float array of the image samplesWTTypes
- Filter to apply
ErrorException
- when wavelet type is unrecognizedprivate float[] oddOddFiltering(float[] src, int WTTypes) throws ErrorException
src
- a float array of the image samplesWTTypes
- Filter to apply
ErrorException
- when wavelet type is unrecognized
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |