Library/ManagedCuda/NPP/NPPImage_16uC1.cs
/// <summary>
/// Histogram with bins determined by pLevels array. Buffer is internally allocated and freed.
/// </summary>
/// <param name="histogram">array that receives the computed histogram. The array must be of size nLevels-1.</param>
/// <param name="pLevels">Array in device memory containing the level sizes of the bins. The array must be of size nLevels</param>
Histogram with bins determined by pLevels array. Buffer is internally allocated and freed.
Histogram with bins determined by pLevels array . Buffer is internally allocated and freed .
public void HistogramRange(CudaDeviceVariable<int> histogram, CudaDeviceVariable<int> pLevels)
		{
			int bufferSize = HistogramRangeGetBufferSize(histogram.Size);
			CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
			status = NPPNativeMethods.NPPi.Histogram.nppiHistogramRange_16u_C1R(_devPtrRoi, _pitch, _sizeRoi, histogram.DevicePointer, pLevels.DevicePointer, pLevels.Size, buffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiHistogramRange_16u_C1R", status));
			buffer.Dispose();
			NPPException.CheckNppStatus(status, this);
		}
public void HistogramRange ( CudaDeviceVariable < int > histogram , CudaDeviceVariable < int > pLevels ) { int bufferSize = HistogramRangeGetBufferSize ( histogram . Size ) ; CudaDeviceVariable < byte > buffer = new CudaDeviceVariable < byte > ( bufferSize ) ; status = NPPNativeMethods . NPPi . Histogram . nppiHistogramRange_16u_C1R ( _devPtrRoi , _pitch , _sizeRoi , histogram . DevicePointer , pLevels . DevicePointer , pLevels . Size , buffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; buffer . Dispose ( ) ; NPPException . CheckNppStatus ( status , this ) ; }
Histogram with bins determined by pLevels array.
Histogram with bins determined by pLevels array .
histogram
CudaDeviceVariable<int>
array that receives the computed histogram. The array must be of size nLevels-1.
array that receives the computed histogram . The array must be of size nLevels - 1 .
pLevels
CudaDeviceVariable<int>
Array in device memory containing the level sizes of the bins. The array must be of size nLevels
Array in device memory containing the level sizes of the bins . The array must be of size nLevels