CSJ2K.j2k.wavelet.analysis.ForwWTFull.waveletTreeDecomposition C# (CSharp) Method

waveletTreeDecomposition() private method

Performs the forward wavelet transform on the whole band. It iteratively decomposes the subbands from the top node to the leaves.
private waveletTreeDecomposition ( CSJ2K.j2k.image.DataBlk band, SubbandAn subband, int c ) : void
band CSJ2K.j2k.image.DataBlk The band containing the float data to decompose /// ///
subband SubbandAn The structure containing the coordinates of the current /// subband in the whole band to decompose. /// ///
c int The index of the current component to decompose /// ///
return void
        private void waveletTreeDecomposition(DataBlk band, SubbandAn subband, int c)
        {
            //If the current subband is a leaf then nothing to be done (a leaf is
            //not decomposed).
            if (!subband.isNode)
            {
                return ;
            }
            else
            {
                //Perform the 2D wavelet decomposition of the current subband
                wavelet2DDecomposition(band, (SubbandAn) subband, c);

                //Perform the decomposition of the four resulting subbands
                waveletTreeDecomposition(band, (SubbandAn) subband.HH, c);
                waveletTreeDecomposition(band, (SubbandAn) subband.LH, c);
                waveletTreeDecomposition(band, (SubbandAn) subband.HL, c);
                waveletTreeDecomposition(band, (SubbandAn) subband.LL, c);
            }
        }