NVIDIA 2D Image And Signal Performance Primitives (NPP)  Version 11.2.1.*
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
ResizeSqrPixel

ResizeSqrPixel functions attempt to choose source pixels that would approximately represent the center of the destination pixels. More...

GetResizeRect

Returns NppiRect which represents the offset and size of the destination rectangle that would be generated by resizing the source NppiRect by the requested scale factors and shifts.

NppStatus nppiGetResizeRect (NppiRect oSrcROI, NppiRect *pDstRect, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 

ResizeSqrPixel

Resizes images.

Common parameters for nppiResizeSqrPixel packed pixel functions include:

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
oSrcSizeSize in pixels of the source image.
oSrcROIRegion of interest in the source image.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oDstROIRegion of interest in the destination image.
nXFactorFactor by which x dimension is changed.
nYFactorFactor by which y dimension is changed.
nXShiftSource pixel shift in x-direction.
nYShiftSource pixel shift in y-direction.
eInterpolationThe type of eInterpolation to perform resampling.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes, Error Codes

Common parameters for nppiResizeSqrPixel planar pixel functions include:

Parameters
pSrcSource-Planar-Image Pointer Array (host memory array containing device memory image plane pointers).
nSrcStepSource-Image Line Step.
oSrcSizeSize in pixels of the source image.
oSrcROIRegion of interest in the source image.
pDstDestination-Planar-Image Pointer Array (host memory array containing device memory image plane pointers).
nDstStepDestination-Image Line Step.
oDstROIRegion of interest in the destination image.
nXFactorFactor by which x dimension is changed.
nYFactorFactor by which y dimension is changed.
nXShiftSource pixel shift in x-direction.
nYShiftSource pixel shift in y-direction.
eInterpolationThe type of eInterpolation to perform resampling.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes, Error Codes
NppStatus nppiResizeSqrPixel_8u_C1R_Ctx (const Npp8u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp8u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 1 channel 8-bit unsigned image resize. More...
 
NppStatus nppiResizeSqrPixel_8u_C1R (const Npp8u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp8u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_8u_C3R_Ctx (const Npp8u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp8u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 3 channel 8-bit unsigned image resize. More...
 
NppStatus nppiResizeSqrPixel_8u_C3R (const Npp8u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp8u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_8u_C4R_Ctx (const Npp8u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp8u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 4 channel 8-bit unsigned image resize. More...
 
NppStatus nppiResizeSqrPixel_8u_C4R (const Npp8u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp8u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_8u_AC4R_Ctx (const Npp8u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp8u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 4 channel 8-bit unsigned image resize not affecting alpha. More...
 
NppStatus nppiResizeSqrPixel_8u_AC4R (const Npp8u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp8u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_8u_P3R_Ctx (const Npp8u *const pSrc[3], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp8u *pDst[3], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 3 channel 8-bit unsigned planar image resize. More...
 
NppStatus nppiResizeSqrPixel_8u_P3R (const Npp8u *const pSrc[3], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp8u *pDst[3], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_8u_P4R_Ctx (const Npp8u *const pSrc[4], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp8u *pDst[4], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 4 channel 8-bit unsigned planar image resize. More...
 
NppStatus nppiResizeSqrPixel_8u_P4R (const Npp8u *const pSrc[4], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp8u *pDst[4], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_16u_C1R_Ctx (const Npp16u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 1 channel 16-bit unsigned image resize. More...
 
NppStatus nppiResizeSqrPixel_16u_C1R (const Npp16u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_16u_C3R_Ctx (const Npp16u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 3 channel 16-bit unsigned image resize. More...
 
NppStatus nppiResizeSqrPixel_16u_C3R (const Npp16u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_16u_C4R_Ctx (const Npp16u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 4 channel 16-bit unsigned image resize. More...
 
NppStatus nppiResizeSqrPixel_16u_C4R (const Npp16u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_16u_AC4R_Ctx (const Npp16u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 4 channel 16-bit unsigned image resize not affecting alpha. More...
 
NppStatus nppiResizeSqrPixel_16u_AC4R (const Npp16u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_16u_P3R_Ctx (const Npp16u *const pSrc[3], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16u *pDst[3], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 3 channel 16-bit unsigned planar image resize. More...
 
NppStatus nppiResizeSqrPixel_16u_P3R (const Npp16u *const pSrc[3], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16u *pDst[3], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_16u_P4R_Ctx (const Npp16u *const pSrc[4], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16u *pDst[4], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 4 channel 16-bit unsigned planar image resize. More...
 
NppStatus nppiResizeSqrPixel_16u_P4R (const Npp16u *const pSrc[4], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16u *pDst[4], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_16s_C1R_Ctx (const Npp16s *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16s *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 1 channel 16-bit signed image resize. More...
 
NppStatus nppiResizeSqrPixel_16s_C1R (const Npp16s *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16s *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_16s_C3R_Ctx (const Npp16s *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16s *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 3 channel 16-bit signed image resize. More...
 
NppStatus nppiResizeSqrPixel_16s_C3R (const Npp16s *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16s *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_16s_C4R_Ctx (const Npp16s *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16s *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 4 channel 16-bit signed image resize. More...
 
NppStatus nppiResizeSqrPixel_16s_C4R (const Npp16s *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16s *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_16s_AC4R_Ctx (const Npp16s *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16s *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 4 channel 16-bit signed image resize not affecting alpha. More...
 
NppStatus nppiResizeSqrPixel_16s_AC4R (const Npp16s *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16s *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_16s_P3R_Ctx (const Npp16s *const pSrc[3], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16s *pDst[3], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 3 channel 16-bit signed planar image resize. More...
 
NppStatus nppiResizeSqrPixel_16s_P3R (const Npp16s *const pSrc[3], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16s *pDst[3], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_16s_P4R_Ctx (const Npp16s *const pSrc[4], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16s *pDst[4], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 4 channel 16-bit signed planar image resize. More...
 
NppStatus nppiResizeSqrPixel_16s_P4R (const Npp16s *const pSrc[4], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp16s *pDst[4], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_32f_C1R_Ctx (const Npp32f *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp32f *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 1 channel 32-bit floating point image resize. More...
 
NppStatus nppiResizeSqrPixel_32f_C1R (const Npp32f *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp32f *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_32f_C3R_Ctx (const Npp32f *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp32f *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 3 channel 32-bit floating point image resize. More...
 
NppStatus nppiResizeSqrPixel_32f_C3R (const Npp32f *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp32f *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_32f_C4R_Ctx (const Npp32f *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp32f *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 4 channel 32-bit floating point image resize. More...
 
NppStatus nppiResizeSqrPixel_32f_C4R (const Npp32f *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp32f *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_32f_AC4R_Ctx (const Npp32f *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp32f *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 4 channel 32-bit floating point image resize not affecting alpha. More...
 
NppStatus nppiResizeSqrPixel_32f_AC4R (const Npp32f *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp32f *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_32f_P3R_Ctx (const Npp32f *const pSrc[3], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp32f *pDst[3], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 3 channel 32-bit floating point planar image resize. More...
 
NppStatus nppiResizeSqrPixel_32f_P3R (const Npp32f *const pSrc[3], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp32f *pDst[3], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_32f_P4R_Ctx (const Npp32f *const pSrc[4], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp32f *pDst[4], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 4 channel 32-bit floating point planar image resize. More...
 
NppStatus nppiResizeSqrPixel_32f_P4R (const Npp32f *const pSrc[4], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp32f *pDst[4], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_64f_C1R_Ctx (const Npp64f *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp64f *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 1 channel 64-bit floating point image resize. More...
 
NppStatus nppiResizeSqrPixel_64f_C1R (const Npp64f *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp64f *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_64f_C3R_Ctx (const Npp64f *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp64f *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 3 channel 64-bit floating point image resize. More...
 
NppStatus nppiResizeSqrPixel_64f_C3R (const Npp64f *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp64f *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_64f_C4R_Ctx (const Npp64f *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp64f *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 4 channel 64-bit floating point image resize. More...
 
NppStatus nppiResizeSqrPixel_64f_C4R (const Npp64f *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp64f *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_64f_AC4R_Ctx (const Npp64f *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp64f *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 4 channel 64-bit floating point image resize not affecting alpha. More...
 
NppStatus nppiResizeSqrPixel_64f_AC4R (const Npp64f *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp64f *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_64f_P3R_Ctx (const Npp64f *const pSrc[3], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp64f *pDst[3], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 3 channel 64-bit floating point planar image resize. More...
 
NppStatus nppiResizeSqrPixel_64f_P3R (const Npp64f *const pSrc[3], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp64f *pDst[3], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeSqrPixel_64f_P4R_Ctx (const Npp64f *const pSrc[4], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp64f *pDst[4], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation, NppStreamContext nppStreamCtx)
 4 channel 64-bit floating point planar image resize. More...
 
NppStatus nppiResizeSqrPixel_64f_P4R (const Npp64f *const pSrc[4], NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp64f *pDst[4], int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, double nXShift, double nYShift, int eInterpolation)
 
NppStatus nppiResizeAdvancedGetBufferHostSize_8u_C1R (NppiSize oSrcROI, NppiSize oDstROI, int *hpBufferSize, int eInterpolationMode)
 Buffer size for nppiResizeSqrPixel_8u_C1R_Advanced. More...
 
NppStatus nppiResizeSqrPixel_8u_C1R_Advanced_Ctx (const Npp8u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp8u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, Npp8u *pBuffer, int eInterpolationMode, NppStreamContext nppStreamCtx)
 1 channel 8-bit unsigned image resize. More...
 
NppStatus nppiResizeSqrPixel_8u_C1R_Advanced (const Npp8u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp8u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, Npp8u *pBuffer, int eInterpolationMode)
 

Detailed Description

ResizeSqrPixel functions attempt to choose source pixels that would approximately represent the center of the destination pixels.

It does so by using the following scaling formula to select source pixels for interpolation:

* nAdjustedXFactor = 1.0 / nXFactor;
* nAdjustedYFactor = 1.0 / nYFactor;
* nAdjustedXShift = nXShift * nAdjustedXFactor + ((1.0 - nAdjustedXFactor) * 0.5);
* nAdjustedYShift = nYShift * nAdjustedYFactor + ((1.0 - nAdjustedYFactor) * 0.5);
* nSrcX = nAdjustedXFactor * nDstX - nAdjustedXShift;
* nSrcY = nAdjustedYFactor * nDstY - nAdjustedYShift;
*

ResizeSqrPixel functions support the following interpolation modes:

*

In the ResizeSqrPixel functions below source image clip checking is handled as follows:

If the source pixel fractional x and y coordinates are greater than or equal to oSizeROI.x and less than oSizeROI.x + oSizeROI.width and greater than or equal to oSizeROI.y and less than oSizeROI.y + oSizeROI.height then the source pixel is considered to be within the source image clip rectangle and the source image is sampled. Otherwise the source image is not sampled and a destination pixel is not written to the destination image.

Error Codes

The resize primitives return the following error codes:

    - ::NPP_WRONG_INTERSECTION_ROI_ERROR indicates an error condition if
      srcROIRect has no intersection with the source image.
    - ::NPP_RESIZE_NO_OPERATION_ERROR if either destination ROI width or
      height is less than 1 pixel.
    - ::NPP_RESIZE_FACTOR_ERROR Indicates an error condition if either nXFactor or
      nYFactor is less than or equal to zero or in the case of NPPI_INTER_SUPER are not both downscaling.
    - ::NPP_INTERPOLATION_ERROR if eInterpolation has an illegal value.
    - ::NPP_SIZE_ERROR if source size width or height is less than 2 pixels.

Function Documentation

NppStatus nppiGetResizeRect ( NppiRect  oSrcROI,
NppiRect pDstRect,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
Parameters
oSrcROIRegion of interest in the source image.
pDstRectUser supplied host memory pointer to an NppiRect structure that will be filled in by this function with the region of interest in the destination image.
nXFactorFactor by which x dimension is changed.
nYFactorFactor by which y dimension is changed.
nXShiftSource pixel shift in x-direction.
nYShiftSource pixel shift in y-direction.
eInterpolationThe type of eInterpolation to perform resampling.
Returns
Image Data Related Error Codes, ROI Related Error Codes, Error Codes
NppStatus nppiResizeAdvancedGetBufferHostSize_8u_C1R ( NppiSize  oSrcROI,
NppiSize  oDstROI,
int *  hpBufferSize,
int  eInterpolationMode 
)

Buffer size for nppiResizeSqrPixel_8u_C1R_Advanced.

Parameters
oSrcROIRegion-of-Interest (ROI).
oDstROIRegion-of-Interest (ROI).
hpBufferSizeRequired buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer.
eInterpolationModeThe type of eInterpolation to perform resampling. Currently only supports NPPI_INTER_LANCZOS3_Advanced.
Returns
NPP_NULL_POINTER_ERROR if hpBufferSize is 0 (NULL), ROI Related Error Codes.
NppStatus nppiResizeSqrPixel_16s_AC4R ( const Npp16s pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16s pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_16s_AC4R_Ctx ( const Npp16s pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16s pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

4 channel 16-bit signed image resize not affecting alpha.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_16s_C1R ( const Npp16s pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16s pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_16s_C1R_Ctx ( const Npp16s pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16s pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit signed image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_16s_C3R ( const Npp16s pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16s pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_16s_C3R_Ctx ( const Npp16s pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16s pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

3 channel 16-bit signed image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_16s_C4R ( const Npp16s pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16s pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_16s_C4R_Ctx ( const Npp16s pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16s pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

4 channel 16-bit signed image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_16s_P3R ( const Npp16s *const  pSrc[3],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16s pDst[3],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_16s_P3R_Ctx ( const Npp16s *const  pSrc[3],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16s pDst[3],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

3 channel 16-bit signed planar image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel planar pixel functions.

NppStatus nppiResizeSqrPixel_16s_P4R ( const Npp16s *const  pSrc[4],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16s pDst[4],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_16s_P4R_Ctx ( const Npp16s *const  pSrc[4],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16s pDst[4],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

4 channel 16-bit signed planar image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel planar pixel functions.

NppStatus nppiResizeSqrPixel_16u_AC4R ( const Npp16u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_16u_AC4R_Ctx ( const Npp16u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

4 channel 16-bit unsigned image resize not affecting alpha.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_16u_C1R ( const Npp16u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_16u_C1R_Ctx ( const Npp16u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

1 channel 16-bit unsigned image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_16u_C3R ( const Npp16u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_16u_C3R_Ctx ( const Npp16u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

3 channel 16-bit unsigned image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_16u_C4R ( const Npp16u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_16u_C4R_Ctx ( const Npp16u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

4 channel 16-bit unsigned image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_16u_P3R ( const Npp16u *const  pSrc[3],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16u pDst[3],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_16u_P3R_Ctx ( const Npp16u *const  pSrc[3],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16u pDst[3],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

3 channel 16-bit unsigned planar image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel planar pixel functions.

NppStatus nppiResizeSqrPixel_16u_P4R ( const Npp16u *const  pSrc[4],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16u pDst[4],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_16u_P4R_Ctx ( const Npp16u *const  pSrc[4],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp16u pDst[4],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

4 channel 16-bit unsigned planar image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel planar pixel functions.

NppStatus nppiResizeSqrPixel_32f_AC4R ( const Npp32f pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp32f pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_32f_AC4R_Ctx ( const Npp32f pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp32f pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

4 channel 32-bit floating point image resize not affecting alpha.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_32f_C1R ( const Npp32f pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp32f pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_32f_C1R_Ctx ( const Npp32f pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp32f pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

1 channel 32-bit floating point image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_32f_C3R ( const Npp32f pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp32f pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_32f_C3R_Ctx ( const Npp32f pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp32f pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

3 channel 32-bit floating point image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_32f_C4R ( const Npp32f pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp32f pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_32f_C4R_Ctx ( const Npp32f pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp32f pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

4 channel 32-bit floating point image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_32f_P3R ( const Npp32f *const  pSrc[3],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp32f pDst[3],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_32f_P3R_Ctx ( const Npp32f *const  pSrc[3],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp32f pDst[3],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

3 channel 32-bit floating point planar image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel planar pixel functions.

NppStatus nppiResizeSqrPixel_32f_P4R ( const Npp32f *const  pSrc[4],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp32f pDst[4],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_32f_P4R_Ctx ( const Npp32f *const  pSrc[4],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp32f pDst[4],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

4 channel 32-bit floating point planar image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel planar pixel functions.

NppStatus nppiResizeSqrPixel_64f_AC4R ( const Npp64f pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp64f pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_64f_AC4R_Ctx ( const Npp64f pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp64f pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

4 channel 64-bit floating point image resize not affecting alpha.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_64f_C1R ( const Npp64f pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp64f pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_64f_C1R_Ctx ( const Npp64f pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp64f pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

1 channel 64-bit floating point image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_64f_C3R ( const Npp64f pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp64f pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_64f_C3R_Ctx ( const Npp64f pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp64f pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

3 channel 64-bit floating point image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_64f_C4R ( const Npp64f pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp64f pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_64f_C4R_Ctx ( const Npp64f pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp64f pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

4 channel 64-bit floating point image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_64f_P3R ( const Npp64f *const  pSrc[3],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp64f pDst[3],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_64f_P3R_Ctx ( const Npp64f *const  pSrc[3],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp64f pDst[3],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

3 channel 64-bit floating point planar image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel planar pixel functions.

NppStatus nppiResizeSqrPixel_64f_P4R ( const Npp64f *const  pSrc[4],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp64f pDst[4],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_64f_P4R_Ctx ( const Npp64f *const  pSrc[4],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp64f pDst[4],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

4 channel 64-bit floating point planar image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel planar pixel functions.

NppStatus nppiResizeSqrPixel_8u_AC4R ( const Npp8u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp8u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_8u_AC4R_Ctx ( const Npp8u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp8u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

4 channel 8-bit unsigned image resize not affecting alpha.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_8u_C1R ( const Npp8u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp8u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_8u_C1R_Advanced ( const Npp8u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp8u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
Npp8u pBuffer,
int  eInterpolationMode 
)
NppStatus nppiResizeSqrPixel_8u_C1R_Advanced_Ctx ( const Npp8u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp8u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
Npp8u pBuffer,
int  eInterpolationMode,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit unsigned image resize.

This primitive matches the behavior of GraphicsMagick++.

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
oSrcSizeSize in pixels of the source image.
oSrcROIRegion of interest in the source image.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oDstROIRegion of interest in the destination image.
nXFactorFactor by which x dimension is changed.
nYFactorFactor by which y dimension is changed.
pBufferDevice buffer that is used during calculations.
eInterpolationModeThe type of eInterpolation to perform resampling. Currently only supports NPPI_INTER_LANCZOS3_Advanced.
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes, Error Codes
NppStatus nppiResizeSqrPixel_8u_C1R_Ctx ( const Npp8u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp8u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

1 channel 8-bit unsigned image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_8u_C3R ( const Npp8u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp8u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_8u_C3R_Ctx ( const Npp8u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp8u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

3 channel 8-bit unsigned image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_8u_C4R ( const Npp8u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp8u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_8u_C4R_Ctx ( const Npp8u pSrc,
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp8u pDst,
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

4 channel 8-bit unsigned image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.

NppStatus nppiResizeSqrPixel_8u_P3R ( const Npp8u *const  pSrc[3],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp8u pDst[3],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_8u_P3R_Ctx ( const Npp8u *const  pSrc[3],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp8u pDst[3],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

3 channel 8-bit unsigned planar image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel planar pixel functions.

NppStatus nppiResizeSqrPixel_8u_P4R ( const Npp8u *const  pSrc[4],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp8u pDst[4],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation 
)
NppStatus nppiResizeSqrPixel_8u_P4R_Ctx ( const Npp8u *const  pSrc[4],
NppiSize  oSrcSize,
int  nSrcStep,
NppiRect  oSrcROI,
Npp8u pDst[4],
int  nDstStep,
NppiRect  oDstROI,
double  nXFactor,
double  nYFactor,
double  nXShift,
double  nYShift,
int  eInterpolation,
NppStreamContext  nppStreamCtx 
)

4 channel 8-bit unsigned planar image resize.

For common parameter descriptions, see Common parameters for nppiResizeSqrPixel planar pixel functions.


Copyright © 2009-2020 NVIDIA Corporation