Library/ManagedCuda/NPP/NPPImage_8uC1.cs
/// <summary>
/// One-channel 8-bit unsigned image PSNR.
/// </summary>
/// <param name="src2">2nd source image</param>
/// <param name="pPSNR">Pointer to the computed PSNR of two images. </param>
/// <param name="pDeviceBuffer">Pointer to the required device memory allocation. Use \ref nppiPSNRGetBufferHostSize_8u_C1R to compute the required size (in bytes).</param>
One-channel 8-bit unsigned image PSNR.
One - channel 8 - bit unsigned image PSNR .
public void PSNR(NPPImage_8uC1 src2, CudaDeviceVariable<float> pPSNR, CudaDeviceVariable<byte> pDeviceBuffer)
        {
            status = NPPNativeMethods.NPPi.IQA.nppiPSNR_8u_C1R(_devPtrRoi, _pitch, src2.DevicePointerRoi, src2.Pitch, _sizeRoi, pPSNR.DevicePointer, pDeviceBuffer.DevicePointer);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiPSNR_8u_C1R", status));
            NPPException.CheckNppStatus(status, this);
        }
public void PSNR ( NPPImage_8uC1 src2 , CudaDeviceVariable < float > pPSNR , CudaDeviceVariable < byte > pDeviceBuffer ) { status = NPPNativeMethods . NPPi . IQA . nppiPSNR_8u_C1R ( _devPtrRoi , _pitch , src2 . DevicePointerRoi , src2 . Pitch , _sizeRoi , pPSNR . DevicePointer , pDeviceBuffer . DevicePointer ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
One-channel 8-bit unsigned image PSNR.
One - channel 8 - bit unsigned image PSNR .
src2
NPPImage_8uC1
2nd source image
2nd source image
pPSNR
CudaDeviceVariable<float>
Pointer to the computed PSNR of two images.
Pointer to the computed PSNR of two images .
pDeviceBuffer
CudaDeviceVariable<byte>
Pointer to the required device memory allocation. Use \ref nppiPSNRGetBufferHostSize_8u_C1R to compute the required size (in bytes).
Pointer to the required device memory allocation . Use \ ref nppiPSNRGetBufferHostSize_8u_C1R to compute the required size ( in bytes ) .