CSJ2K.j2k.image.input.ImgReaderPPM.getNomRangeBits C# (CSharp) Метод

getNomRangeBits() публичный Метод

Returns the number of bits corresponding to the nominal range of the data in the specified component. This is the value rb (range bits) that was specified in the constructor, which normally is 8 for non bilevel data, and 1 for bilevel data.

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

public getNomRangeBits ( int c ) : int
c int The index of the component. /// ///
Результат int
        public override int getNomRangeBits(int c)
        {
            // Check component index
            if (c < 0 || c > 2)
                throw new System.ArgumentException();

            return rb;
        }