Library/ManagedCuda/NPP/NPPImage_32fC1.cs
/// <summary>
/// Compute levels with even distribution.
/// </summary>
/// <param name="nLevels">The number of levels being computed. nLevels must be at least 2, otherwise an NPP_-
/// HISTO_NUMBER_OF_LEVELS_ERROR error is returned.</param>
/// <param name="nLowerBound">Lower boundary value of the lowest level.</param>
/// <param name="nUpperBound">Upper boundary value of the greatest level.</param>
/// <returns>An array of size nLevels which receives the levels being computed.</returns>
Compute levels with even distribution.
Compute levels with even distribution .
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;
		}
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 ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; return Levels ; }
Compute levels with even distribution.
Compute levels with even distribution .
An array of size nLevels which receives the levels being computed.
An array of size nLevels which receives the levels being computed .
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.
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.
Lower boundary value of the lowest level .
nUpperBound
int
Upper boundary value of the greatest level.
Upper boundary value of the greatest level .