NVIDIA Performance Primitives (NPP)  Version 9.1

Primitives for computing the image quality between two images, such as MSE, PSNR, SSIM, and MS-SSIM. More...

MSE

NppStatus nppiMSE_8u_C1R (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, NppiSize oSizeROI, Npp32f *pMSE, Npp8u *pDeviceBuffer)
 One-channel 8-bit unsigned image MSE. More...
 
NppStatus nppiPSNR_8u_C1R (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, NppiSize oSizeROI, Npp32f *pPSNR, Npp8u *pDeviceBuffer)
 One-channel 8-bit unsigned image PSNR. More...
 
NppStatus nppiSSIM_8u_C1R (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, NppiSize oSizeROI, Npp32f *pSSIM, Npp8u *pDeviceBuffer)
 One-channel 8-bit unsigned image SSIM. More...
 
NppStatus nppiMSSSIM_8u_C1R (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, NppiSize oSizeROI, Npp32f *pMSSSIM, Npp8u *pDeviceBuffer)
 One-channel 8-bit unsigned image MS-SSIM*. More...
 
NppStatus nppiMSEGetBufferHostSize_8u_C1R (NppiSize oSizeROI, int *hpBufferSize)
 Buffer size for nppiMSE_8u_C1R. More...
 
NppStatus nppiPSNRGetBufferHostSize_8u_C1R (NppiSize oSizeROI, int *hpBufferSize)
 Buffer size for nppiPSNR_8u_C1R. More...
 
NppStatus nppiSSIMGetBufferHostSize_8u_C1R (NppiSize oSizeROI, int *hpBufferSize)
 Buffer size for nppiSSIM_8u_C1R. More...
 
NppStatus nppiMSSSIMGetBufferHostSize_8u_C1R (NppiSize oSizeROI, int *hpBufferSize)
 Buffer size for nppiMSSSIM_8u_C1R. More...
 

Detailed Description

Primitives for computing the image quality between two images, such as MSE, PSNR, SSIM, and MS-SSIM.

Function Documentation

NppStatus nppiMSE_8u_C1R ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
NppiSize  oSizeROI,
Npp32f pMSE,
Npp8u pDeviceBuffer 
)

One-channel 8-bit unsigned image MSE.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
pSrc2Source-Image Pointer.
nSrc2StepSource-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
pMSEPointer to the computed MSE of two images.
pDeviceBufferPointer to the required device memory allocation, Scratch Buffer and Host Pointer.
Returns
Image Data Related Error Codes, ROI Related Error Codes.
NppStatus nppiMSEGetBufferHostSize_8u_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Buffer size for nppiMSE_8u_C1R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiMSSSIM_8u_C1R ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
NppiSize  oSizeROI,
Npp32f pMSSSIM,
Npp8u pDeviceBuffer 
)

One-channel 8-bit unsigned image MS-SSIM*.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
pSrc2Source-Image Pointer.
nSrc2StepSource-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
pMSSSIMPointer to the computed MS-SSIM of two images.
pDeviceBufferPointer to the required device memory allocation, Scratch Buffer and Host Pointer.
Returns
Image Data Related Error Codes, ROI Related Error Codes.
NppStatus nppiMSSSIMGetBufferHostSize_8u_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Buffer size for nppiMSSSIM_8u_C1R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiPSNR_8u_C1R ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
NppiSize  oSizeROI,
Npp32f pPSNR,
Npp8u pDeviceBuffer 
)

One-channel 8-bit unsigned image PSNR.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
pSrc2Source-Image Pointer.
nSrc2StepSource-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
pPSNRPointer to the computed PSNR of two images.
pDeviceBufferPointer to the required device memory allocation, Scratch Buffer and Host Pointer.
Returns
Image Data Related Error Codes, ROI Related Error Codes.
NppStatus nppiPSNRGetBufferHostSize_8u_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Buffer size for nppiPSNR_8u_C1R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiSSIM_8u_C1R ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
NppiSize  oSizeROI,
Npp32f pSSIM,
Npp8u pDeviceBuffer 
)

One-channel 8-bit unsigned image SSIM.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
pSrc2Source-Image Pointer.
nSrc2StepSource-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
pSSIMPointer to the computed SSIM of two images.
pDeviceBufferPointer to the required device memory allocation, Scratch Buffer and Host Pointer.
Returns
Image Data Related Error Codes, ROI Related Error Codes.
NppStatus nppiSSIMGetBufferHostSize_8u_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Buffer size for nppiSSIM_8u_C1R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.


Copyright © 2009-2017 NVIDIA Corporation