CSJ2K.j2k.wavelet.WTDecompSpec.getLevels C# (CSharp) Method

getLevels() public method

Returns the decomposition number of levels in component 'n' and tile 't'.

NOTE: The tile specific things are not supported yet

public getLevels ( int n ) : int
n int The component index. /// ///
return int
        public virtual int getLevels(int n)
        {
            switch (specValType[n])
            {

                case DEC_SPEC_MAIN_DEF:
                    return mainDefLevels;

                case DEC_SPEC_COMP_DEF:
                    return compMainDefLevels[n];

                case DEC_SPEC_TILE_DEF:
                    throw new NotImplementedException();

                case DEC_SPEC_TILE_COMP:
                    throw new NotImplementedException();

                default:
                    throw new System.InvalidOperationException("Internal JJ2000 error");

            }
        }