[]
Creates a Subband element with all the default values. The dimensions are (0,0), the upper left corner is (0,0) and the upper-left corner with respect to the canvas is (0,0) too.
public Subband()
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.
<p>For the analysis subband gain calculation it is assumed that
analysis filters are normalized with a DC gain of 1 and a Nyquist gain
of 2.</p><p>This constructor does not initialize the value of the magBits member
variable. This variable is normally initialized by the quantizer, on
the encoder side, or the bit stream reader, on the decoder side.</p>
public Subband(int w, int h, int ulcx, int ulcy, int lvls, WaveletFilter[] hfilters, WaveletFilter[] vfilters)
Type | Name | Description |
---|---|---|
int | w | The top-level width |
int | h | The top-level height |
int | ulcx | The horizontal coordinate of the upper-left corner with respect to the canvas origin, in the component grid. |
int | ulcy | The vertical coordinate of the upper-left corner with respect to the canvas origin, in the component grid. |
int | lvls | The number of levels (or LL decompositions) in the tree. |
WaveletFilter[] | hfilters | The horizontal wavelet filters (analysis or synthesis) for each resolution level, starting at resolution level 0. If there are less elements in the array than there are resolution levels, the last element is used for the remaining resolution levels. |
WaveletFilter[] | vfilters | The vertical wavelet filters (analysis or synthesis) for each resolution level, starting at resolution level 0. If there are less elements in the array than there are resolution levels, the last element is used for the remaining resolution levels. |