Property | Type | Description | |
---|---|---|---|
hFilter | CSJ2K.j2k.wavelet.analysis.AnWTFilter | ||
l2Norm | float | ||
parentband | |||
stepWMSE | float | ||
subb_HH | |||
subb_HL | |||
subb_LH | |||
subb_LL | |||
vFilter | CSJ2K.j2k.wavelet.analysis.AnWTFilter |
Method | Description | |
---|---|---|
SubbandAn ( ) : System |
Creates a SubbandAn element with all the default values. The dimensions are (0,0) and the upper left corner is (0,0).
|
|
SubbandAn ( int w, int h, int ulcx, int ulcy, int lvls, WaveletFilter hfilters, WaveletFilter vfilters ) : System |
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).
|
Method | Description | |
---|---|---|
split ( WaveletFilter hfilter, WaveletFilter vfilter ) : |
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.
|
Method | Description | |
---|---|---|
assignL2Norm ( float l2n ) : void |
Assigns the given L2-norm to the first leaf that does not have an L2-norm value yet (i.e. l2norm is negative). The search is done recursively and in the same order as that of the calcBasisWaveForms() method, so that this method is used to assigne the l2norm of the previously computed waveforms. This method can not be called on an element that ahs a non-negative value in l2Norm, since that means that we are done.
|
|
calcBasisWaveForms ( float wfs ) : void |
Calculates the basis waveform of the first leaf for which the L2-norm has not been calculated yet. This method searches recursively for the first leaf for which the value has not been calculated yet, and then calculates the L2-norm on the return path. The wfs argument should be a size 2 array of float arrays (i.e. 2D array) and it must be of length 2 (or more). When returning, wfs[0] will contain the line waveform, and wfs[1] will contain the column waveform. This method can not be called on an element that ahs a non-negative value in l2Norm, since that means that we are done.
|
|
calcL2Norms ( ) : void |
Calculates the L2-norm of the sythesis waveforms of every leaf in the tree. This method should only be called on the root element.
|
public SubbandAn ( int w, int h, int ulcx, int ulcy, int lvls, WaveletFilter hfilters, WaveletFilter vfilters ) : System | ||
w | int | The top-level width /// /// |
h | int | The top-level height /// /// |
ulcx | int | The horizontal coordinate of the upper-left corner with /// respect to the canvas origin, in the component grid. /// /// |
ulcy | int | The vertical coordinate of the upper-left corner with /// respect to the canvas origin, in the component grid. /// /// |
lvls | int | The number of levels (or LL decompositions) in the tree. /// /// |
hfilters | WaveletFilter | The horizontal wavelet analysis filters for each /// resolution level, starting at resolution level 0. /// /// |
vfilters | WaveletFilter | The vertical wavelet analysis filters for each /// resolution level, starting at resolution level 0. /// /// |
return | System |
protected split ( WaveletFilter hfilter, WaveletFilter vfilter ) : |
||
hfilter | WaveletFilter | The horizontal wavelet filter used to decompose this /// subband. It has to be a AnWTFilter object. /// /// |
vfilter | WaveletFilter | The vertical wavelet filter used to decompose this /// subband. It has to be a AnWTFilter object. /// /// |
return |
public AnWTFilter,CSJ2K.j2k.wavelet.analysis hFilter | ||
return | CSJ2K.j2k.wavelet.analysis.AnWTFilter |
public SubbandAn,CSJ2K.j2k.wavelet.analysis parentband | ||
return |