| java.lang.Object jj2000.j2k.wavelet.Subband jj2000.j2k.wavelet.analysis.SubbandAn
SubbandAn | public class SubbandAn extends Subband (Code) | | This class represents a subband in a bidirectional tree structure
that describes the subband decomposition for a wavelet transform,
specifically for the analysis side.
The element can be either a node or a leaf of the tree. If it is
a node then ther are 4 descendants (LL, HL, LH and HH). If it is a
leaf there are no descendants.
The tree is bidirectional. Each element in the tree structure
has a "parent", which is the subband from which the element was
obtained by decomposition. The only exception is the root element
which has no parent (i.e.it's null), for obvious reasons.
|
Field Summary | |
public AnWTFilter | hFilter The horizontal analysis filter used to decompose this
subband. | public float | l2Norm The L2-norm of the synthesis basis waveform of this subband,
applicable to "leafs" only. | public SubbandAn | parent The reference to the parent of this subband. | public float | stepWMSE The contribution to the MSE or WMSE error that would result in the
image if there was an error of exactly one quantization step size in
the sample of the subband. | public SubbandAn | subb_HH The reference to the HH subband resulting from the
decomposition of this subband. | public SubbandAn | subb_HL The reference to the HL subband (horizontal high-pass)
resulting from the decomposition of this subband. | public SubbandAn | subb_LH The reference to the LH subband (vertical high-pass) resulting
from the decomposition of this subband. | public SubbandAn | subb_LL The reference to the LL subband resulting from the
decomposition of this subband. | public AnWTFilter | vFilter The vertical analysis filter used to decompose this
subband. |
Constructor Summary | |
public | SubbandAn() Creates a SubbandAn element with all the default values. | public | SubbandAn(int w, int h, int ulcx, int ulcy, int lvls, WaveletFilter hfilters, WaveletFilter vfilters) Creates the top-level node and the entire subband tree, with
the top-level dimensions, the number of decompositions, and the
decomposition tree as specified.
This constructor just calls the same constructor of the
super class, and then calculates the L2-norm (or energy weight)
of each leaf.
This constructor does not initialize the value of the magBits or
stepWMSE member variables. |
hFilter | public AnWTFilter hFilter(Code) | | The horizontal analysis filter used to decompose this
subband. This is applicable to "node" elements only. The
default value is null.
|
l2Norm | public float l2Norm(Code) | | The L2-norm of the synthesis basis waveform of this subband,
applicable to "leafs" only. By default it is -1 (i.e. not
calculated yet).
|
parent | public SubbandAn parent(Code) | | The reference to the parent of this subband. It is null for the
root element. It is null by default.
|
stepWMSE | public float stepWMSE(Code) | | The contribution to the MSE or WMSE error that would result in the
image if there was an error of exactly one quantization step size in
the sample of the subband. This value is expressed relative to a
nominal dynamic range in the image domain of exactly 1.0. This field
contains valid data only after quantization 9See Quantizer).
See Also: jj2000.j2k.quantization.quantizer.Quantizer |
subb_HH | public SubbandAn subb_HH(Code) | | The reference to the HH subband resulting from the
decomposition of this subband. It is null by default.
|
subb_HL | public SubbandAn subb_HL(Code) | | The reference to the HL subband (horizontal high-pass)
resulting from the decomposition of this subband. It is null by
default.
|
subb_LH | public SubbandAn subb_LH(Code) | | The reference to the LH subband (vertical high-pass) resulting
from the decomposition of this subband. It is null by default.
|
subb_LL | public SubbandAn subb_LL(Code) | | The reference to the LL subband resulting from the
decomposition of this subband. It is null by default.
|
vFilter | public AnWTFilter vFilter(Code) | | The vertical analysis filter used to decompose this
subband. This is applicable to "node" elements only. The
default value is null.
|
SubbandAn | public SubbandAn()(Code) | | Creates a SubbandAn element with all the default values. The
dimensions are (0,0) and the upper left corner is (0,0).
|
SubbandAn | public SubbandAn(int w, int h, int ulcx, int ulcy, int lvls, WaveletFilter hfilters, WaveletFilter vfilters)(Code) | | Creates the top-level node and the entire subband tree, with
the top-level dimensions, the number of decompositions, and the
decomposition tree as specified.
This constructor just calls the same constructor of the
super class, and then calculates the L2-norm (or energy weight)
of each leaf.
This constructor does not initialize the value of the magBits or
stepWMSE member variables. This variables are normally initialized by
the quantizer (see Quantizer).
Parameters: w - The top-level width Parameters: h - The top-level height Parameters: ulcx - The horizontal coordinate of the upper-left corner withrespect to the canvas origin, in the component grid. Parameters: ulcy - The vertical coordinate of the upper-left corner withrespect to the canvas origin, in the component grid. Parameters: lvls - The number of levels (or LL decompositions) in thetree. Parameters: hfilters - The horizontal wavelet analysis filters for eachresolution level, starting at resolution level 0. Parameters: vfilters - The vertical wavelet analysis filters for eachresolution level, starting at resolution level 0. See Also: Subband.Subband(intintintintintWaveletFilter[]WaveletFilter[]) See Also: jj2000.j2k.quantization.quantizer.Quantizer |
getHH | public Subband getHH()(Code) | | Returns the HH child subband of this subband.
The HH child subband, or null if there are no childs. |
getHL | public Subband getHL()(Code) | | Returns the HL (horizontal high-pass) child subband of this
subband.
The HL child subband, or null if there are no childs. |
getHorWFilter | public WaveletFilter getHorWFilter()(Code) | | This function returns the horizontal wavelet filter relevant to this
subband
The horizontal wavelet filter |
getLH | public Subband getLH()(Code) | | Returns the LH (vertical high-pass) child subband of this
subband.
The LH child subband, or null if there are no childs. |
getLL | public Subband getLL()(Code) | | Returns the LL child subband of this subband.
The LL child subband, or null if there are no childs. |
getParent | public Subband getParent()(Code) | | Returns the parent of this subband. The parent of a subband is
the subband from which this one was obtained by
decomposition. The root element has no parent subband (null).
The parent subband, or null for the root one. |
getVerWFilter | public WaveletFilter getVerWFilter()(Code) | | This function returns the vertical wavelet filter relevant to this
subband
The vertical wavelet filter |
split | protected Subband split(WaveletFilter hfilter, WaveletFilter vfilter)(Code) | | Splits the current subband in its four subbands. It changes the
status of this element (from a leaf to a node, and sets the
filters), creates the childs and initializes them. An
IllegalArgumentException is thrown if this subband is not a
leaf.
It uses the initChilds() method to initialize the childs.
Parameters: hfilter - The horizontal wavelet filter used to decomposethis subband. It has to be a AnWTFilter object. Parameters: vfilter - The vertical wavelet filter used to decompose thissubband. It has to be a AnWTFilter object. A reference to the LL leaf (subb_LL). See Also: Subband.initChilds |
|
|