Library/ManagedCuda/NPP/NPPImage_16uC3.cs
/// <summary>
/// Image pixel maximum. Buffer is internally allocated and freed.
/// </summary>
/// <param name="max">Allocated device memory with size of at least 3 * sizeof(ushort)</param>
/// <param name="indexX">Allocated device memory with size of at least 3 * sizeof(int)</param>
/// <param name="indexY">Allocated device memory with size of at least 3 * sizeof(int)</param>
Image pixel maximum. Buffer is internally allocated and freed.
Image pixel maximum . Buffer is internally allocated and freed .
public void MaxIndex(CudaDeviceVariable<ushort> max, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY)
		{
			int bufferSize = MaxIndexGetBufferHostSize();
			CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
			status = NPPNativeMethods.NPPi.MaxIdx.nppiMaxIndx_16u_C3R(_devPtrRoi, _pitch, _sizeRoi, buffer.DevicePointer, max.DevicePointer, indexX.DevicePointer, indexY.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMaxIndx_16u_C3R", status));
			buffer.Dispose();
			NPPException.CheckNppStatus(status, this);
		}
public void MaxIndex ( CudaDeviceVariable < ushort > max , CudaDeviceVariable < int > indexX , CudaDeviceVariable < int > indexY ) { int bufferSize = MaxIndexGetBufferHostSize ( ) ; CudaDeviceVariable < byte > buffer = new CudaDeviceVariable < byte > ( bufferSize ) ; status = NPPNativeMethods . NPPi . MaxIdx . nppiMaxIndx_16u_C3R ( _devPtrRoi , _pitch , _sizeRoi , buffer . DevicePointer , max . DevicePointer , indexX . DevicePointer , indexY . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; buffer . Dispose ( ) ; NPPException . CheckNppStatus ( status , this ) ; }
Image pixel maximum.
Image pixel maximum .
max
CudaDeviceVariable<ushort>
Allocated device memory with size of at least 3 * sizeof(ushort)
Allocated device memory with size of at least 3 * sizeof ( ushort )
indexX
CudaDeviceVariable<int>
Allocated device memory with size of at least 3 * sizeof(int)
Allocated device memory with size of at least 3 * sizeof ( int )
indexY
CudaDeviceVariable<int>
Allocated device memory with size of at least 3 * sizeof(int)
Allocated device memory with size of at least 3 * sizeof ( int )