ManagedCuda.NPP.NPPImage_8uC3.EvenLevels C# (CSharp) Method

EvenLevels() public method

Compute levels with even distribution.
public EvenLevels ( int nLevels, int nLowerBound, int nUpperBound ) : int[]
nLevels int The number of levels being computed. nLevels must be at least 2, otherwise an NPP_- /// HISTO_NUMBER_OF_LEVELS_ERROR error is returned.
nLowerBound int Lower boundary value of the lowest level.
nUpperBound int Upper boundary value of the greatest level.
return int[]
        public int[] EvenLevels(int nLevels, int nLowerBound, int nUpperBound)
        {
            int[] Levels = new int[nLevels];
            status = NPPNativeMethods.NPPi.Histogram.nppiEvenLevelsHost_32s(Levels, nLevels, nLowerBound, nUpperBound);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiEvenLevelsHost_32s", status));
            NPPException.CheckNppStatus(status, this);
            return Levels;
        }
NPPImage_8uC3