CSJ2K.j2k.wavelet.synthesis.InvWTFull.isSubbandReversible C# (CSharp) Метод

isSubbandReversible() приватный Метод

Returns the reversibility of the current subband. It computes iteratively the reversibility of the child subbands. For each subband it tests the reversibility of the horizontal and vertical synthesis filters used to reconstruct this subband.
private isSubbandReversible ( Subband subband ) : bool
subband CSJ2K.j2k.wavelet.Subband The current subband. /// ///
Результат bool
        private bool isSubbandReversible(Subband subband)
        {
            if (subband.isNode)
            {
                // It's reversible if the filters to obtain the 4 subbands are
                // reversible and the ones for this one are reversible too.
                return isSubbandReversible(subband.LL) && isSubbandReversible(subband.HL) && isSubbandReversible(subband.LH) && isSubbandReversible(subband.HH) && ((SubbandSyn) subband).hFilter.Reversible && ((SubbandSyn) subband).vFilter.Reversible;
            }
            else
            {
                // Leaf subband. Reversibility of data depends on source, so say
                // it's true
                return true;
            }
        }