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