Library/ManagedCuda/NPP/NPPImage_16uC1.cs
/// <summary>
/// Image pixel minimum and maximum values with their indices. Buffer is internally allocated and freed.
/// </summary>
/// <param name="min">Allocated device memory with size of at least 1 * sizeof(ushort)</param>
/// <param name="max">Allocated device memory with size of at least 1 * sizeof(ushort)</param>
/// <param name="minIndex">Allocated device memory with size of at least 1 * sizeof(NppiPoint)</param>
/// <param name="maxIndex">Allocated device memory with size of at least 1 * sizeof(NppiPoint)</param>
/// <param name="mask">If the mask is filled with zeros, then all the returned values are zeros, i.e., pMinIndex = {0, 0}, pMaxIndex = {0, 0}, pMinValue = 0, pMaxValue = 0.</param>
Image pixel minimum and maximum values with their indices. Buffer is internally allocated and freed.
Image pixel minimum and maximum values with their indices . Buffer is internally allocated and freed .
public void MinMaxIndex(CudaDeviceVariable<ushort> min, CudaDeviceVariable<ushort> max, CudaDeviceVariable<NppiPoint> minIndex, CudaDeviceVariable<NppiPoint> maxIndex, NPPImage_8uC1 mask)
		{
			int bufferSize = MinMaxIndexGetBufferHostSize();
			CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
			status = NPPNativeMethods.NPPi.MinMaxIndxNew.nppiMinMaxIndx_16u_C1MR(_devPtrRoi, _pitch, mask.DevicePointerRoi, mask.Pitch, _sizeRoi, min.DevicePointer, max.DevicePointer, minIndex.DevicePointer, maxIndex.DevicePointer, buffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMinMaxIndx_16u_C1MR", status));
			buffer.Dispose();
			NPPException.CheckNppStatus(status, this);
		}
public void MinMaxIndex ( CudaDeviceVariable < ushort > min , CudaDeviceVariable < ushort > max , CudaDeviceVariable < NppiPoint > minIndex , CudaDeviceVariable < NppiPoint > maxIndex , NPPImage_8uC1 mask ) { int bufferSize = MinMaxIndexGetBufferHostSize ( ) ; CudaDeviceVariable < byte > buffer = new CudaDeviceVariable < byte > ( bufferSize ) ; status = NPPNativeMethods . NPPi . MinMaxIndxNew . nppiMinMaxIndx_16u_C1MR ( _devPtrRoi , _pitch , mask . DevicePointerRoi , mask . Pitch , _sizeRoi , min . DevicePointer , max . DevicePointer , minIndex . DevicePointer , maxIndex . DevicePointer , buffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; buffer . Dispose ( ) ; NPPException . CheckNppStatus ( status , this ) ; }
Image pixel minimum and maximum values with their indices.
Image pixel minimum and maximum values with their indices .
min
CudaDeviceVariable<ushort>
Allocated device memory with size of at least 1 * sizeof(ushort)
Allocated device memory with size of at least 1 * sizeof ( ushort )
max
CudaDeviceVariable<ushort>
Allocated device memory with size of at least 1 * sizeof(ushort)
Allocated device memory with size of at least 1 * sizeof ( ushort )
minIndex
CudaDeviceVariable<NppiPoint>
Allocated device memory with size of at least 1 * sizeof(NppiPoint)
Allocated device memory with size of at least 1 * sizeof ( NppiPoint )
maxIndex
CudaDeviceVariable<NppiPoint>
Allocated device memory with size of at least 1 * sizeof(NppiPoint)
Allocated device memory with size of at least 1 * sizeof ( NppiPoint )
mask
NPPImage_8uC1
If the mask is filled with zeros, then all the returned values are zeros, i.e., pMinIndex = {0, 0}, pMaxIndex = {0, 0}, pMinValue = 0, pMaxValue = 0.
If the mask is filled with zeros then all the returned values are zeros i . e . pMinIndex = { 0 0 } pMaxIndex = { 0 0 } pMinValue = 0 pMaxValue = 0 .