|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGiciTransform.InverseDWTCore
public class InverseDWTCore
This class receives an arbitrary piece of a 3D transformed image and performs one level of the corresponded 3D discrete inverse wavelet transform. 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
Definition in ForwardDWTCore.WTAxis |
(package private) int |
WTTypes
Definition in ForwardDWTCore.WTTypes |
(package private) int |
WTXRegionEnd
Definition in ForwardDWTCore.WTXRegionEnd |
(package private) int |
WTXRegionStart
Definition in ForwardDWTCore.WTXRegionStart |
(package private) int |
WTYRegionEnd
Definition in ForwardDWTCore.WTYRegionEnd |
(package private) int |
WTYRegionStart
Definition in ForwardDWTCore.WTYRegionStart |
(package private) int |
WTZRegionEnd
Definition in ForwardDWTCore.WTZRegionEnd |
(package private) int |
WTZRegionStart
Definition in ForwardDWTCore.WTZRegionStart |
Constructor Summary | |
---|---|
InverseDWTCore(float[][][] imageSamples)
Constructor, receives the transformed 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 detransformed 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 inverse wavelete transform and returns the result image. |
void |
setImageSamples(float[][][] imageSamples)
Used to set (or reset) the image over which the detransform is going to be applied. |
void |
setParameters(int WTTypes,
int WTAxis)
Set the parameters used to apply the discrete inverse wavelet transform, compact use, the transform is going to be applied by default on the whole image over the requested axis. |
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 inverse 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
ForwardDWTCore.WTTypes
int WTAxis
ForwardDWTCore.WTAxis
int WTZRegionStart
ForwardDWTCore.WTZRegionStart
int WTZRegionEnd
ForwardDWTCore.WTZRegionEnd
int WTYRegionStart
ForwardDWTCore.WTYRegionStart
int WTYRegionEnd
ForwardDWTCore.WTYRegionEnd
int WTXRegionStart
ForwardDWTCore.WTXRegionStart
int WTXRegionEnd
ForwardDWTCore.WTXRegionEnd
boolean parametersSet
True indicates that they are set otherwise false.
Constructor Detail |
---|
public InverseDWTCore(float[][][] imageSamples)
imageSamples
- definition in imageSamples
Method Detail |
---|
public void setParameters(int WTTypes, int WTAxis)
WTTypes
- definition in WTTypes
WTAxis
- definition in WTAxis
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 detransform 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 transformed 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 |