Library/ManagedCuda/NPP/NPPImage_16uC1.cs
/// <summary>
/// Image pixel maximum. Buffer is internally allocated and freed.
/// </summary>
/// <param name="max">Allocated device memory with size of at least 1 * sizeof(ushort)</param>
Image pixel maximum. Buffer is internally allocated and freed.
Image pixel maximum . Buffer is internally allocated and freed .
public void Max(CudaDeviceVariable<ushort> max)
		{
			int bufferSize = MaxGetBufferHostSize();
			CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
			status = NPPNativeMethods.NPPi.Max.nppiMax_16u_C1R(_devPtrRoi, _pitch, _sizeRoi, buffer.DevicePointer, max.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMax_16u_C1R", status));
			buffer.Dispose();
			NPPException.CheckNppStatus(status, this);
		}
public void Max ( CudaDeviceVariable < ushort > max ) { int bufferSize = MaxGetBufferHostSize ( ) ; CudaDeviceVariable < byte > buffer = new CudaDeviceVariable < byte > ( bufferSize ) ; status = NPPNativeMethods . NPPi . Max . nppiMax_16u_C1R ( _devPtrRoi , _pitch , _sizeRoi , buffer . DevicePointer , max . 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 1 * sizeof(ushort)
Allocated device memory with size of at least 1 * sizeof ( ushort )