Library/ManagedCuda/NPP/NPPImage_16uC1.cs
/// <summary>
/// Histogram with evenly distributed bins. Buffer is internally allocated and freed.
/// </summary>
/// <param name="histogram">Allocated device memory of size nLevels</param>
/// <param name="nLowerLevel">Lower boundary of lowest level bin. E.g. 0 for [0..255]</param>
/// <param name="nUpperLevel">Upper boundary of highest level bin. E.g. 256 for [0..255]</param>
Histogram with evenly distributed bins. Buffer is internally allocated and freed.
Histogram with evenly distributed bins . Buffer is internally allocated and freed .
public void HistogramEven(CudaDeviceVariable<int> histogram, int nLowerLevel, int nUpperLevel)
		{
			int bufferSize = HistogramEvenGetBufferSize(histogram.Size + 1);
			CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
			status = NPPNativeMethods.NPPi.Histogram.nppiHistogramEven_16u_C1R(_devPtrRoi, _pitch, _sizeRoi, histogram.DevicePointer, histogram.Size + 1, nLowerLevel, nUpperLevel, buffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiHistogramEven_16u_C1R", status));
			buffer.Dispose();
			NPPException.CheckNppStatus(status, this);
		}
public void HistogramEven ( CudaDeviceVariable < int > histogram , int nLowerLevel , int nUpperLevel ) { int bufferSize = HistogramEvenGetBufferSize ( histogram . Size + 1 ) ; CudaDeviceVariable < byte > buffer = new CudaDeviceVariable < byte > ( bufferSize ) ; status = NPPNativeMethods . NPPi . Histogram . nppiHistogramEven_16u_C1R ( _devPtrRoi , _pitch , _sizeRoi , histogram . DevicePointer , histogram . Size + 1 , nLowerLevel , nUpperLevel , buffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; buffer . Dispose ( ) ; NPPException . CheckNppStatus ( status , this ) ; }
Histogram with evenly distributed bins.
Histogram with evenly distributed bins .
histogram
CudaDeviceVariable<int>
Allocated device memory of size nLevels
Allocated device memory of size nLevels
nLowerLevel
int
Lower boundary of lowest level bin. E.g.
Lower boundary of lowest level bin . E . g .
nUpperLevel
int
Upper boundary of highest level bin. E.g.
Upper boundary of highest level bin . E . g .