NVIDIA Performance Primitives (NPP)
Version 10.0
|
ResizeSqrPixel supports the following interpolation modes: 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 | |||||||||||||||||||||||||||||||||||||||||||||||||
Common parameters for nppiResizeSqrPixel packed pixel functions include:
Common parameters for nppiResizeSqrPixel planar pixel functions include:
| |||||||||||||||||||||||||||||||||||||||||||||||||
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) | ||||||||||||||||||||||||||||||||||||||||||||||||
1 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
3 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
4 channel 8-bit unsigned image resize. 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
4 channel 8-bit unsigned image resize not affecting alpha. 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
3 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
4 channel 8-bit unsigned planar 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
1 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
3 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
4 channel 16-bit unsigned image resize. 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
4 channel 16-bit unsigned image resize not affecting alpha. 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
3 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
4 channel 16-bit unsigned planar 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
1 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
3 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
4 channel 16-bit signed image resize. 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
4 channel 16-bit signed image resize not affecting alpha. 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
3 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
4 channel 16-bit signed planar 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
1 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
3 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
4 channel 32-bit floating point image resize. 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
4 channel 32-bit floating point image resize not affecting alpha. 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
3 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
4 channel 32-bit floating point planar 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
1 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
3 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
4 channel 64-bit floating point image resize. 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
4 channel 64-bit floating point image resize not affecting alpha. 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
3 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) | ||||||||||||||||||||||||||||||||||||||||||||||||
4 channel 64-bit floating point planar image resize. More... |
|||||||||||||||||||||||||||||||||||||||||||||||||
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 (const Npp8u *pSrc, NppiSize oSrcSize, int nSrcStep, NppiRect oSrcROI, Npp8u *pDst, int nDstStep, NppiRect oDstROI, double nXFactor, double nYFactor, Npp8u *pBuffer, int eInterpolationMode) | ||||||||||||||||||||||||||||||||||||||||||||||||
1 channel 8-bit unsigned image resize. More... |
|||||||||||||||||||||||||||||||||||||||||||||||||
ResizeSqrPixel supports the following interpolation modes:
ResizeSqrPixel attempts 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:
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.
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.
NppStatus nppiGetResizeRect | ( | NppiRect | oSrcROI, |
NppiRect * | pDstRect, | ||
double | nXFactor, | ||
double | nYFactor, | ||
double | nXShift, | ||
double | nYShift, | ||
int | eInterpolation | ||
) |
oSrcROI | Region of interest in the source image. |
pDstRect | User 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. |
nXFactor | Factor by which x dimension is changed. |
nYFactor | Factor by which y dimension is changed. |
nXShift | Source pixel shift in x-direction. |
nYShift | Source pixel shift in y-direction. |
eInterpolation | The type of eInterpolation to perform resampling. |
NppStatus nppiResizeAdvancedGetBufferHostSize_8u_C1R | ( | NppiSize | oSrcROI, |
NppiSize | oDstROI, | ||
int * | hpBufferSize, | ||
int | eInterpolationMode | ||
) |
Buffer size for nppiResizeSqrPixel_8u_C1R_Advanced.
oSrcROI | Region-of-Interest (ROI). |
oDstROI | Region-of-Interest (ROI). |
hpBufferSize | Required buffer size. Important: hpBufferSize is a host pointer. Scratch Buffer and Host Pointer. |
eInterpolationMode | The type of eInterpolation to perform resampling. Currently only supports NPPI_INTER_LANCZOS3_Advanced. |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
1 channel 8-bit unsigned image resize.
For common parameter descriptions, see Common parameters for nppiResizeSqrPixel packed pixel functions.
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 | ||
) |
1 channel 8-bit unsigned image resize.
This primitive matches the behavior of GraphicsMagick++.
pSrc | Source-Image Pointer. |
nSrcStep | Source-Image Line Step. |
oSrcSize | Size in pixels of the source image. |
oSrcROI | Region of interest in the source image. |
pDst | Destination-Image Pointer. |
nDstStep | Destination-Image Line Step. |
oDstROI | Region of interest in the destination image. |
nXFactor | Factor by which x dimension is changed. |
nYFactor | Factor by which y dimension is changed. |
pBuffer | Device buffer that is used during calculations. |
eInterpolationMode | The type of eInterpolation to perform resampling. Currently only supports NPPI_INTER_LANCZOS3_Advanced. |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
4 channel 8-bit unsigned planar image resize.
For common parameter descriptions, see Common parameters for nppiResizeSqrPixel planar pixel functions.