Library/ManagedCuda/NPP/NPPImage_16sC4.cs
/// <summary>
/// Image pixel minimum and maximum. Buffer is internally allocated and freed. Not affecting Alpha.
/// </summary>
/// <param name="min">Allocated device memory with size of at least 3 * sizeof(short)</param>
/// <param name="max">Allocated device memory with size of at least 3 * sizeof(short)</param>
Image pixel minimum and maximum. Buffer is internally allocated and freed. Not affecting Alpha.
Image pixel minimum and maximum . Buffer is internally allocated and freed . Not affecting Alpha .
public void MinMaxA(CudaDeviceVariable<short> min, CudaDeviceVariable<short> max)
		{
			int bufferSize = MinMaxGetBufferHostSizeA();
			CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
			status = NPPNativeMethods.NPPi.MinMaxNew.nppiMinMax_16s_AC4R(_devPtrRoi, _pitch, _sizeRoi, min.DevicePointer, max.DevicePointer, buffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMinMax_16s_AC4R", status));
			buffer.Dispose();
			NPPException.CheckNppStatus(status, this);
		}
public void MinMaxA ( CudaDeviceVariable < short > min , CudaDeviceVariable < short > max ) { int bufferSize = MinMaxGetBufferHostSizeA ( ) ; CudaDeviceVariable < byte > buffer = new CudaDeviceVariable < byte > ( bufferSize ) ; status = NPPNativeMethods . NPPi . MinMaxNew . nppiMinMax_16s_AC4R ( _devPtrRoi , _pitch , _sizeRoi , min . DevicePointer , max . DevicePointer , buffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; buffer . Dispose ( ) ; NPPException . CheckNppStatus ( status , this ) ; }
Image pixel minimum and maximum.
Image pixel minimum and maximum .
min
CudaDeviceVariable<short>
Allocated device memory with size of at least 3 * sizeof(short)
Allocated device memory with size of at least 3 * sizeof ( short )
max
CudaDeviceVariable<short>
Allocated device memory with size of at least 3 * sizeof(short)
Allocated device memory with size of at least 3 * sizeof ( short )