Library/ManagedCuda/NPP/NPPImage_32fC1.cs
/// <summary>
/// image maximum error. User buffer is internally allocated and freed.
/// </summary>
/// <param name="src2">2nd source image</param>
/// <param name="pError">Pointer to the computed error.</param>
image maximum error. User buffer is internally allocated and freed.
image maximum error . User buffer is internally allocated and freed .
public void MaxError(NPPImage_32fC1 src2, CudaDeviceVariable<double> pError)
		{
			int bufferSize = MaxErrorGetBufferHostSize();
			CudaDeviceVariable<byte> buffer = new CudaDeviceVariable<byte>(bufferSize);
			status = NPPNativeMethods.NPPi.MaximumError.nppiMaximumError_32f_C1R(_devPtrRoi, _pitch, src2.DevicePointerRoi, src2.Pitch, _sizeRoi, pError.DevicePointer, buffer.DevicePointer);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiMaximumError_32f_C1R", status));
			buffer.Dispose();
			NPPException.CheckNppStatus(status, this);
		}
public void MaxError ( NPPImage_32fC1 src2 , CudaDeviceVariable < double > pError ) { int bufferSize = MaxErrorGetBufferHostSize ( ) ; CudaDeviceVariable < byte > buffer = new CudaDeviceVariable < byte > ( bufferSize ) ; status = NPPNativeMethods . NPPi . MaximumError . nppiMaximumError_32f_C1R ( _devPtrRoi , _pitch , src2 . DevicePointerRoi , src2 . Pitch , _sizeRoi , pError . DevicePointer , buffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; buffer . Dispose ( ) ; NPPException . CheckNppStatus ( status , this ) ; }
image maximum error.
image maximum error .
src2
NPPImage_32fC1
2nd source image
2nd source image
pError
CudaDeviceVariable<double>
Pointer to the computed error.
Pointer to the computed error .