CSJ2K.j2k.image.input.ImgReaderPGX.getNomRangeBits C# (CSharp) Method

getNomRangeBits() public method

Returns the number of bits corresponding to the nominal range of the data in the specified component. This is the value of bitDepth which is read in the PGX file header.

If this number is b then the nominal range is between -2^(b-1) and 2^(b-1)-1, for originally signed or unsigned data (unsigned data is level shifted to have a nominal average of 0).

public getNomRangeBits ( int c ) : int
c int The index of the component. /// ///
return int
        public override int getNomRangeBits(int c)
        {
            // Check component index
            if (c != 0)
                throw new System.ArgumentException();

            return bitDepth;
        }