Library/ManagedCuda/NPP/NPPImage_16uC1.cs
/// <summary>
/// Image pixel minimum and maximum. No additional buffer is allocated.
/// </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="buffer">Allocated device memory with size of at <see cref="MinMaxGetBufferHostSize()"/></param>
Image pixel minimum and maximum. No additional buffer is allocated.
Image pixel minimum and maximum . No additional buffer is allocated .
public void MinMax(CudaDeviceVariable<ushort> min, CudaDeviceVariable<ushort> max, CudaDeviceVariable<byte> buffer)
		{
			int bufferSize = MinMaxGetBufferHostSize();
			if (bufferSize > buffer.Size) throw new NPPException("Provided buffer is too small.");
			status = NPPNativeMethods.NPPi.MinMaxNew.nppiMinMax_16u_C1R(_devPtrRoi, _pitch, _sizeRoi, min.DevicePointer, max.DevicePointer, buffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMinMax_16u_C1R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void MinMax ( CudaDeviceVariable < ushort > min , CudaDeviceVariable < ushort > max , CudaDeviceVariable < byte > buffer ) { int bufferSize = MinMaxGetBufferHostSize ( ) ; if ( bufferSize > buffer . Size ) throw new NPPException ( " " ) ; status = NPPNativeMethods . NPPi . MinMaxNew . nppiMinMax_16u_C1R ( _devPtrRoi , _pitch , _sizeRoi , min . DevicePointer , max . DevicePointer , buffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
Image pixel minimum and maximum.
Image pixel minimum and maximum .
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 )
buffer
CudaDeviceVariable<byte>
Allocated device memory with size of at
Allocated device memory with size of at