NPP Image Processing


Functions

NppStatus nppiSqrIntegral_8u32s32f_C1R (Npp8u *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, Npp32f *pSqr, int nSqrStep, NppiSize srcROI, Npp32s val, Npp32f valSqr, Npp32s integralImageNewHeight)
 SqrIntegral Transforms an image to integral and integral of pixel squares representation.
NppStatus nppiRectStdDev_32s32f_C1R (const Npp32s *pSrc, int nSrcStep, const Npp32f *pSqr, int nSqrStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, NppiRect rect)
 RectStdDev Computes the standard deviation of integral images.

Image-Memory Allocation

ImageAllocator methods for 2D arrays of data.

The allocators have width and height parameters to specify the size of the image data being allocated. They return a pointer to the newly created memory and return the numbers of bytes between successive lines.

All allocators return memory with line strides that are beneficial for performance. It is not mandatory to use these allocators. Any valid CUDA device-memory pointers can be used by the NPP primitives and there are no restrictions on line strides.

Npp8unppiMalloc_8u_C1 (int nWidthPixels, int nHeightPixels, int *pStepBytes)
 8-bit unsigned image memory allocator.
Npp8unppiMalloc_8u_C2 (int nWidthPixels, int nHeightPixels, int *pStepBytes)
 2 channel 8-bit unsigned image memory allocator.
Npp8unppiMalloc_8u_C3 (int nWidthPixels, int nHeightPixels, int *pStepBytes)
 3 channel 8-bit unsigned image memory allocator.
Npp8unppiMalloc_8u_C4 (int nWidthPixels, int nHeightPixels, int *pStepBytes)
 4 channel 8-bit unsigned image memory allocator.
Npp16unppiMalloc_16u_C1 (int nWidthPixels, int nHeightPixels, int *pStepBytes)
 16-bit unsigned image memory allocator.
Npp16unppiMalloc_16u_C3 (int nWidthPixels, int nHeightPixels, int *pStepBytes)
 3 channel 16-bit unsigned image memory allocator.
Npp16unppiMalloc_16u_C4 (int nWidthPixels, int nHeightPixels, int *pStepBytes)
 4 channel 16-bit unsigned image memory allocator.
Npp16snppiMalloc_16s_C1 (int nWidthPixels, int nHeightPixels, int *pStepBytes)
 16-bit signed image memory allocator.
Npp16snppiMalloc_16s_C4 (int nWidthPixels, int nHeightPixels, int *pStepBytes)
 4 channel 16-bit signed image memory allocator.
Npp32snppiMalloc_32s_C1 (int nWidthPixels, int nHeightPixels, int *pStepBytes)
 32-bit signed image memory allocator.
Npp32snppiMalloc_32s_C3 (int nWidthPixels, int nHeightPixels, int *pStepBytes)
 3 channel 32-bit signed image memory allocator.
Npp32snppiMalloc_32s_C4 (int nWidthPixels, int nHeightPixels, int *pStepBytes)
 4 channel 32-bit signed image memory allocator.
Npp32fnppiMalloc_32f_C1 (int nWidthPixels, int nHeightPixels, int *pStepBytes)
 32-bit floating point image memory allocator.
Npp32fnppiMalloc_32f_C2 (int nWidthPixels, int nHeightPixels, int *pStepBytes)
 2 channel 32-bit floating point image memory allocator.
Npp32fnppiMalloc_32f_C3 (int nWidthPixels, int nHeightPixels, int *pStepBytes)
 3 channel 32-bit floating point image memory allocator.
Npp32fnppiMalloc_32f_C4 (int nWidthPixels, int nHeightPixels, int *pStepBytes)
 4 channel 32-bit floating point image memory allocator.
void nppiFree (void *pData)
 Free method for any 2D allocated memory.

Image-Memory Set

Set methods for images of various types.

Images are passed to these primitives via a pointer to the image data (first pixel in the ROI) and a step-width, i.e. the number of bytes between successive lines. The size of the area to be set (region-of-interest, ROI) is specified via a NppiSize struct. In addition to the image data and ROI, all methods have a parameter to specify the value being set. In case of single channel images this is a single value, in case of multi-channel, an array of values is passed.

NppStatus nppiSet_8u_C1R (Npp8u nValue, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 8-bit unsigned image set.
NppStatus nppiSet_8u_C1MR (Npp8u nValue, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pMask, int nMaskStep)
 Masked 8-bit unsigned image set.
NppStatus nppiSet_8u_C4R (const Npp8u aValues[4], Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 8-bit unsigned image set.
NppStatus nppiSet_8u_C4MR (const Npp8u aValues[4], Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pMask, int nMaskStep)
 Masked 4 channel 8-bit unsigned image set.
NppStatus nppiSet_8u_AC4R (const Npp8u aValues[3], Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 8-bit unsigned image set method, not affecting Alpha channel.
NppStatus nppiSet_8u_AC4MR (const Npp8u aValues[3], Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pMask, int nMaskStep)
 Masked 4 channel 8-bit unsigned image set method, not affecting Alpha channel.
NppStatus nppiSet_8u_C4CR (Npp8u nValue, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 8-bit unsigned image set affecting only single channel.
NppStatus nppiSet_16u_C1R (Npp16u nValue, Npp16u *pDst, int nDstStep, NppiSize oSizeROI)
 16-bit unsigned image set.
NppStatus nppiSet_16u_C1MR (Npp16u nValue, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pMask, int nMaskStep)
 Masked 16-bit unsigned image set.
NppStatus nppiSet_16u_C2R (const Npp16u aValues[2], Npp16u *pDst, int nDstStep, NppiSize oSizeROI)
 2 channel 16-bit unsigned image set.
NppStatus nppiSet_16u_C4R (const Npp16u aValues[4], Npp16u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 16-bit unsigned image set.
NppStatus nppiSet_16u_C4MR (const Npp16u aValues[4], Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pMask, int nMaskStep)
 Masked 4 channel 16-bit unsigned image set.
NppStatus nppiSet_16u_AC4R (const Npp16u aValues[3], Npp16u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 16-bit unsigned image set method, not affecting Alpha channel.
NppStatus nppiSet_16u_AC4MR (const Npp16u aValues[3], Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pMask, int nMaskStep)
 Masked 4 channel 16-bit unsigned image set method, not affecting Alpha channel.
NppStatus nppiSet_16u_C4CR (Npp16u nValue, Npp16u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 16-bit unsigned image set affecting only single channel.
NppStatus nppiSet_16s_C1R (Npp16s nValue, Npp16s *pDst, int nDstStep, NppiSize oSizeROI)
 16-bit image set.
NppStatus nppiSet_16s_C1MR (Npp16s nValue, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pMask, int nMaskStep)
 Masked 16-bit image set.
NppStatus nppiSet_16s_C2R (const Npp16s aValues[2], Npp16s *pDst, int nDstStep, NppiSize oSizeROI)
 2 channel 16-bit image set.
NppStatus nppiSet_16s_C4R (const Npp16s aValues[4], Npp16s *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 16-bit image set.
NppStatus nppiSet_16s_C4MR (const Npp16s aValues[4], Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pMask, int nMaskStep)
 Masked 4 channel 16-bit image set.
NppStatus nppiSet_16s_AC4R (const Npp16s aValues[3], Npp16s *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 16-bit image set method, not affecting Alpha channel.
NppStatus nppiSet_16s_AC4MR (const Npp16s aValues[3], Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pMask, int nMaskStep)
 Masked 4 channel 16-bit image set method, not affecting Alpha channel.
NppStatus nppiSet_16s_C4CR (Npp16s nValue, Npp16s *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 16-bit unsigned image set affecting only single channel.
NppStatus nppiSet_32s_C1R (Npp32s nValue, Npp32s *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit image set.
NppStatus nppiSet_32s_C1MR (Npp32s nValue, Npp32s *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pMask, int nMaskStep)
 Masked 32-bit image set.
NppStatus nppiSet_32s_C4R (const Npp32s aValues[4], Npp32s *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 32-bit image set.
NppStatus nppiSet_32s_C4MR (const Npp32s aValues[4], Npp32s *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pMask, int nMaskStep)
 Masked 4 channel 32-bit image set.
NppStatus nppiSet_32s_AC4R (const Npp32s aValues[3], Npp32s *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 16-bit image set method, not affecting Alpha channel.
NppStatus nppiSet_32s_AC4MR (const Npp32s aValues[3], Npp32s *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pMask, int nMaskStep)
 Masked 4 channel 16-bit image set method, not affecting Alpha channel.
NppStatus nppiSet_32s_C4CR (Npp32s nValue, Npp32s *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 32-bit unsigned image set affecting only single channel.
NppStatus nppiSet_32f_C1R (Npp32f nValue, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit floating point image set.
NppStatus nppiSet_32f_C1MR (Npp32f nValue, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pMask, int nMaskStep)
 Masked 32-bit floating point image set.
NppStatus nppiSet_32f_C4R (const Npp32f aValues[4], Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 32-bit floating point image set.
NppStatus nppiSet_32f_C4MR (const Npp32f aValues[4], Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pMask, int nMaskStep)
 Masked 4 channel 32-bit floating point image set.
NppStatus nppiSet_32f_AC4R (const Npp32f aValues[3], Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 32-bit floating point image set method, not affecting Alpha channel.
NppStatus nppiSet_32f_AC4MR (const Npp32f aValues[3], Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pMask, int nMaskStep)
 Masked 4 channel 32-bit floating point image set method, not affecting Alpha channel.
NppStatus nppiSet_32f_C4CR (Npp32f nValue, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 32-bit floating point image set affecting only single channel.

Image-Memory Copy

Copy methods for images of various types.

Images are passed to these primitives via a pointer to the image data (first pixel in the ROI) and a step-width, i.e. the number of bytes between successive lines. The size of the area to be copied (region-of-interest, ROI) is specified via a NppiSize struct.

NppStatus nppiCopy_8u_C1R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 8-bit unsigned image copy.
NppStatus nppiCopy_8u_C4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 8-bit unsigned image copy.
NppStatus nppiCopy_8u_AC4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 8-bit unsigned image copy, not affecting Alpha channel.
NppStatus nppiCopy_16u_C1R (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI)
 16-bit unsigned image copy.
NppStatus nppiCopy_16u_C4R (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 16-bit unsigned image copy.
NppStatus nppiCopy_16u_AC4R (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 16-bit unsigned image copy, not affecting Alpha channel.
NppStatus nppiCopy_16s_C1R (const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI)
 16-bit image copy.
NppStatus nppiCopy_16s_C4R (const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 16-bit image copy.
NppStatus nppiCopy_16s_AC4R (const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 16-bit image copy, not affecting Alpha.
NppStatus nppiCopy_32s_C1R (const Npp32s *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit image copy.
NppStatus nppiCopy_32s_C4R (const Npp32s *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 32-bit image copy.
NppStatus nppiCopy_32s_AC4R (const Npp32s *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 32-bit image copy, not affecting Alpha.
NppStatus nppiCopy_32f_C1R (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit floating point image copy.
NppStatus nppiCopy_32f_C4R (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 32-bit floating point image copy.
NppStatus nppiCopy_32f_AC4R (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 32-bit floating point image copy, not affecting Alpha.

Bit-Depth Conversion

Convert bit-depth up and down.

The integer conversion methods do not involve any scaling. Conversions that reduce bit-depth saturate values exceeding the reduced range to the range's maximum/minimum value. When converting from floating-point values to integer values, a rounding mode can be specified. After rounding to integer values the values get saturated to the destination data type's range.

NppStatus nppiConvert_8u16u_C1R (const Npp8u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI)
 8-bit unsigned to 16-bit unsigned conversion.
NppStatus nppiConvert_16u8u_C1R (const Npp16u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 16-bit unsigned to 8-bit unsigned conversion.
NppStatus nppiConvert_8u16u_C4R (const Npp8u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 8-bit unsigned to 16-bit unsigned conversion.
NppStatus nppiConvert_16u8u_C4R (const Npp16u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 16-bit unsigned to 8-bit unsigned conversion.
NppStatus nppiConvert_8u16u_AC4R (const Npp8u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 8-bit unsigned to 16-bit unsigned conversion, not affecting Alpha.
NppStatus nppiConvert_16u8u_AC4R (const Npp16u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 16-bit unsigned to 8-bit unsigned conversion, not affecting Alpha.
NppStatus nppiConvert_8u16s_C1R (const Npp8u *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI)
 8-bit unsigned to 16-bit signed conversion.
NppStatus nppiConvert_16s8u_C1R (const Npp16s *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 16-bit signed to 8-bit unsigned conversion.
NppStatus nppiConvert_8u16s_C4R (const Npp8u *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 8-bit unsigned to 16-bit signed conversion.
NppStatus nppiConvert_16s8u_C4R (const Npp16s *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 16-bit signed to 8-bit unsignedconversion, not affecting Alpha.
NppStatus nppiConvert_8u16s_AC4R (const Npp8u *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 8-bit unsigned to 16-bit signed conversion, not affecting Alpha.
NppStatus nppiConvert_16s8u_AC4R (const Npp16s *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 16-bit signed to 8-bit unsigned conversion, not affecting Alpha.
NppStatus nppiConvert_16s32f_C1R (const Npp16s *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 16-bit singedto 32-bit floating point conversion.
NppStatus nppiConvert_32f16s_C1R (const Npp32f *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, NppRoundMode eRoundMode)
 32-bit floating point to 16-bit conversion.
NppStatus nppiConvert_8u32f_C1R (const Npp8u *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 8-bit unsigned to 32-bit floating point conversion.
NppStatus nppiConvert_16u32f_C1R (const Npp16u *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 16-bit unsigned to 32-bit floating point conversion.
NppStatus nppiConvert_32f16u_C1R (const Npp32f *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, NppRoundMode eRoundMode)
 32-bit floating point to 16-bit unsigned conversion.
NppStatus nppiConvert_32f8u_C1R (const Npp32f *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, NppRoundMode eRoundMode)
 32-bit floating point to 8-bit unsigned conversion.
NppStatus nppiConvert_16u32s_C1R (const Npp16u *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oSizeROI)
 16-bit unsigned to 32-bit signed conversion.
NppStatus nppiConvert_16s32s_C1R (const Npp16s *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oSizeROI)
 16-bit to 32-bit conversion.

Copy Const Border

Methods for copying images and padding borders with a constant, user-specifiable color.

NppStatus nppiCopyConstBorder_8u_C1R (const Npp8u *pSrc, int nSrcStep, NppiSize oSrcSizeROI, Npp8u *pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, Npp8u nValue)
 8-bit unsigned image copy width constant border color.
NppStatus nppiCopyConstBorder_8u_C4R (const Npp8u *pSrc, int nSrcStep, NppiSize oSrcSizeROI, Npp8u *pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, const Npp8u aValue[4])
 4channel 8-bit unsigned image copy with constant border color.
NppStatus nppiCopyConstBorder_8u_AC4R (const Npp8u *pSrc, int nSrcStep, NppiSize oSrcSizeROI, Npp8u *pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, const Npp8u aValue[3])
 4 channel 8-bit unsigned image copy with constant border color.
NppStatus nppiCopyConstBorder_32s_C1R (const Npp32s *pSrc, int nSrcStep, NppiSize oSrcSizeROI, Npp32s *pDst, int nDstStep, NppiSize oDstSizeROI, int nTopBorderHeight, int nLeftBorderWidth, Npp32s nValue)
 32-bit image copy with constant border color.

Image Transpose

Methods for transposing images of various types.

Like matrix transpose, image transpose is a mirror along the image's diagonal (upper-left to lower-right corner).

NppStatus nppiTranspose_8u_C1R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oROI)
 8-bit image transpose.

Image Color Channel Swap

Methods for exchanging the color channels of an image.

The methods support arbitrary permutations of the original channels, including replication.

NppStatus nppiSwapChannels_8u_C4IR (Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const int aDstOrder[4])
 4 channel 8-bit unsigned swap channels, in-place.

Arithmetic with Constant Values

Methods performing image arithmetic with the second operand being a constant rather than an image.

NppStatus nppiAddC_32f_C1R (const Npp32f *pSrc, int nSrcStep, Npp32f nValue, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit floating point image add constant.
NppStatus nppiSubC_32f_C1R (const Npp32f *pSrc, int nSrcStep, Npp32f nValue, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit floating point image subtract constant.
NppStatus nppiMulC_32f_C1R (const Npp32f *pSrc, int nSrcStep, Npp32f nValue, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit floating point image multiply constant.
NppStatus nppiDivC_32f_C1R (const Npp32f *pSrc, int nSrcStep, Npp32f nValue, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit floating point image divide by constant.
NppStatus nppiAbsDiffC_32f_C1R (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, Npp32f nValue)
 32-bit floating point image absolute difference from constant.
NppStatus nppiAddC_32fc_C1R (const Npp32fc *pSrc, int nSrcStep, Npp32fc nValue, Npp32fc *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit complex floating point image add constant.
NppStatus nppiSubC_32fc_C1R (const Npp32fc *pSrc, int nSrcStep, Npp32fc nValue, Npp32fc *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit complex floating point image subtract constant.
NppStatus nppiMulC_32fc_C1R (const Npp32fc *pSrc, int nSrcStep, Npp32fc nValue, Npp32fc *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit complex floating point image multiply constant.
NppStatus nppiDivC_32fc_C1R (const Npp32fc *pSrc, int nSrcStep, Npp32fc nValue, Npp32fc *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit complex floating point image divide by constant.

Image Addition

Methods for adding two images.

NppStatus nppiAdd_8u_C1RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor)
 8-bit unsigned image add.
NppStatus nppiAdd_8u_C4RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor)
 4 channel 8-bit unsigned image add.
NppStatus nppiAdd_8u_AC4RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor)
 4 channel 8-bit unsigned image add, not affecting Alpha.
NppStatus nppiAdd_32f_C1R (const Npp32f *pSrc1, int nSrc1Step, const Npp32f *pSrc2, int nSrc2Step, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit floating point image add.
NppStatus nppiAdd_32s_C1R (const Npp32s *pSrc1, int nSrc1Step, const Npp32s *pSrc2, int nSrc2Step, Npp32s *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit image add.

Image Subtraction

Methods for subtracting one image from another.

NppStatus nppiSub_8u_C1RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor)
 8-bit unsigned image subtraction.
NppStatus nppiSub_8u_C4RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor)
 4 channel 8-bit unsigned image subtraction.
NppStatus nppiSub_8u_AC4RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor)
 4 channel 8-bit unsigned image subtraction, not affecting Alpha.
NppStatus nppiSub_32f_C1R (const Npp32f *pSrc1, int nSrc1Step, const Npp32f *pSrc2, int nSrc2Step, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit floating point image subtraction.
NppStatus nppiSub_32s_C1R (const Npp32s *pSrc1, int nSrc1Step, const Npp32s *pSrc2, int nSrc2Step, Npp32s *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit image subtraction.

Image Multiplication

Methods for multiplying two images.

NppStatus nppiMul_8u_C1RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor)
 8-bit unsigned image multiplication.
NppStatus nppiMul_8u_C4RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor)
 4 channel 8-bit unsigned image multiplication.
NppStatus nppiMul_8u_AC4RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor)
 4 channel 8-bit unsigned image multiplication, not affecting Alpha.
NppStatus nppiMul_32f_C1R (const Npp32f *pSrc1, int nSrc1Step, const Npp32f *pSrc2, int nSrc2Step, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 32-bit floating point image multiplication.
NppStatus nppiMul_32s_C1R (const Npp32s *pSrc1, int nSrc1Step, const Npp32s *pSrc2, int nSrc2Step, Npp32s *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 32-bit image multiplication.

Image Division

Methods for dividing one image by another.

NppStatus nppiDiv_8u_C1RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor)
 8-bit unsignedimage division.
NppStatus nppiDiv_8u_C4RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor)
 4 channel 8-bit unsigned image division.
NppStatus nppiDiv_8u_AC4RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor)
 4 channel 8-bit unsigned image division, not affecting Alpha.
NppStatus nppiDiv_32f_C1R (const Npp32f *pSrc1, int nSrc1Step, const Npp32f *pSrc2, int nSrc2Step, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit floating point image division.
NppStatus nppiDiv_32s_C1R (const Npp32s *pSrc1, int nSrc1Step, const Npp32s *pSrc2, int nSrc2Step, Npp32s *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit image division.

Image Absolute Difference Methods

Per-pixel absolute difference methods.

NppStatus nppiAbsDiff_8u_C1R (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 8-bit unsigned absolute difference.
NppStatus nppiAbsDiff_8u_C4R (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 8-bit unsigned absolute difference.
NppStatus nppiAbsDiff_8u_AC4R (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 8-bit unsigned absolute difference, not affecting Alpha.
NppStatus nppiAbsDiff_32f_C1R (const Npp32f *pSrc1, int nSrc1Step, const Npp32f *pSrc2, int nSrc2Step, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit floating point absolute difference.
NppStatus nppiAbsDiff_32s_C1R (const Npp32s *pSrc1, int nSrc1Step, const Npp32s *pSrc2, int nSrc2Step, Npp32s *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit absolute difference.

Other Image Arithmetic

NppStatus nppiLn_32f_C1R (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit floating point logarithm.
NppStatus nppiExp_32f_C1R (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit floating point exponentiation.

Image Threshold Methods

Threshold pixels.

NppStatus nppiThreshold_32f_C1R (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, Npp32f nThreshold, NppCmpOp eComparisonOperation)
 32-bit floating point threshold.
NppStatus nppiThreshold_8u_AC4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u aThresholds[3], NppCmpOp eComparisonOperation)
 4 channel 8-bit unsigned image threshold, not affecting Alpha.

Image Compare Methods

Compare the pixels of two images and create a binary result image.

In case of multi-channel image types, the condition must be fulfilled for all channels, otherwise the comparison is considered false. The "binary" result image is of type 8u_C1. False is represented by 0, true by NPP_MAX_8U.

NppStatus nppiCompare_8u_C4R (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, NppCmpOp eComparisonOperation)
 4 channel 8-bit unsigned image compare.
NppStatus nppiCompare_8u_AC4R (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, NppCmpOp eComparisonOperation)
 4 channel 8-bit unsigned image compare, not affecting Alpha.
NppStatus nppiCompare_32f_C1R (const Npp32f *pSrc1, int nSrc1Step, const Npp32f *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, NppCmpOp eComparisonOperation)
 32-bit floating point image compare.

Mean_StdDev

Computes the mean and standard deviation of image pixel values

NppStatus nppiMean_StdDev_8u_C1R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp64f *pMean, Npp64f *pStdDev)
 8-bit unsigned mean standard deviation.

NormDiff

Norm of pixel differences between two images.

NppStatus nppiNormDiff_L1_8u_C1R (const Npp8u *pSrc1, int nSrcStep1, const Npp8u *pSrc2, int nSrcStep2, NppiSize oSizeROI, Npp64f *pRetVal)
 8-bit unsigned L1 norm of pixel differences.
NppStatus nppiNormDiff_L2_8u_C1R (const Npp8u *pSrc1, int nSrcStep1, const Npp8u *pSrc2, int nSrcStep2, NppiSize oSizeROI, Npp64f *pRetVal)
 8-bit unsigned L2 norm of pixel differences.
NppStatus nppiNormDiff_Inf_8u_C1R (const Npp8u *pSrc1, int nSrcStep1, const Npp8u *pSrc2, int nSrcStep2, NppiSize oSizeROI, Npp64f *pRetVal)
 8-bit unsigned Infinity Norm of pixel differences.

1D Linear Filter

1D mask Linear Convolution Filter, with rescaling, for 8 bit images.

NppStatus nppiFilterColumn_8u_C1R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oROI, const Npp32s *pKernel, Npp32s nMaskSize, Npp32s nAnchor, Npp32s nDivisor)
 8-bit unsigned 1D (column) image convolution.
NppStatus nppiFilterColumn_8u_C4R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oROI, const Npp32s *pKernel, Npp32s nMaskSize, Npp32s nAnchor, Npp32s nDivisor)
 4 channel 8-bit unsigned 1D (column) image convolution.
NppStatus nppiFilterRow_8u_C1R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oROI, const Npp32s *pKernel, Npp32s nMaskSize, Npp32s nAnchor, Npp32s nDivisor)
 8-bit unsigned 1D (row) image convolution.
NppStatus nppiFilterRow_8u_C4R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oROI, const Npp32s *pKernel, Npp32s nMaskSize, Npp32s nAnchor, Npp32s nDivisor)
 4 channel 8-bit unsigned 1D (row) image convolution.

1D Window Sum

1D mask Window Sum for 8 bit images.

NppStatus nppiSumWindowColumn_8u32f_C1R (const Npp8u *pSrc, Npp32s nSrcStep, Npp32f *pDst, Npp32s nDstStep, NppiSize oROI, Npp32s nMaskSize, Npp32s nAnchor)
 8-bit unsigned 1D (column) sum to 32f.
NppStatus nppiSumWindowRow_8u32f_C1R (const Npp8u *pSrc, Npp32s nSrcStep, Npp32f *pDst, Npp32s nDstStep, NppiSize oROI, Npp32s nMaskSize, Npp32s nAnchor)
 8-bit unsigned 1D (row) sum to 32f.

2D Morphology Filter

Image dilate and erod operations.

NppStatus nppiDilate_8u_C1R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp8u *pMask, NppiSize oMaskSize, NppiPoint oAnchor)
 8-bit unsigned image dilation.
NppStatus nppiDilate_8u_C4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pMask, NppiSize oMaskSize, NppiPoint oAnchor)
 4 channel 8-bit unsigned image dilation.
NppStatus nppiErode_8u_C1R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp8u *pMask, NppiSize oMaskSize, NppiPoint oAnchor)
 8-bit unsigned image erosion.
NppStatus nppiErode_8u_C4R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp8u *pMask, NppiSize oMaskSize, NppiPoint oAnchor)
 4 channel 8-bit unsigned image erosion.

Convolution (2D Masks)

General purpose 2D convolution filters.

NppStatus nppiFilter_8u_C1R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32s *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, Npp32s nDivisor)
 8-bit unsigned convolution filter.
NppStatus nppiFilter_8u_C4R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32s *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, Npp32s nDivisor)
 4 channel 8-bit unsigned convolution filter.

2D Linear Fixed Filters

2D linear fixed filters for 8 bit images.

NppStatus nppiFilterBox_8u_C1R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor)
 8-bit unsigned box filter.
NppStatus nppiFilterBox_8u_C4R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor)
 4 channel 8-bit unsigned box filter.

Image Rank Filters

Min, Median, and Max image filters.

NppStatus nppiFilterMax_8u_C1R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor)
 8-bit unsigned maximum filter.
NppStatus nppiFilterMax_8u_C4R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor)
 4 channel 8-bit unsigned maximum filter.
NppStatus nppiFilterMin_8u_C1R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor)
 8-bit unsigned minimum filter.
NppStatus nppiFilterMin_8u_C4R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor)
 4 channel 8-bit unsigned minimum filter.

Image Linear Transforms

Linear image transforms, like Fourier and DCT transformations.

NppStatus nppiMagnitude_32fc32f_C1R (const Npp32fc *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit floating point complex to 32-bit floating point magnitude.
NppStatus nppiMagnitudeSqr_32fc32f_C1R (const Npp32fc *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 32-bit floating point complex to 32-bit floating point squared magnitude.

Histogram

NppStatus nppiEvenLevelsHost_32s (Npp32s *hpLevels, int nLevels, Npp32s nLowerLevel, Npp32s nUpperLevel)
 Compute levels with even distribution.
NppStatus nppiHistogramEvenGetBufferSize_8u_C1R (NppiSize oSizeROI, int nLevels, int *hpBufferSize)
 Scratch-buffer size for nppiHistogramEven_8u_C1R.
NppStatus nppiHistogramEven_8u_C1R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist, int nLevels, Npp32s nLowerLevel, Npp32s nUpperLevel, Npp8u *pBuffer)
 8-bit unsigned histogram with evenly distributed bins.
NppStatus nppiHistogramEvenGetBufferSize_8u_C4R (NppiSize oSizeROI, int nLevels[4], int *hpBufferSize)
 Scratch-buffer size for nppiHistogramEven_8u_C4R.
NppStatus nppiHistogramEven_8u_C4R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist[4], int nLevels[4], Npp32s nLowerLevel[4], Npp32s nUpperLevel[4], Npp8u *pBuffer)
 4 channel 8-bit unsigned histogram with evenly distributed bins.
NppStatus nppiHistogramEvenGetBufferSize_8u_AC4R (NppiSize oSizeROI, int nLevels[3], int *hpBufferSize)
 Scratch-buffer size for nppiHistogramEven_8u_AC4R.
NppStatus nppiHistogramEven_8u_AC4R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist[3], int nLevels[3], Npp32s nLowerLevel[3], Npp32s nUpperLevel[3], Npp8u *pBuffer)
 4 channel (alpha as the last channel) 8-bit unsigned histogram with evenly distributed bins.
NppStatus nppiHistogramEvenGetBufferSize_16u_C1R (NppiSize oSizeROI, int nLevels, int *hpBufferSize)
 Scratch-buffer size for nppiHistogramEven_16u_C1R.
NppStatus nppiHistogramEven_16u_C1R (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist, int nLevels, Npp32s nLowerLevel, Npp32s nUpperLevel, Npp8u *pBuffer)
 16-bit unsigned histogram with evenly distributed bins.
NppStatus nppiHistogramEvenGetBufferSize_16u_C4R (NppiSize oSizeROI, int nLevels[4], int *hpBufferSize)
 Scratch-buffer size for nppiHistogramEven_16u_C4R.
NppStatus nppiHistogramEven_16u_C4R (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist[4], int nLevels[4], Npp32s nLowerLevel[4], Npp32s nUpperLevel[4], Npp8u *pBuffer)
 4 channel 16-bit unsigned histogram with evenly distributed bins.
NppStatus nppiHistogramEvenGetBufferSize_16u_AC4R (NppiSize oSizeROI, int nLevels[3], int *hpBufferSize)
 Scratch-buffer size for nppiHistogramEven_16u_AC4R.
NppStatus nppiHistogramEven_16u_AC4R (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist[3], int nLevels[3], Npp32s nLowerLevel[3], Npp32s nUpperLevel[3], Npp8u *pBuffer)
 4 channel (alpha as the last channel) 16-bit unsigned histogram with evenly distributed bins.
NppStatus nppiHistogramEvenGetBufferSize_16s_C1R (NppiSize oSizeROI, int nLevels, int *hpBufferSize)
 Scratch-buffer size for nppiHistogramEven_16s_C1R.
NppStatus nppiHistogramEven_16s_C1R (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist, int nLevels, Npp32s nLowerLevel, Npp32s nUpperLevel, Npp8u *pBuffer)
 16-bit signed histogram with evenly distributed bins.
NppStatus nppiHistogramEvenGetBufferSize_16s_C4R (NppiSize oSizeROI, int nLevels[4], int *hpBufferSize)
 Scratch-buffer size for nppiHistogramEven_16s_C4R.
NppStatus nppiHistogramEven_16s_C4R (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist[4], int nLevels[4], Npp32s nLowerLevel[4], Npp32s nUpperLevel[4], Npp8u *pBuffer)
 4 channel 16-bit signed histogram with evenly distributed bins.
NppStatus nppiHistogramEvenGetBufferSize_16s_AC4R (NppiSize oSizeROI, int nLevels[3], int *hpBufferSize)
 Scratch-buffer size for nppiHistogramEven_16s_AC4R.
NppStatus nppiHistogramEven_16s_AC4R (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist[3], int nLevels[3], Npp32s nLowerLevel[3], Npp32s nUpperLevel[3], Npp8u *pBuffer)
 4 channel (alpha as the last channel) 16-bit signed histogram with evenly distributed bins.
NppStatus nppiHistogramRangeGetBufferSize_8u_C1R (NppiSize oSizeROI, int nLevels, int *hpBufferSize)
 Scratch-buffer size for nppiHistogramRange_8u_C1R.
NppStatus nppiHistogramRange_8u_C1R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist, const Npp32s *pLevels, int nLevels, Npp8u *pBuffer)
 8-bit unsigned histogram with bins determined by pLevels array.
NppStatus nppiHistogramRangeGetBufferSize_8u_C4R (NppiSize oSizeROI, int nLevels[4], int *hpBufferSize)
 Scratch-buffer size for nppiHistogramRange_8u_C4R.
NppStatus nppiHistogramRange_8u_C4R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist[4], const Npp32s *pLevels[4], int nLevels[4], Npp8u *pBuffer)
 4 channel 8-bit unsigned histogram with bins determined by pLevels.
NppStatus nppiHistogramRangeGetBufferSize_8u_AC4R (NppiSize oSizeROI, int nLevels[3], int *hpBufferSize)
 Scratch-buffer size for nppiHistogramRange_8u_AC4R.
NppStatus nppiHistogramRange_8u_AC4R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist[3], const Npp32s *pLevels[3], int nLevels[3], Npp8u *pBuffer)
 4 channel (alpha as a last channel) 8-bit unsigned histogram with bins determined by pLevels.
NppStatus nppiHistogramRangeGetBufferSize_16u_C1R (NppiSize oSizeROI, int nLevels, int *hpBufferSize)
 Scratch-buffer size for nppiHistogramRange_16u_C1R.
NppStatus nppiHistogramRange_16u_C1R (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist, const Npp32s *pLevels, int nLevels, Npp8u *pBuffer)
 16-bit unsigned histogram with bins determined by pLevels array.
NppStatus nppiHistogramRangeGetBufferSize_16u_C4R (NppiSize oSizeROI, int nLevels[4], int *hpBufferSize)
 Scratch-buffer size for nppiHistogramRange_16u_C4R.
NppStatus nppiHistogramRange_16u_C4R (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist[4], const Npp32s *pLevels[4], int nLevels[4], Npp8u *pBuffer)
 4 channel 16-bit unsigned histogram with bins determined by pLevels.
NppStatus nppiHistogramRangeGetBufferSize_16u_AC4R (NppiSize oSizeROI, int nLevels[3], int *hpBufferSize)
 Scratch-buffer size for nppiHistogramRange_16u_AC4R.
NppStatus nppiHistogramRange_16u_AC4R (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist[3], const Npp32s *pLevels[3], int nLevels[3], Npp8u *pBuffer)
 4 channel (alpha as a last channel) 16-bit unsigned histogram with bins determined by pLevels.
NppStatus nppiHistogramRangeGetBufferSize_16s_C1R (NppiSize oSizeROI, int nLevels, int *hpBufferSize)
 Scratch-buffer size for nppiHistogramRange_16s_C1R.
NppStatus nppiHistogramRange_16s_C1R (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist, const Npp32s *pLevels, int nLevels, Npp8u *pBuffer)
 16-bit signed histogram with bins determined by pLevels array.
NppStatus nppiHistogramRangeGetBufferSize_16s_C4R (NppiSize oSizeROI, int nLevels[4], int *hpBufferSize)
 Scratch-buffer size for nppiHistogramRange_16s_C4R.
NppStatus nppiHistogramRange_16s_C4R (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist[4], const Npp32s *pLevels[4], int nLevels[4], Npp8u *pBuffer)
 4 channel 16-bit signed histogram with bins determined by pLevels.
NppStatus nppiHistogramRangeGetBufferSize_16s_AC4R (NppiSize oSizeROI, int nLevels[3], int *hpBufferSize)
 Scratch-buffer size for nppiHistogramRange_16s_AC4R.
NppStatus nppiHistogramRange_16s_AC4R (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist[3], const Npp32s *pLevels[3], int nLevels[3], Npp8u *pBuffer)
 4 channel (alpha as a last channel) 16-bit signed histogram with bins determined by pLevels.
NppStatus nppiHistogramRangeGetBufferSize_32f_C1R (NppiSize oSizeROI, int nLevels, int *hpBufferSize)
 Scratch-buffer size for nppiHistogramRange_32f_C1R.
NppStatus nppiHistogramRange_32f_C1R (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist, const Npp32f *pLevels, int nLevels, Npp8u *pBuffer)
 32-bit float histogram with bins determined by pLevels array.
NppStatus nppiHistogramRangeGetBufferSize_32f_C4R (NppiSize oSizeROI, int nLevels[4], int *hpBufferSize)
 Scratch-buffer size for nppiHistogramRange_32f_C4R.
NppStatus nppiHistogramRange_32f_C4R (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist[4], const Npp32f *pLevels[4], int nLevels[4], Npp8u *pBuffer)
 4 channel 32-bit float histogram with bins determined by pLevels.
NppStatus nppiHistogramRangeGetBufferSize_32f_AC4R (NppiSize oSizeROI, int nLevels[3], int *hpBufferSize)
 Scratch-buffer size for nppiHistogramRange_32f_AC4R.
NppStatus nppiHistogramRange_32f_AC4R (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist[3], const Npp32f *pLevels[3], int nLevels[3], Npp8u *pBuffer)
 4 channel (alpha as a last channel) 32-bit float histogram with bins determined by pLevels.

JPEG DCT, Quantization and Level Shift Functions

Jpeg standard defines a flow of level shift, DCT and quantization for forward JPEG transform and inverse level shift, IDCT and de-quantization for inverse JPEG transform.

This group has the functions for both forward and inverse functions.

NppStatus nppiQuantFwdRawTableInit_JPEG_8u (Npp8u *pQuantRawTable, int nQualityFactor)
 Converts regular quantization tables with the quality factor.
NppStatus nppiQuantFwdTableInit_JPEG_8u16u (const Npp8u *pQuantRawTable, Npp16u *pQuantFwdRawTable)
 Converts raw quantization table to a forward quantization table.
NppStatus nppiQuantInvTableInit_JPEG_8u16u (const Npp8u *pQuantRawTable, Npp16u *pQuantFwdRawTable)
 Converts raw quantization table to an inverse quantization table.
NppStatus nppiSetDefaultQuantTable (Npp8u *pQuantRawTable, int tableIndex)
 Fills out the quantization table with either luminance and chrominance tables for JPEG.
NppStatus nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R (Npp16s *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, const Npp16u *pQuantInvTable, NppiSize oSizeROI)
 Inverse DCT, de-quantization and level shift part of the JPEG decoding.
NppStatus nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R (Npp8u *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, const Npp16u *pQuantFwdTable, NppiSize oSizeROI)
 Forward DCT, quantization and level shift part of the JPEG encoding.

Sum

Sum of 8 bit images.

NppStatus nppiReductionGetBufferHostSize_8u_C1R (const NppiSize &oSizeROI, int *hpBufferSize)
 Scratch-buffer size for nppiSum_8u_C1R.
NppStatus nppiReductionGetBufferHostSize_8u_C4R (const NppiSize &oSizeROI, int *hpBufferSize)
 Scratch-buffer size for nppiSum_8u_C4R.
NppStatus nppiSum_8u_C1R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pDeviceBuffer, Npp64f *pSum)
 8-bit unsigned image sum.
NppStatus nppiSum_8u_C4R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pDeviceBuffer, Npp64f aSum[4])
 4 channel 8-bit unsigned image sum.

MinMax

Minimum and maximum of 8-bit images.

NppStatus nppiMinMax_8u_C1R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pMin, Npp8u *pMax)
 8-bit unsigned pixel minimum and maximum.
NppStatus nppiMinMax_8u_C4R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u cuMin[4], Npp8u cuMax[4])
 4 channel 8-bit unsigned pixel minimum and maximum.

Resize

Resizes 8 bit images.

Handles C1 and C4 images.

NppStatus nppiResize_8u_C1R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcROI, Npp8u *pDst, int nDstStep, NppiSize dstROISize, double xFactor, double yFactor, int interpolation)
 8-bit unsigned image resize.
NppStatus nppiResize_8u_C4R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcROI, Npp8u *pDst, int nDstStep, NppiSize dstROISize, double xFactor, double yFactor, int interpolation)
 4 channel 8-bit unsigned image resize.

Rotate

Rotates an image around the origin (0,0) and then shifts it.

NppStatus nppiRotate_8u_C1R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcROI, Npp8u *pDst, int nDstStep, NppiRect dstROI, double angle, double xShift, double yShift, int interpolation)
 8-bit unsigned image rotate.
NppStatus nppiRotate_8u_C4R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcROI, Npp8u *pDst, int nDstStep, NppiRect dstROI, double angle, double xShift, double yShift, int interpolation)
 4 channel 8-bit unsigned image rotate.

Mirror

Mirrors images horizontally, vertically and diagonally.

NppStatus nppiMirror_8u_C1R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oROI, NppiAxis flip)
 8-bit unsigned image mirror.
NppStatus nppiMirror_8u_C4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oROI, NppiAxis flip)
 4 channel 8-bit unsigned image mirror.

RGBToYCbCr

RGB to YCbCr color conversion.

NppStatus nppiRGBToYCbCr_8u_C3R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 3 channel 8-bit unsigned packed RGB to packed YCbCr color conversion.
NppStatus nppiRGBToYCbCr422_8u_C3C2R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 3 channel 8-bit unsigned RGB to 2 channel chroma packed YCbCr422 color conversion.
NppStatus nppiRGBToYCbCr420_8u_C3P3R (const Npp8u *pSrc, int nSrcStep, Npp8u **pDst, int nDstStep[3], NppiSize oSizeROI)
 3 channel 8-bit unsigned packed RGB to planar YCbCr420 color conversion.
NppStatus nppiRGBToYCbCr_8u_P3R (const Npp8u *const *pSrc, int nSrcStep, Npp8u **pDst, int nDstStep, NppiSize oSizeROI)
 3 channel planar 8-bit unsigned RGB to YCbCr color conversion.
NppStatus nppiRGBToYCbCr_8u_AC4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 8-bit unsigned RGB to YCbCr color conversion, ignoring Alpha.

YCbCrToRGB

YCbCr to RGB color conversion.

NppStatus nppiYCbCrToRGB_8u_C3R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 3 channel 8-bit unsigned packed YCbCr to RGB color conversion.
NppStatus nppiYCbCrToRGB_8u_P3R (const Npp8u *const *pSrc, int nSrcStep, Npp8u **pDst, int nDstStep, NppiSize oSizeROI)
 3 channel 8-bit unsigned planar YCbCr to RGB color conversion.
NppStatus nppiYCbCrToRGB_8u_AC4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 4 channel 8-bit unsigned packed YCbCr to RGB color conversion, not affecting Alpha.
NppStatus nppiYCbCr422ToRGB_8u_C2C3R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 2 channel 8-bit unsigned YCbCr422 to 3 channel packed RGB color conversion.
NppStatus nppiYCbCr420ToRGB_8u_P3C3R (const Npp8u *const *pSrc, int nSrcStep[3], Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 3 channel 8-bit unsigned planar YCbCr420 to packed RGB color conversion.

Sample Pattern Conversion.

NppStatus nppiYCbCr422ToYCbCr420_8u_P3R (const Npp8u *const *pSrc, int nSrcStep[3], Npp8u **pDst, int nDstStep[3], NppiSize oSizeROI)
 3 channel 8-bit unsigned planar YCbCr:422 to YCbCr:420 resampling.
NppStatus nppiYCbCr422ToYCbCr411_8u_P3R (const Npp8u *const *pSrc, int nSrcStep[3], Npp8u **pDst, int nDstStep[3], NppiSize oSizeROI)
 3 channel 8-bit unsigned planar YCbCr:422 to YCbCr:411 resampling.
NppStatus nppiYCbCr420ToYCbCr422_8u_P3R (const Npp8u *const *pSrc, int nSrcStep[3], Npp8u **pDst, int nDstStep[3], NppiSize oSizeROI)
 3 channel 8-bit unsigned planar YCbCr:420 to YCbCr:422 resampling.
NppStatus nppiYCbCr420ToYCbCr411_8u_P3P2R (const Npp8u *const *pSrc, int aSrcStep[3], Npp8u *pDstY, int nDstYStep, Npp8u *pDstCbCr, int nDstCbCrStep, NppiSize oSizeROI)
 3 channel 8-bit unsigned planar YCbCr:420 to YCbCr:411 resampling.

Color Processing

Color manipuliation functions.

NppStatus nppiColorTwist32f_8u_C3R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f twist[3][4])
 3 channel 8-bit unsigned color twist.
NppStatus nppiColorTwist32f_8u_P3R (const Npp8u *const *pSrc, int nSrcStep, Npp8u **pDst, int nDstStep, NppiSize oSizeROI, const Npp32f twist[3][4])
 3 channel planar 8-bit unsigned color twist.
NppStatus nppiColorTwist32f_8u_AC4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f twist[3][4])
 4 channel 8-bit unsigned color twist, not affecting Alpha.
NppStatus nppiLUT_Linear_8u_C1R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels)
 8-bit unsigned look-up-table color conversion.
NppStatus nppiLUT_Linear_8u_C3R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3])
 3 channel 8-bit unsigned look-up-table color conversion.
NppStatus nppiLUT_Linear_8u_AC4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4])
 4 channel 8-bit unsigned look-up-table color conversion, not affecting Alpha.

Canny Edge Detection

NppStatus nppiCannyGetBufferSize (NppiSize oSizeROI, int *hpBufferSize)
 Calculate the size of a temporary buffer needed for the Canny function.
NppStatus nppiCanny_32f8u_C1R (const Npp32f *pSrcDx, int nSrcDxStep, const Npp32f *pSrcDy, int nSrcDyStep, Npp8u *pDstEdges, int nDstEdgeStep, NppiSize oSizeROI, Npp32f nLowThreshold, Npp32f nHighThreshold, Npp8u *pBuffer)
 Canny edge detection.

Affine warping, affine transform calculation

Affine warping of an image is the transform of image pixel positions, defined by the following formulas:

\[ X_{new} = C_{00} * x + C_{01} * y + C_{02} \qquad Y_{new} = C_{10} * x + C_{11} * y + C_{12} \qquad C = \left[ \matrix{C_{00} & C_{01} & C_{02} \cr C_{10} & C_{11} & C_{12} } \right] \]

That is, any pixel with coordinates $(X_{new},Y_{new})$ in the transformed image is sourced from coordinates $(x,y)$ in the original image.

The mapping $C$ is completely specified by 6 values $C_{ij}, i=\overline{0,1}, j=\overline{0,2}$. The transform maps parallel lines to parallel lines and preserves ratios of distances of points to lines. Implementation specific properties are discussed in each function's documentation.

NppStatus nppiGetAffineTransform (NppiRect srcRoi, const double quad[4][2], double coeffs[2][3])
 Calculates affine transform coefficients given source rectangular ROI and its destination quadrangle projection.
NppStatus nppiGetAffineQuad (NppiRect srcRoi, double quad[4][2], const double coeffs[2][3])
 Calculates affine transform projection of given source rectangular ROI.
NppStatus nppiGetAffineBound (NppiRect srcRoi, double bound[2][2], const double coeffs[2][3])
 Calculates bounding box of the affine transform projection of the given source rectangular ROI.
NppStatus nppiWarpAffine_8u_C1R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (8bit unsigned integer, single channel).
NppStatus nppiWarpAffine_8u_C3R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (8bit unsigned integer, three channels).
NppStatus nppiWarpAffine_8u_C4R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (8bit unsigned integer, four channels).
NppStatus nppiWarpAffine_8u_AC4R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (8bit unsigned integer, four channels RGBA).
NppStatus nppiWarpAffine_8u_P3R (const Npp8u *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst[3], int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (8bit unsigned integer, three planes).
NppStatus nppiWarpAffine_8u_P4R (const Npp8u *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst[4], int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (8bit unsigned integer, four planes).
NppStatus nppiWarpAffineBack_8u_C1R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (8bit unsigned integer, single channel).
NppStatus nppiWarpAffineBack_8u_C3R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (8bit unsigned integer, three channels).
NppStatus nppiWarpAffineBack_8u_C4R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (8bit unsigned integer, four channels).
NppStatus nppiWarpAffineBack_8u_AC4R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (8bit unsigned integer, four channels RGBA).
NppStatus nppiWarpAffineBack_8u_P3R (const Npp8u *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst[3], int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (8bit unsigned integer, three planes).
NppStatus nppiWarpAffineBack_8u_P4R (const Npp8u *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst[4], int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (8bit unsigned integer, four planes).
NppStatus nppiWarpAffineQuad_8u_C1R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (8bit unsigned integer, single channel).
NppStatus nppiWarpAffineQuad_8u_C3R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (8bit unsigned integer, three channels).
NppStatus nppiWarpAffineQuad_8u_C4R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (8bit unsigned integer, four channels).
NppStatus nppiWarpAffineQuad_8u_AC4R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (8bit unsigned integer, four channels RGBA).
NppStatus nppiWarpAffineQuad_8u_P3R (const Npp8u *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp8u *pDst[3], int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (8bit unsigned integer, three planes).
NppStatus nppiWarpAffineQuad_8u_P4R (const Npp8u *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp8u *pDst[4], int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (8bit unsigned integer, four planes).
NppStatus nppiWarpAffine_16u_C1R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (16bit unsigned integer, single channel).
NppStatus nppiWarpAffine_16u_C3R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (16bit unsigned integer, three channels).
NppStatus nppiWarpAffine_16u_C4R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (16bit unsigned integer, four channels).
NppStatus nppiWarpAffine_16u_AC4R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (16bit unsigned integer, four channels RGBA).
NppStatus nppiWarpAffine_16u_P3R (const Npp16u *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst[3], int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (16bit unsigned integer, three planes).
NppStatus nppiWarpAffine_16u_P4R (const Npp16u *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst[4], int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (16bit unsigned integer, four planes).
NppStatus nppiWarpAffineBack_16u_C1R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (16bit unsigned integer, single channel).
NppStatus nppiWarpAffineBack_16u_C3R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (16bit unsigned integer, three channels).
NppStatus nppiWarpAffineBack_16u_C4R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (16bit unsigned integer, four channels).
NppStatus nppiWarpAffineBack_16u_AC4R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (16bit unsigned integer, four channels RGBA).
NppStatus nppiWarpAffineBack_16u_P3R (const Npp16u *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst[3], int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (16bit unsigned integer, three planes).
NppStatus nppiWarpAffineBack_16u_P4R (const Npp16u *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst[4], int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (16bit unsigned integer, four planes).
NppStatus nppiWarpAffineQuad_16u_C1R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (16bit unsigned integer, single channel).
NppStatus nppiWarpAffineQuad_16u_C3R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (16bit unsigned integer, three channels).
NppStatus nppiWarpAffineQuad_16u_C4R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (16bit unsigned integer, four channels).
NppStatus nppiWarpAffineQuad_16u_AC4R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (16bit unsigned integer, four channels RGBA).
NppStatus nppiWarpAffineQuad_16u_P3R (const Npp16u *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp16u *pDst[3], int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (16bit unsigned integer, three planes).
NppStatus nppiWarpAffineQuad_16u_P4R (const Npp16u *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp16u *pDst[4], int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (16bit unsigned integer, four planes).
NppStatus nppiWarpAffine_32f_C1R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (32bit float, single channel).
NppStatus nppiWarpAffine_32f_C3R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (32bit float, three channels).
NppStatus nppiWarpAffine_32f_C4R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (32bit float, four channels).
NppStatus nppiWarpAffine_32f_AC4R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (32bit float, four channels RGBA).
NppStatus nppiWarpAffine_32f_P3R (const Npp32f *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst[3], int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (32bit float, three planes).
NppStatus nppiWarpAffine_32f_P4R (const Npp32f *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst[4], int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (32bit float, four planes).
NppStatus nppiWarpAffineBack_32f_C1R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (32bit float, single channel).
NppStatus nppiWarpAffineBack_32f_C3R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (32bit float, three channels).
NppStatus nppiWarpAffineBack_32f_C4R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (32bit float, four channels).
NppStatus nppiWarpAffineBack_32f_AC4R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (32bit float, four channels RGBA).
NppStatus nppiWarpAffineBack_32f_P3R (const Npp32f *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst[3], int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (32bit float, three planes).
NppStatus nppiWarpAffineBack_32f_P4R (const Npp32f *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst[4], int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (32bit float, four planes).
NppStatus nppiWarpAffineQuad_32f_C1R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (32bit float, single channel).
NppStatus nppiWarpAffineQuad_32f_C3R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (32bit float, three channels).
NppStatus nppiWarpAffineQuad_32f_C4R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (32bit float, four channels).
NppStatus nppiWarpAffineQuad_32f_AC4R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (32bit float, four channels RGBA).
NppStatus nppiWarpAffineQuad_32f_P3R (const Npp32f *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32f *pDst[3], int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (32bit float, three planes).
NppStatus nppiWarpAffineQuad_32f_P4R (const Npp32f *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32f *pDst[4], int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (32bit float, four planes).
NppStatus nppiWarpAffine_32s_C1R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (32bit signed integer, single channel).
NppStatus nppiWarpAffine_32s_C3R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (32bit signed integer, three channels).
NppStatus nppiWarpAffine_32s_C4R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (32bit signed integer, four channels).
NppStatus nppiWarpAffine_32s_AC4R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (32bit signed integer, four channels RGBA).
NppStatus nppiWarpAffine_32s_P3R (const Npp32s *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst[3], int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (32bit signed integer, three planes).
NppStatus nppiWarpAffine_32s_P4R (const Npp32s *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst[4], int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Affine transform of an image (32bit signed integer, four planes).
NppStatus nppiWarpAffineBack_32s_C1R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (32bit signed integer, single channel).
NppStatus nppiWarpAffineBack_32s_C3R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (32bit signed integer, three channels).
NppStatus nppiWarpAffineBack_32s_C4R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (32bit signed integer, four channels).
NppStatus nppiWarpAffineBack_32s_AC4R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (32bit signed integer, four channels RGBA).
NppStatus nppiWarpAffineBack_32s_P3R (const Npp32s *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst[3], int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (32bit signed integer, three planes).
NppStatus nppiWarpAffineBack_32s_P4R (const Npp32s *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst[4], int nDstStep, NppiRect dstRoi, const double coeffs[2][3], int interpolation)
 Inverse affine transform of an image (32bit signed integer, four planes).
NppStatus nppiWarpAffineQuad_32s_C1R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (32bit signed integer, single channel).
NppStatus nppiWarpAffineQuad_32s_C3R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (32bit signed integer, three channels).
NppStatus nppiWarpAffineQuad_32s_C4R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (32bit signed integer, four channels).
NppStatus nppiWarpAffineQuad_32s_AC4R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (32bit signed integer, four channels RGBA).
NppStatus nppiWarpAffineQuad_32s_P3R (const Npp32s *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32s *pDst[3], int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (32bit signed integer, three planes).
NppStatus nppiWarpAffineQuad_32s_P4R (const Npp32s *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32s *pDst[4], int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Affine transform of an image (32bit signed integer, four planes).

Perspective warping, perspective transform calculation

Perspective warping of an image is the transform of image pixel positions, defined by the following formulas:

\[ X_{new} = \frac{C_{00} * x + C_{01} * y + C_{02}}{C_{20} * x + C_{21} * y + C_{22}} \qquad Y_{new} = \frac{C_{10} * x + C_{11} * y + C_{12}}{C_{20} * x + C_{21} * y + C_{22}} \qquad C = \left[ \matrix{C_{00} & C_{01} & C_{02} \cr C_{10} & C_{11} & C_{12} \cr C_{20} & C_{21} & C_{22} } \right] \]

That is, any pixel of the transformed image with coordinates $(X_{new},Y_{new})$ has a preimage with coordinates $(x,y)$.

The mapping $C$ is fully defined by 8 values $C_{ij}, (i,j)=\overline{0,2}$, except of $C_{22}$, which is a normalizer. The transform has a property of mapping any convex quadrangle to a convex quadrangle, which is used in a group of functions nppiWarpPerspectiveQuad. The NPPI implementation of perspective transform has some issues which are discussed in each function's documentation.

NppStatus nppiGetPerspectiveTransform (NppiRect srcRoi, const double quad[4][2], double coeffs[3][3])
 Calculates perspective transform coefficients given source rectangular ROI and its destination quadrangle projection.
NppStatus nppiGetPerspectiveQuad (NppiRect srcRoi, double quad[4][2], const double coeffs[3][3])
 Calculates perspective transform projection of given source rectangular ROI.
NppStatus nppiGetPerspectiveBound (NppiRect srcRoi, double bound[2][2], const double coeffs[3][3])
 Calculates bounding box of the perspective transform projection of the given source rectangular ROI.
NppStatus nppiWarpPerspective_8u_C1R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (8bit unsigned integer, single channel).
NppStatus nppiWarpPerspective_8u_C3R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (8bit unsigned integer, three channels).
NppStatus nppiWarpPerspective_8u_C4R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (8bit unsigned integer, four channels).
NppStatus nppiWarpPerspective_8u_AC4R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (8bit unsigned integer, four channels RGBA).
NppStatus nppiWarpPerspective_8u_P3R (const Npp8u *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst[3], int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (8bit unsigned integer, three planes).
NppStatus nppiWarpPerspective_8u_P4R (const Npp8u *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst[4], int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (8bit unsigned integer, four planes).
NppStatus nppiWarpPerspectiveBack_8u_C1R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (8bit unsigned integer, single channel).
NppStatus nppiWarpPerspectiveBack_8u_C3R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (8bit unsigned integer, three channels).
NppStatus nppiWarpPerspectiveBack_8u_C4R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (8bit unsigned integer, four channels).
NppStatus nppiWarpPerspectiveBack_8u_AC4R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (8bit unsigned integer, four channels RGBA).
NppStatus nppiWarpPerspectiveBack_8u_P3R (const Npp8u *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst[3], int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (8bit unsigned integer, three planes).
NppStatus nppiWarpPerspectiveBack_8u_P4R (const Npp8u *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp8u *pDst[4], int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (8bit unsigned integer, four planes).
NppStatus nppiWarpPerspectiveQuad_8u_C1R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (8bit unsigned integer, single channel).
NppStatus nppiWarpPerspectiveQuad_8u_C3R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (8bit unsigned integer, three channels).
NppStatus nppiWarpPerspectiveQuad_8u_C4R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (8bit unsigned integer, four channels).
NppStatus nppiWarpPerspectiveQuad_8u_AC4R (const Npp8u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp8u *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (8bit unsigned integer, four channels RGBA).
NppStatus nppiWarpPerspectiveQuad_8u_P3R (const Npp8u *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp8u *pDst[3], int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (8bit unsigned integer, three planes).
NppStatus nppiWarpPerspectiveQuad_8u_P4R (const Npp8u *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp8u *pDst[4], int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (8bit unsigned integer, four planes).
NppStatus nppiWarpPerspective_16u_C1R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (16bit unsigned integer, single channel).
NppStatus nppiWarpPerspective_16u_C3R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (16bit unsigned integer, three channels).
NppStatus nppiWarpPerspective_16u_C4R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (16bit unsigned integer, four channels).
NppStatus nppiWarpPerspective_16u_AC4R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (16bit unsigned integer, four channels RGBA).
NppStatus nppiWarpPerspective_16u_P3R (const Npp16u *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst[3], int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (16bit unsigned integer, three planes).
NppStatus nppiWarpPerspective_16u_P4R (const Npp16u *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst[4], int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (16bit unsigned integer, four planes).
NppStatus nppiWarpPerspectiveBack_16u_C1R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (16bit unsigned integer, single channel).
NppStatus nppiWarpPerspectiveBack_16u_C3R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (16bit unsigned integer, three channels).
NppStatus nppiWarpPerspectiveBack_16u_C4R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (16bit unsigned integer, four channels).
NppStatus nppiWarpPerspectiveBack_16u_AC4R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (16bit unsigned integer, four channels RGBA).
NppStatus nppiWarpPerspectiveBack_16u_P3R (const Npp16u *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst[3], int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (16bit unsigned integer, three planes).
NppStatus nppiWarpPerspectiveBack_16u_P4R (const Npp16u *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp16u *pDst[4], int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (16bit unsigned integer, four planes).
NppStatus nppiWarpPerspectiveQuad_16u_C1R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (16bit unsigned integer, single channel).
NppStatus nppiWarpPerspectiveQuad_16u_C3R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (16bit unsigned integer, three channels).
NppStatus nppiWarpPerspectiveQuad_16u_C4R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (16bit unsigned integer, four channels).
NppStatus nppiWarpPerspectiveQuad_16u_AC4R (const Npp16u *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp16u *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (16bit unsigned integer, four channels RGBA).
NppStatus nppiWarpPerspectiveQuad_16u_P3R (const Npp16u *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp16u *pDst[3], int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (16bit unsigned integer, three planes).
NppStatus nppiWarpPerspectiveQuad_16u_P4R (const Npp16u *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp16u *pDst[4], int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (16bit unsigned integer, four planes).
NppStatus nppiWarpPerspective_32f_C1R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (32bit float, single channel).
NppStatus nppiWarpPerspective_32f_C3R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (32bit float, three channels).
NppStatus nppiWarpPerspective_32f_C4R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (32bit float, four channels).
NppStatus nppiWarpPerspective_32f_AC4R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (32bit float, four channels RGBA).
NppStatus nppiWarpPerspective_32f_P3R (const Npp32f *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst[3], int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (32bit float, three planes).
NppStatus nppiWarpPerspective_32f_P4R (const Npp32f *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst[4], int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (32bit float, four planes).
NppStatus nppiWarpPerspectiveBack_32f_C1R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (32bit float, single channel).
NppStatus nppiWarpPerspectiveBack_32f_C3R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (32bit float, three channels).
NppStatus nppiWarpPerspectiveBack_32f_C4R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (32bit float, four channels).
NppStatus nppiWarpPerspectiveBack_32f_AC4R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (32bit float, four channels RGBA).
NppStatus nppiWarpPerspectiveBack_32f_P3R (const Npp32f *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst[3], int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (32bit float, three planes).
NppStatus nppiWarpPerspectiveBack_32f_P4R (const Npp32f *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32f *pDst[4], int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (32bit float, four planes).
NppStatus nppiWarpPerspectiveQuad_32f_C1R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (32bit float, single channel).
NppStatus nppiWarpPerspectiveQuad_32f_C3R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (32bit float, three channels).
NppStatus nppiWarpPerspectiveQuad_32f_C4R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (32bit float, four channels).
NppStatus nppiWarpPerspectiveQuad_32f_AC4R (const Npp32f *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32f *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (32bit float, four channels RGBA).
NppStatus nppiWarpPerspectiveQuad_32f_P3R (const Npp32f *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32f *pDst[3], int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (32bit float, three planes).
NppStatus nppiWarpPerspectiveQuad_32f_P4R (const Npp32f *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32f *pDst[4], int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (32bit float, four planes).
NppStatus nppiWarpPerspective_32s_C1R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (32bit signed integer, single channel).
NppStatus nppiWarpPerspective_32s_C3R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (32bit signed integer, three channels).
NppStatus nppiWarpPerspective_32s_C4R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (32bit signed integer, four channels).
NppStatus nppiWarpPerspective_32s_AC4R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (32bit signed integer, four channels RGBA).
NppStatus nppiWarpPerspective_32s_P3R (const Npp32s *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst[3], int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (32bit signed integer, three planes).
NppStatus nppiWarpPerspective_32s_P4R (const Npp32s *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst[4], int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Perspective transform of an image (32bit signed integer, four planes).
NppStatus nppiWarpPerspectiveBack_32s_C1R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (32bit signed integer, single channel).
NppStatus nppiWarpPerspectiveBack_32s_C3R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (32bit signed integer, three channels).
NppStatus nppiWarpPerspectiveBack_32s_C4R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (32bit signed integer, four channels).
NppStatus nppiWarpPerspectiveBack_32s_AC4R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (32bit signed integer, four channels RGBA).
NppStatus nppiWarpPerspectiveBack_32s_P3R (const Npp32s *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst[3], int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (32bit signed integer, three planes).
NppStatus nppiWarpPerspectiveBack_32s_P4R (const Npp32s *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, Npp32s *pDst[4], int nDstStep, NppiRect dstRoi, const double coeffs[3][3], int interpolation)
 Inverse perspective transform of an image (32bit signed integer, four planes).
NppStatus nppiWarpPerspectiveQuad_32s_C1R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (32bit signed integer, single channel).
NppStatus nppiWarpPerspectiveQuad_32s_C3R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (32bit signed integer, three channels).
NppStatus nppiWarpPerspectiveQuad_32s_C4R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (32bit signed integer, four channels).
NppStatus nppiWarpPerspectiveQuad_32s_AC4R (const Npp32s *pSrc, NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32s *pDst, int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (32bit signed integer, four channels RGBA).
NppStatus nppiWarpPerspectiveQuad_32s_P3R (const Npp32s *pSrc[3], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32s *pDst[3], int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (32bit signed integer, three planes).
NppStatus nppiWarpPerspectiveQuad_32s_P4R (const Npp32s *pSrc[4], NppiSize srcSize, int nSrcStep, NppiRect srcRoi, const double srcQuad[4][2], Npp32s *pDst[4], int nDstStep, NppiRect dstRoi, const double dstQuad[4][2], int interpolation)
 Perspective transform of an image (32bit signed integer, four planes).

Image Labeling Techniques

NppStatus nppiGraphcutGetSize (NppiSize size, int *pBufSize)
 Calculates the size of the temporary buffer for graph-cut labeling.
NppStatus nppiGraphcut_32s8u (Npp32s *pTerminals, Npp32s *pLeftTransposed, Npp32s *pRightTransposed, Npp32s *pTop, Npp32s *pBottom, int nStep, int nTransposedStep, NppiSize size, Npp8u *pLabel, int nLabelStep, Npp8u *pBuffer)
 Graphcut of a flow network (32bit signed integer edge capacities).

Function Documentation

NppStatus nppiAbsDiff_32f_C1R ( const Npp32f pSrc1,
int  nSrc1Step,
const Npp32f pSrc2,
int  nSrc2Step,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit floating point absolute difference.

Compute abs(sourcePixel1 - sourcePixel2).

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiAbsDiff_32s_C1R ( const Npp32s pSrc1,
int  nSrc1Step,
const Npp32s pSrc2,
int  nSrc2Step,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit absolute difference.

Compute abs(sourcePixel1 - sourcePixel2).

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiAbsDiff_8u_AC4R ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 8-bit unsigned absolute difference, not affecting Alpha.

Compute abs(sourcePixel1 - sourcePixel2).

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiAbsDiff_8u_C1R ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

8-bit unsigned absolute difference.

Compute abs(sourcePixel1 - sourcePixel2).

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiAbsDiff_8u_C4R ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 8-bit unsigned absolute difference.

Compute abs(sourcePixel1 - sourcePixel2).

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiAbsDiffC_32f_C1R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI,
Npp32f  nValue 
)

32-bit floating point image absolute difference from constant.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nValue Constant.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiAdd_32f_C1R ( const Npp32f pSrc1,
int  nSrc1Step,
const Npp32f pSrc2,
int  nSrc2Step,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit floating point image add.

Add the pixel values of corresponding pixels in the ROI and write them to the output image.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiAdd_32s_C1R ( const Npp32s pSrc1,
int  nSrc1Step,
const Npp32s pSrc2,
int  nSrc2Step,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit image add.

Add the pixel values of corresponding pixels in the ROI and write them to the output image.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiAdd_8u_AC4RSfs ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
int  nScaleFactor 
)

4 channel 8-bit unsigned image add, not affecting Alpha.

Add the pixel values of corresponding pixels in the ROI and write them to the output image.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nScaleFactor Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiAdd_8u_C1RSfs ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
int  nScaleFactor 
)

8-bit unsigned image add.

Add the pixel values of corresponding pixels in the ROI and write them to the output image.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nScaleFactor Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiAdd_8u_C4RSfs ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
int  nScaleFactor 
)

4 channel 8-bit unsigned image add.

Add the pixel values of corresponding pixels in the ROI and write them to the output image.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nScaleFactor Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiAddC_32f_C1R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f  nValue,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit floating point image add constant.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nValue Constant.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiAddC_32fc_C1R ( const Npp32fc pSrc,
int  nSrcStep,
Npp32fc  nValue,
Npp32fc pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit complex floating point image add constant.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nValue Constant.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiCanny_32f8u_C1R ( const Npp32f pSrcDx,
int  nSrcDxStep,
const Npp32f pSrcDy,
int  nSrcDyStep,
Npp8u pDstEdges,
int  nDstEdgeStep,
NppiSize  oSizeROI,
Npp32f  nLowThreshold,
Npp32f  nHighThreshold,
Npp8u pBuffer 
)

Canny edge detection.

Find edges using the Canny algorithm. This function requires a temporary working device buffer whose size should be computed by a prior call to nppiCannyGetBufferSize.

Parameters:
pSrcDx Pointer to the source image ROI x-derivative.
nSrcDxStep Distance in bytes between starts of consecutive lines in the source image pSrcDx.
pSrcDy Pointer to the source image ROI y-derivative.
nSrcDyStep Distance in bytes between starts of consecutive lines in the source image pSrcDy
pDstEdges Pointer to the output array of the detected edges.
nDstEdgeStep Distance in bytes between starts of consecutive lines in the output image.
oSizeROI Width and height of the regions of interest.
nLowThreshold Lower threshold for edge detection.
nHighThreshold Upper threshold for edge detection.
pBuffer Pointer to the pre-allocated temporary buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiCannyGetBufferSize ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Calculate the size of a temporary buffer needed for the Canny function.

Parameters:
oSizeROI Size of the image ROI in pixels
hpBufferSize Host-pointer receiving the size required temporary buffer.
Returns:
Error codes:

NppStatus nppiColorTwist32f_8u_AC4R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp32f  twist[3][4] 
)

4 channel 8-bit unsigned color twist, not affecting Alpha.

An input color twist matrix with floating-point pixel values is applied with in ROI. Alpha channel is the last channel and is not processed.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
twist The color twist matrix with floating-point pixel values.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiColorTwist32f_8u_C3R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp32f  twist[3][4] 
)

3 channel 8-bit unsigned color twist.

An input color twist matrix with floating-point pixel values is applied within ROI.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
twist The color twist matrix with floating-point pixel values.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiColorTwist32f_8u_P3R ( const Npp8u *const *  pSrc,
int  nSrcStep,
Npp8u **  pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp32f  twist[3][4] 
)

3 channel planar 8-bit unsigned color twist.

An input color twist matrix with floating-point pixel values is applied within ROI.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
twist The color twist matrix with floating-point pixel values.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiCompare_32f_C1R ( const Npp32f pSrc1,
int  nSrc1Step,
const Npp32f pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppCmpOp  eComparisonOperation 
)

32-bit floating point image compare.

Compare pSrc1's pixels with corresponding pixels in pSrc2.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
eComparisonOperation Specifies the comparison operation to be used in the pixel comparison.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiCompare_8u_AC4R ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppCmpOp  eComparisonOperation 
)

4 channel 8-bit unsigned image compare, not affecting Alpha.

Compare pSrc1's pixels with corresponding pixels in pSrc2.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
eComparisonOperation Specifies the comparison operation to be used in the pixel comparison.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiCompare_8u_C4R ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppCmpOp  eComparisonOperation 
)

4 channel 8-bit unsigned image compare.

Compare pSrc1's pixels with corresponding pixels in pSrc2.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
eComparisonOperation Specifies the comparison operation to be used in the pixel comparison.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_16s32f_C1R ( const Npp16s pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

16-bit singedto 32-bit floating point conversion.

For detailed documentation see nppiConverte_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_16s32s_C1R ( const Npp16s pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

16-bit to 32-bit conversion.

For detailed documentation see nppiConvert_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_16s8u_AC4R ( const Npp16s pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 16-bit signed to 8-bit unsigned conversion, not affecting Alpha.

For detailed documentation see nppiConverte_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_16s8u_C1R ( const Npp16s pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 16-bit signed to 8-bit unsigned conversion.

For detailed documentation see nppiConvert_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_16s8u_C4R ( const Npp16s pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 16-bit signed to 8-bit unsignedconversion, not affecting Alpha.

For detailed documentation see nppiConvert_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_16u32f_C1R ( const Npp16u pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

16-bit unsigned to 32-bit floating point conversion.

For detailed documentation see nppiConverte_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_16u32s_C1R ( const Npp16u pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

16-bit unsigned to 32-bit signed conversion.

For detailed documentation see nppiConverte_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_16u8u_AC4R ( const Npp16u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 16-bit unsigned to 8-bit unsigned conversion, not affecting Alpha.

For detailed documentation see nppiConvert_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_16u8u_C1R ( const Npp16u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

16-bit unsigned to 8-bit unsigned conversion.

For detailed documentation see nppiConvert_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_16u8u_C4R ( const Npp16u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 16-bit unsigned to 8-bit unsigned conversion.

For detailed documentation see nppiConvert_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_32f16s_C1R ( const Npp32f pSrc,
int  nSrcStep,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppRoundMode  eRoundMode 
)

32-bit floating point to 16-bit conversion.

For detailed documentation see nppiConverte_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
eRoundMode Flag specifying how fractional float values are rounded to integer values.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_32f16u_C1R ( const Npp32f pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppRoundMode  eRoundMode 
)

32-bit floating point to 16-bit unsigned conversion.

For detailed documentation see nppiConverte_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
eRoundMode Flag specifying how fractional float values are rounded to integer values.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_32f8u_C1R ( const Npp32f pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppRoundMode  eRoundMode 
)

32-bit floating point to 8-bit unsigned conversion.

For detailed documentation see nppiConverte_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
eRoundMode Flag specifying how fractional float values are rounded to integer values.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_8u16s_AC4R ( const Npp8u pSrc,
int  nSrcStep,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 8-bit unsigned to 16-bit signed conversion, not affecting Alpha.

For detailed documentation see nppiConverte_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_8u16s_C1R ( const Npp8u pSrc,
int  nSrcStep,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

8-bit unsigned to 16-bit signed conversion.

For detailed documentation see nppiConvert_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_8u16s_C4R ( const Npp8u pSrc,
int  nSrcStep,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 8-bit unsigned to 16-bit signed conversion.

For detailed documentation see nppiConvert_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_8u16u_AC4R ( const Npp8u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 8-bit unsigned to 16-bit unsigned conversion, not affecting Alpha.

For detailed documentation see nppiConvert_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_8u16u_C1R ( const Npp8u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

8-bit unsigned to 16-bit unsigned conversion.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_8u16u_C4R ( const Npp8u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 8-bit unsigned to 16-bit unsigned conversion.

For detailed documentation see nppiConvert_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiConvert_8u32f_C1R ( const Npp8u pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

8-bit unsigned to 32-bit floating point conversion.

For detailed documentation see nppiConverte_8u16u_C1R().

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiCopy_16s_AC4R ( const Npp16s pSrc,
int  nSrcStep,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 16-bit image copy, not affecting Alpha.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiCopy_16s_C1R ( const Npp16s pSrc,
int  nSrcStep,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

NppStatus nppiCopy_16s_C4R ( const Npp16s pSrc,
int  nSrcStep,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

NppStatus nppiCopy_16u_AC4R ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 16-bit unsigned image copy, not affecting Alpha channel.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiCopy_16u_C1R ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

NppStatus nppiCopy_16u_C4R ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 16-bit unsigned image copy.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiCopy_32f_AC4R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 32-bit floating point image copy, not affecting Alpha.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiCopy_32f_C1R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

NppStatus nppiCopy_32f_C4R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 32-bit floating point image copy.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiCopy_32s_AC4R ( const Npp32s pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 32-bit image copy, not affecting Alpha.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiCopy_32s_C1R ( const Npp32s pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

NppStatus nppiCopy_32s_C4R ( const Npp32s pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

NppStatus nppiCopy_8u_AC4R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 8-bit unsigned image copy, not affecting Alpha channel.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiCopy_8u_C1R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

NppStatus nppiCopy_8u_C4R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

NppStatus nppiCopyConstBorder_32s_C1R ( const Npp32s pSrc,
int  nSrcStep,
NppiSize  oSrcSizeROI,
Npp32s pDst,
int  nDstStep,
NppiSize  oDstSizeROI,
int  nTopBorderHeight,
int  nLeftBorderWidth,
Npp32s  nValue 
)

32-bit image copy with constant border color.

See nppiCopyConstBorder_8u_C1R() for detailed documentation.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSrcSizeROI Size of the source region-of-interest.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oDstSizeROI Size of the destination region-of-interest.
nTopBorderHeight Height of top border.
nLeftBorderWidth Width of left border.
nValue Border luminance value.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiCopyConstBorder_8u_AC4R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSrcSizeROI,
Npp8u pDst,
int  nDstStep,
NppiSize  oDstSizeROI,
int  nTopBorderHeight,
int  nLeftBorderWidth,
const Npp8u  aValue[3] 
)

4 channel 8-bit unsigned image copy with constant border color.

See nppiCopyConstBorder_8u_C1R() for detailed documentation.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSrcSizeROI Size of the source region-of-interest.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oDstSizeROI Size of the destination region-of-interest.
nTopBorderHeight Height of top border.
nLeftBorderWidth Width of left border.
aValue Vector of the RGB values of the border pixels. Because this method does not affect the destination image's alpha channel, only three components of the border color are needed.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiCopyConstBorder_8u_C1R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSrcSizeROI,
Npp8u pDst,
int  nDstStep,
NppiSize  oDstSizeROI,
int  nTopBorderHeight,
int  nLeftBorderWidth,
Npp8u  nValue 
)

8-bit unsigned image copy width constant border color.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSrcSizeROI Size of the source region of pixels.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oDstSizeROI Size (width, height) of the destination region, i.e. the region that gets filled with data from the source image (inner part) and constant border color (outer part).
nTopBorderHeight Height (in pixels) of the top border. The height of the border at the bottom of the destination ROI is implicitly defined by the size of the source ROI: nBottomBorderHeight = oDstSizeROI.height - nTopBorderHeight - oSrcSizeROI.height.
nLeftBorderWidth Width (in pixels) of the left border. The width of the border at the right side of the destination ROI is implicitly defined by the size of the source ROI: nRightBorderWidth = oDstSizeROI.width - nLeftBorderWidth - oSrcSizeROI.width.
nValue The pixel value to be set for border pixels.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiCopyConstBorder_8u_C4R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSrcSizeROI,
Npp8u pDst,
int  nDstStep,
NppiSize  oDstSizeROI,
int  nTopBorderHeight,
int  nLeftBorderWidth,
const Npp8u  aValue[4] 
)

4channel 8-bit unsigned image copy with constant border color.

See nppiCopyConstBorder_8u_C1R() for detailed documentation.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSrcSizeROI Size of the source region-of-interest.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oDstSizeROI Size of the destination region-of-interest.
nTopBorderHeight Height of top border.
nLeftBorderWidth Width of left border.
aValue Vector of the RGBA values of the border pixels to be set.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiDCTQuantFwd8x8LS_JPEG_8u16s_C1R ( Npp8u pSrc,
int  nSrcStep,
Npp16s pDst,
int  nDstStep,
const Npp16u pQuantFwdTable,
NppiSize  oSizeROI 
)

Forward DCT, quantization and level shift part of the JPEG encoding.

Input is expected in 8x8 macro blocks and output is expected to be in 64x1 macro blocks.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
pQuantFwdTable Forward quantization tables for JPEG encoding.
oSizeROI Region-of-Interest (ROI).
Returns:
Error codes:

NppStatus nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R ( Npp16s pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
const Npp16u pQuantInvTable,
NppiSize  oSizeROI 
)

Inverse DCT, de-quantization and level shift part of the JPEG decoding.

Input is expected in 64x1 macro blocks and output is expected to be in 8x8 macro blocks.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
pQuantInvTable Inverse quantization tables for JPEG decoding.
oSizeROI Region-of-Interest (ROI).
Returns:
Error codes:

NppStatus nppiDilate_8u_C1R ( const Npp8u pSrc,
Npp32s  nSrcStep,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
NppiSize  oMaskSize,
NppiPoint  oAnchor 
)

8-bit unsigned image dilation.

Dilation computes the output pixel as the maximum pixel value of the pixels under the mask. Pixels who's corresponding mask values are zero to not participate in the maximum search.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the start address of the mask array
oMaskSize Width and Height mask array.
oAnchor X and Y offsets of the mask origin frame of reference w.r.t the source pixel.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiDilate_8u_C4R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
NppiSize  oMaskSize,
NppiPoint  oAnchor 
)

4 channel 8-bit unsigned image dilation.

Dilation computes the output pixel as the maximum pixel value of the pixels under the mask. Pixels who's corresponding mask values are zero to not participate in the maximum search.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the start address of the mask array
oMaskSize Width and Height mask array.
oAnchor X and Y offsets of the mask origin frame of reference w.r.t the source pixel.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiDiv_32f_C1R ( const Npp32f pSrc1,
int  nSrc1Step,
const Npp32f pSrc2,
int  nSrc2Step,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit floating point image division.

Divide pixels in pSrc2 by pSrc1's pixels.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiDiv_32s_C1R ( const Npp32s pSrc1,
int  nSrc1Step,
const Npp32s pSrc2,
int  nSrc2Step,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit image division.

Divide pixels in pSrc2 by pSrc1's pixels.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiDiv_8u_AC4RSfs ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
int  nScaleFactor 
)

4 channel 8-bit unsigned image division, not affecting Alpha.

Divide pixels in pSrc2 by pSrc1's pixels.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nScaleFactor Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiDiv_8u_C1RSfs ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
int  nScaleFactor 
)

8-bit unsignedimage division.

Dived pixels in pSrc2 by pSrc1's pixels.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nScaleFactor Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiDiv_8u_C4RSfs ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
int  nScaleFactor 
)

4 channel 8-bit unsigned image division.

Divide pixels in pSrc2 by pSrc1's pixels.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nScaleFactor Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiDivC_32f_C1R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f  nValue,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit floating point image divide by constant.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
nValue Constant.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiDivC_32fc_C1R ( const Npp32fc pSrc,
int  nSrcStep,
Npp32fc  nValue,
Npp32fc pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit complex floating point image divide by constant.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nValue Constant.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiErode_8u_C1R ( const Npp8u pSrc,
Npp32s  nSrcStep,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
NppiSize  oMaskSize,
NppiPoint  oAnchor 
)

8-bit unsigned image erosion.

Erosion computes the output pixel as the minimum pixel value of the pixels under the mask. Pixels who's corresponding mask values are zero to not participate in the maximum search.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the start address of the mask array
oMaskSize Width and Height mask array.
oAnchor X and Y offsets of the mask origin frame of reference w.r.t the source pixel.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiErode_8u_C4R ( const Npp8u pSrc,
Npp32s  nSrcStep,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
NppiSize  oMaskSize,
NppiPoint  oAnchor 
)

4 channel 8-bit unsigned image erosion.

Erosion computes the output pixel as the minimum pixel value of the pixels under the mask. Pixels who's corresponding mask values are zero to not participate in the maximum search.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the start address of the mask array
oMaskSize Width and Height mask array.
oAnchor X and Y offsets of the mask origin frame of reference w.r.t the source pixel.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiEvenLevelsHost_32s ( Npp32s hpLevels,
int  nLevels,
Npp32s  nLowerLevel,
Npp32s  nUpperLevel 
)

Compute levels with even distribution.

Parameters:
hpLevels A host pointer to array which receives the levels being computed. The array needs to be of size nLevels.
nLevels The number of levels being computed. nLevels must be at least 2, otherwise an NPP_HISTO_NUMBER_OF_LEVELS_ERROR error is returned.
nLowerLevel Lower boundary value of the lowest level.
nUpperLevel Upper boundary value of the greatest level.
Returns:
Error code.

NppStatus nppiExp_32f_C1R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit floating point exponentiation.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiFilter_8u_C1R ( const Npp8u pSrc,
Npp32s  nSrcStep,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32s pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
Npp32s  nDivisor 
)

8-bit unsigned convolution filter.

Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. Before writing the result pixel the sum is scaled back via division by nDivisor.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pKernel Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.
oKernelSize Width and Height of the rectangular kernel.
oAnchor X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.
nDivisor The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiFilter_8u_C4R ( const Npp8u pSrc,
Npp32s  nSrcStep,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
const Npp32s pKernel,
NppiSize  oKernelSize,
NppiPoint  oAnchor,
Npp32s  nDivisor 
)

4 channel 8-bit unsigned convolution filter.

Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. Before writing the result pixel the sum is scaled back via division by nDivisor.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pKernel Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.
oKernelSize Width and Height of the rectangular kernel.
oAnchor X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.
nDivisor The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiFilterBox_8u_C1R ( const Npp8u pSrc,
Npp32s  nSrcStep,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor 
)

8-bit unsigned box filter.

Computes the average pixel values of the pixels under a rectangular mask.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
oMaskSize Width and Height of the neighborhood region for the local Avg operation.
oAnchor X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiFilterBox_8u_C4R ( const Npp8u pSrc,
Npp32s  nSrcStep,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor 
)

4 channel 8-bit unsigned box filter.

Computes the average pixel values of the pixels under a rectangular mask.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
oMaskSize Width and Height of the neighborhood region for the local Avg operation.
oAnchor X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiFilterColumn_8u_C1R ( const Npp8u pSrc,
Npp32s  nSrcStep,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oROI,
const Npp32s pKernel,
Npp32s  nMaskSize,
Npp32s  nAnchor,
Npp32s  nDivisor 
)

8-bit unsigned 1D (column) image convolution.

Apply convolution filter with user specified 1D column of weights. Result pixel is equal to the sum of the products between the kernel coefficients (pKernel array) and corresponding neighboring column pixel values in the source image defined by nKernelDim and nAnchorY, divided by nDivisor.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oROI Region-of-Interest (ROI).
pKernel Pointer to the start address of the kernel coefficient array. Coefficients are expected to be stored in reverse order.
nMaskSize Length of the linear kernel array.
nAnchor Y offset of the kernel origin frame of reference w.r.t the source pixel.
nDivisor The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiFilterColumn_8u_C4R ( const Npp8u pSrc,
Npp32s  nSrcStep,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oROI,
const Npp32s pKernel,
Npp32s  nMaskSize,
Npp32s  nAnchor,
Npp32s  nDivisor 
)

4 channel 8-bit unsigned 1D (column) image convolution.

Apply convolution filter with user specified 1D column of weights. Result pixel is equal to the sum of the products between the kernel coefficients (pKernel array) and corresponding neighboring column pixel values in the source image defined by nKernelDim and nAnchorY, divided by nDivisor.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oROI Region-of-Interest (ROI).
pKernel Pointer to the start address of the kernel coefficient array. Coefficients are expected to be stored in reverse order.
nMaskSize Length of the linear kernel array.
nAnchor Y offset of the kernel origin frame of reference w.r.t the source pixel.
nDivisor The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiFilterMax_8u_C1R ( const Npp8u pSrc,
Npp32s  nSrcStep,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor 
)

8-bit unsigned maximum filter.

Result pixel value is the maximum of pixel values under the rectangular mask region.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
oMaskSize Width and Height of the neighborhood region for the local Max operation.
oAnchor X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiFilterMax_8u_C4R ( const Npp8u pSrc,
Npp32s  nSrcStep,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor 
)

4 channel 8-bit unsigned maximum filter.

Result pixel value is the maximum of pixel values under the rectangular mask region.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
oMaskSize Width and Height of the neighborhood region for the local Max operation.
oAnchor X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiFilterMin_8u_C1R ( const Npp8u pSrc,
Npp32s  nSrcStep,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor 
)

8-bit unsigned minimum filter.

Result pixel value is the minimum of pixel values under the rectangular mask region.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
oMaskSize Width and Height of the neighborhood region for the local Max operation.
oAnchor X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiFilterMin_8u_C4R ( const Npp8u pSrc,
Npp32s  nSrcStep,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oSizeROI,
NppiSize  oMaskSize,
NppiPoint  oAnchor 
)

4 channel 8-bit unsigned minimum filter.

Result pixel value is the minimum of pixel values under the rectangular mask region.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
oMaskSize Width and Height of the neighborhood region for the local Max operation.
oAnchor X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiFilterRow_8u_C1R ( const Npp8u pSrc,
Npp32s  nSrcStep,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oROI,
const Npp32s pKernel,
Npp32s  nMaskSize,
Npp32s  nAnchor,
Npp32s  nDivisor 
)

8-bit unsigned 1D (row) image convolution.

Apply general linear Row convolution filter, with rescaling, in a 1D mask region around each source pixel for 1-channel 8 bit/pixel images. Result pixel is equal to the sum of the products between the kernel coefficients (pKernel array) and corresponding neighboring row pixel values in the source image defined by iKernelDim and iAnchorX, divided by iDivisor.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oROI Region-of-Interest (ROI).
pKernel Pointer to the start address of the kernel coefficient array. Coefficients are expected to be stored in reverse order.
nMaskSize Length of the linear kernel array.
nAnchor X offset of the kernel origin frame of reference w.r.t the source pixel.
nDivisor The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiFilterRow_8u_C4R ( const Npp8u pSrc,
Npp32s  nSrcStep,
Npp8u pDst,
Npp32s  nDstStep,
NppiSize  oROI,
const Npp32s pKernel,
Npp32s  nMaskSize,
Npp32s  nAnchor,
Npp32s  nDivisor 
)

4 channel 8-bit unsigned 1D (row) image convolution.

Apply general linear Row convolution filter, with rescaling, in a 1D mask region around each source pixel for 1-channel 8 bit/pixel images. Result pixel is equal to the sum of the products between the kernel coefficients (pKernel array) and corresponding neighboring row pixel values in the source image defined by iKernelDim and iAnchorX, divided by iDivisor.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oROI Region-of-Interest (ROI).
pKernel Pointer to the start address of the kernel coefficient array. Coefficients are expected to be stored in reverse order.
nMaskSize Length of the linear kernel array.
nAnchor X offset of the kernel origin frame of reference w.r.t the source pixel.
nDivisor The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

void nppiFree ( void *  pData  ) 

Free method for any 2D allocated memory.

This method should be used to free memory allocated with any of the nppiMalloc_<modifier> methods.

Parameters:
pData A pointer to memory allocated using nppiMalloc_<modifier>.

NppStatus nppiGetAffineBound ( NppiRect  srcRoi,
double  bound[2][2],
const double  coeffs[2][3] 
)

Calculates bounding box of the affine transform projection of the given source rectangular ROI.

Parameters:
srcRoi Source ROI
bound Bounding box of the transformed source ROI
coeffs Affine transform coefficients
Returns:
Error codes:
  • NPP_SIZE_ERROR Indicates an error condition if any image dimension has zero or negative value
  • NPP_RECT_ERROR Indicates an error condition if width or height of the intersection of the srcRoi and source image is less than or equal to 1
  • NPP_COEFF_ERROR Indicates an error condition if coefficient values are invalid

NppStatus nppiGetAffineQuad ( NppiRect  srcRoi,
double  quad[4][2],
const double  coeffs[2][3] 
)

Calculates affine transform projection of given source rectangular ROI.

Parameters:
srcRoi Source ROI
quad Destination quadrangle
coeffs Affine transform coefficients
Returns:
Error codes:
  • NPP_SIZE_ERROR Indicates an error condition if any image dimension has zero or negative value
  • NPP_RECT_ERROR Indicates an error condition if width or height of the intersection of the srcRoi and source image is less than or equal to 1
  • NPP_COEFF_ERROR Indicates an error condition if coefficient values are invalid

NppStatus nppiGetAffineTransform ( NppiRect  srcRoi,
const double  quad[4][2],
double  coeffs[2][3] 
)

Calculates affine transform coefficients given source rectangular ROI and its destination quadrangle projection.

Parameters:
srcRoi Source ROI
quad Destination quadrangle
coeffs Affine transform coefficients
Returns:
Error codes:
  • NPP_SIZE_ERROR Indicates an error condition if any image dimension has zero or negative value
  • NPP_RECT_ERROR Indicates an error condition if width or height of the intersection of the srcRoi and source image is less than or equal to 1
  • NPP_COEFF_ERROR Indicates an error condition if coefficient values are invalid
  • NPP_AFFINE_QUAD_INCORRECT_WARNING Indicates a warning when quad does not conform to the transform properties. Fourth vertex is ignored, internally computed coordinates are used instead

NppStatus nppiGetPerspectiveBound ( NppiRect  srcRoi,
double  bound[2][2],
const double  coeffs[3][3] 
)

Calculates bounding box of the perspective transform projection of the given source rectangular ROI.

Parameters:
srcRoi Source ROI
bound Bounding box of the transformed source ROI
coeffs Perspective transform coefficients
Returns:
Error codes:
  • NPP_SIZE_ERROR Indicates an error condition if any image dimension has zero or negative value
  • NPP_RECT_ERROR Indicates an error condition if width or height of the intersection of the srcRoi and source image is less than or equal to 1
  • NPP_COEFF_ERROR Indicates an error condition if coefficient values are invalid

NppStatus nppiGetPerspectiveQuad ( NppiRect  srcRoi,
double  quad[4][2],
const double  coeffs[3][3] 
)

Calculates perspective transform projection of given source rectangular ROI.

Parameters:
srcRoi Source ROI
quad Destination quadrangle
coeffs Perspective transform coefficients
Returns:
Error codes:
  • NPP_SIZE_ERROR Indicates an error condition if any image dimension has zero or negative value
  • NPP_RECT_ERROR Indicates an error condition if width or height of the intersection of the srcRoi and source image is less than or equal to 1
  • NPP_COEFF_ERROR Indicates an error condition if coefficient values are invalid

NppStatus nppiGetPerspectiveTransform ( NppiRect  srcRoi,
const double  quad[4][2],
double  coeffs[3][3] 
)

Calculates perspective transform coefficients given source rectangular ROI and its destination quadrangle projection.

Parameters:
srcRoi Source ROI
quad Destination quadrangle
coeffs Perspective transform coefficients
Returns:
Error codes:
  • NPP_SIZE_ERROR Indicates an error condition if any image dimension has zero or negative value
  • NPP_RECT_ERROR Indicates an error condition if width or height of the intersection of the srcRoi and source image is less than or equal to 1
  • NPP_COEFF_ERROR Indicates an error condition if coefficient values are invalid

NppStatus nppiGraphcut_32s8u ( Npp32s pTerminals,
Npp32s pLeftTransposed,
Npp32s pRightTransposed,
Npp32s pTop,
Npp32s pBottom,
int  nStep,
int  nTransposedStep,
NppiSize  size,
Npp8u pLabel,
int  nLabelStep,
Npp8u pBuffer 
)

Graphcut of a flow network (32bit signed integer edge capacities).

The function computes the minimal cut (graphcut) of a 2D regular 4-connected graph. The inputs are the capacities of the horizontal (in transposed form), vertical and terminal (source and sink) edges. The capacities to source and sink are stored as capacity differences in the terminals array ( terminals(x) = source(x) - sink(x) ). The implementation assumes that the edge capacities for boundary edges that would connect to nodes outside the specified domain are set to 0 (for example left(0,*) == 0). If this is not fulfilled the computed labeling may be wrong! The computed binary labeling is encoded as unsigned 8bit values (0 / 255).

See also:
nppiGraphcutGetSize
Parameters:
pTerminals Pointer to differences of terminal edge capacities (terminal(x) = source(x) - sink(x))
pLeftTransposed Pointer to transposed left edge capacities (left(0,*) must be 0)
pRightTransposed Pointer to transposed right edge capacities (right(width-1,*) must be 0)
pTop Pointer to top edge capacities (top(*,0) must be 0)
pBottom Pointer to bottom edge capacities (bottom(*,height-1) must be 0)
nStep Step in bytes between any pair of sequential rows of edge capacities
nTransposedStep Step in bytes between any pair of sequential rows of tranposed edge capacities
size Graph size
pLabel Pointer to destination label image
nLabelStep Step in bytes between any pair of sequential rows of label image
pBuffer Pointer to the temporary buffer
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiGraphcutGetSize ( NppiSize  size,
int *  pBufSize 
)

Calculates the size of the temporary buffer for graph-cut labeling.

See also:
nppiGraphcut_32s8u
Parameters:
size Graph size
pBufSize Pointer to variable that returns the size of the temporary buffer.
Returns:
NPP_SUCCESS Indicates no error. Any other value indicates an error or a warning

NPP_SIZE_ERROR Indicates an error condition if any image dimension has zero or negative value

NPP_NULL_POINTER_ERROR Indicates an error condition if pBufSize pointer is NULL

NppStatus nppiHistogramEven_16s_AC4R ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist[3],
int  nLevels[3],
Npp32s  nLowerLevel[3],
Npp32s  nUpperLevel[3],
Npp8u pBuffer 
)

4 channel (alpha as the last channel) 16-bit signed histogram with evenly distributed bins.

Alpha channel is ignored during histogram computation.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Array of pointers which are receiving computed histograms per color channel. Array pointed by pHist[i] be of size nLevels[i]-1.
nLevels Array containing number of levels per color channel.
nLowerLevel Array containing lower-level of lowest bin per color channel.
nUpperLevel Array containing upper-level of highest bin per color channel.
pBuffer Pointer to appropriately sized (nppiHistogramEvenGetBufferSize_16s_AC4R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramEven_16s_C1R ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist,
int  nLevels,
Npp32s  nLowerLevel,
Npp32s  nUpperLevel,
Npp8u pBuffer 
)

16-bit signed histogram with evenly distributed bins.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Pointer to array that receives the computed histogram. The array must be of size nLevels-1.
nLevels Number of levels.
nLowerLevel Lower boundary of lowest level bin.
nUpperLevel Upper boundary of highest level bin.
pBuffer Pointer to appropriately sized (nppiHistogramEvenGetBufferSize_16s_C1R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramEven_16s_C4R ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist[4],
int  nLevels[4],
Npp32s  nLowerLevel[4],
Npp32s  nUpperLevel[4],
Npp8u pBuffer 
)

4 channel 16-bit signed histogram with evenly distributed bins.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Array of pointers which are receiving computed histograms per color channel. Array pointed by pHist[i] be of size nLevels[i]-1.
nLevels Array containing number of levels per color channel.
nLowerLevel Array containing lower-level of lowest bin per color channel.
nUpperLevel Array containing upper-level of highest bin per color channel.
pBuffer Pointer to appropriately sized (nppiHistogramEvenGetBufferSize_16s_C4R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramEven_16u_AC4R ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist[3],
int  nLevels[3],
Npp32s  nLowerLevel[3],
Npp32s  nUpperLevel[3],
Npp8u pBuffer 
)

4 channel (alpha as the last channel) 16-bit unsigned histogram with evenly distributed bins.

Alpha channel is ignored during histogram computation.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Array of pointers which are receiving computed histograms per color channel. Array pointed by pHist[i] be of size nLevels[i]-1.
nLevels Array containing number of levels per color channel.
nLowerLevel Array containing lower-level of lowest bin per color channel.
nUpperLevel Array containing upper-level of highest bin per color channel.
pBuffer Pointer to appropriately sized (nppiHistogramEvenGetBufferSize_16u_AC4R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramEven_16u_C1R ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist,
int  nLevels,
Npp32s  nLowerLevel,
Npp32s  nUpperLevel,
Npp8u pBuffer 
)

16-bit unsigned histogram with evenly distributed bins.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Pointer to array that receives the computed histogram. The array must be of size nLevels-1.
nLevels Number of levels.
nLowerLevel Lower boundary of lowest level bin.
nUpperLevel Upper boundary of highest level bin.
pBuffer Pointer to appropriately sized (nppiHistogramEvenGetBufferSize_16u_C1R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramEven_16u_C4R ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist[4],
int  nLevels[4],
Npp32s  nLowerLevel[4],
Npp32s  nUpperLevel[4],
Npp8u pBuffer 
)

4 channel 16-bit unsigned histogram with evenly distributed bins.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Array of pointers which are receiving computed histograms per color channel. Array pointed by pHist[i] be of size nLevels[i]-1.
nLevels Array containing number of levels per color channel.
nLowerLevel Array containing lower-level of lowest bin per color channel.
nUpperLevel Array containing upper-level of highest bin per color channel.
pBuffer Pointer to appropriately sized (nppiHistogramEvenGetBufferSize_16u_C4R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramEven_8u_AC4R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist[3],
int  nLevels[3],
Npp32s  nLowerLevel[3],
Npp32s  nUpperLevel[3],
Npp8u pBuffer 
)

4 channel (alpha as the last channel) 8-bit unsigned histogram with evenly distributed bins.

Alpha channel is ignored during histogram computation.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Array of pointers which are receiving computed histograms per color channel. Array pointed by pHist[i] be of size nLevels[i]-1.
nLevels Array containing number of levels per color channel.
nLowerLevel Array containing lower-level of lowest bin per color channel.
nUpperLevel Array containing upper-level of highest bin per color channel.
pBuffer Pointer to appropriately sized (nppiHistogramEvenGetBufferSize_8u_AC4R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramEven_8u_C1R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist,
int  nLevels,
Npp32s  nLowerLevel,
Npp32s  nUpperLevel,
Npp8u pBuffer 
)

8-bit unsigned histogram with evenly distributed bins.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Pointer to array that receives the computed histogram. The array must be of size nLevels-1.
nLevels Number of levels.
nLowerLevel Lower boundary of lowest level bin.
nUpperLevel Upper boundary of highest level bin.
pBuffer Pointer to appropriately sized (nppiHistogramEvenGetBufferSize_8u_C1R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramEven_8u_C4R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist[4],
int  nLevels[4],
Npp32s  nLowerLevel[4],
Npp32s  nUpperLevel[4],
Npp8u pBuffer 
)

4 channel 8-bit unsigned histogram with evenly distributed bins.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Array of pointers which are receiving computed histograms per color channel. Array pointed by pHist[i] be of size nLevels[i]-1.
nLevels Array containing number of levels per color channel.
nLowerLevel Array containing lower-level of lowest bin per color channel.
nUpperLevel Array containing upper-level of highest bin per color channel.
pBuffer Pointer to appropriately sized (nppiHistogramEvenGetBufferSize_8u_C4R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramEvenGetBufferSize_16s_AC4R ( NppiSize  oSizeROI,
int  nLevels[3],
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramEven_16s_AC4R.

Parameters:
oSizeROI ROI size.
nLevels Array containing number of levels per color channel.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramEvenGetBufferSize_16s_C1R ( NppiSize  oSizeROI,
int  nLevels,
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramEven_16s_C1R.

Parameters:
oSizeROI Region-of-Interest (ROI).
nLevels Number of levels in the histogram.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramEvenGetBufferSize_16s_C4R ( NppiSize  oSizeROI,
int  nLevels[4],
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramEven_16s_C4R.

Parameters:
oSizeROI ROI size.
nLevels Array containing number of levels per color channel.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramEvenGetBufferSize_16u_AC4R ( NppiSize  oSizeROI,
int  nLevels[3],
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramEven_16u_AC4R.

Parameters:
oSizeROI ROI size.
nLevels Array containing number of levels per color channel.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramEvenGetBufferSize_16u_C1R ( NppiSize  oSizeROI,
int  nLevels,
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramEven_16u_C1R.

Parameters:
oSizeROI Region-of-Interest (ROI).
nLevels Number of levels in the histogram.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramEvenGetBufferSize_16u_C4R ( NppiSize  oSizeROI,
int  nLevels[4],
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramEven_16u_C4R.

Parameters:
oSizeROI ROI size.
nLevels Array containing number of levels per color channel.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramEvenGetBufferSize_8u_AC4R ( NppiSize  oSizeROI,
int  nLevels[3],
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramEven_8u_AC4R.

Parameters:
oSizeROI ROI size.
nLevels Array containing number of levels per color channel.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramEvenGetBufferSize_8u_C1R ( NppiSize  oSizeROI,
int  nLevels,
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramEven_8u_C1R.

Parameters:
oSizeROI Region-of-Interest (ROI).
nLevels Number of levels in the histogram.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramEvenGetBufferSize_8u_C4R ( NppiSize  oSizeROI,
int  nLevels[4],
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramEven_8u_C4R.

Parameters:
oSizeROI ROI size.
nLevels Array containing number of levels per color channel.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramRange_16s_AC4R ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist[3],
const Npp32s pLevels[3],
int  nLevels[3],
Npp8u pBuffer 
)

4 channel (alpha as a last channel) 16-bit signed histogram with bins determined by pLevels.

Alpha channel is ignored during the histograms computations.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Array of pointers which are receiving the computed histograms per color channel. Array pointed by pHist[i] must be of size nLevels[i]-1.
nLevels Array containing number of levels per color channel.
pLevels Array containing pointers to level-arrays per color channel. Array pointed by pLevel[i] must be of size nLevels[i].
pBuffer Pointer to appropriately sized (nppiHistogramRangeGetBufferSize_16_AC4R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramRange_16s_C1R ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist,
const Npp32s pLevels,
int  nLevels,
Npp8u pBuffer 
)

16-bit signed histogram with bins determined by pLevels array.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Pointer to array that receives the computed histogram. The array must be of size nLevels-1.
pLevels Pointer to array containing the level sizes of the bins. The array must be of size nLevels.
nLevels Number of levels in histogram.
pBuffer Pointer to appropriately sized (nppiHistogramRangeGetBufferSize_16_C1R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramRange_16s_C4R ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist[4],
const Npp32s pLevels[4],
int  nLevels[4],
Npp8u pBuffer 
)

4 channel 16-bit signed histogram with bins determined by pLevels.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Array of pointers which are receiving the computed histograms per color channel. Array pointed by pHist[i] must be of size nLevels[i]-1.
nLevels Array containing number of levels per color channel.
pLevels Array containing pointers to level-arrays per color channel. Array pointed by pLevel[i] must be of size nLevels[i].
pBuffer Pointer to appropriately sized (nppiHistogramRangeGetBufferSize_16s_C4R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramRange_16u_AC4R ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist[3],
const Npp32s pLevels[3],
int  nLevels[3],
Npp8u pBuffer 
)

4 channel (alpha as a last channel) 16-bit unsigned histogram with bins determined by pLevels.

Alpha channel is ignored during the histograms computations.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Array of pointers which are receiving the computed histograms per color channel. Array pointed by pHist[i] must be of size nLevels[i]-1.
nLevels Array containing number of levels per color channel.
pLevels Array containing pointers to level-arrays per color channel. Array pointed by pLevel[i] must be of size nLevels[i].
pBuffer Pointer to appropriately sized (nppiHistogramRangeGetBufferSize_16u_AC4R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramRange_16u_C1R ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist,
const Npp32s pLevels,
int  nLevels,
Npp8u pBuffer 
)

16-bit unsigned histogram with bins determined by pLevels array.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Pointer to array that receives the computed histogram. The array must be of size nLevels-1.
pLevels Pointer to array containing the level sizes of the bins. The array must be of size nLevels.
nLevels Number of levels in histogram.
pBuffer Pointer to appropriately sized (nppiHistogramRangeGetBufferSize_16u_C1R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramRange_16u_C4R ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist[4],
const Npp32s pLevels[4],
int  nLevels[4],
Npp8u pBuffer 
)

4 channel 16-bit unsigned histogram with bins determined by pLevels.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Array of pointers which are receiving the computed histograms per color channel. Array pointed by pHist[i] must be of size nLevels[i]-1.
nLevels Array containing number of levels per color channel.
pLevels Array containing pointers to level-arrays per color channel. Array pointed by pLevel[i] must be of size nLevels[i].
pBuffer Pointer to appropriately sized (nppiHistogramRangeGetBufferSize_16u_C4R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramRange_32f_AC4R ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist[3],
const Npp32f pLevels[3],
int  nLevels[3],
Npp8u pBuffer 
)

4 channel (alpha as a last channel) 32-bit float histogram with bins determined by pLevels.

Alpha channel is ignored during the histograms computations.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Array of pointers which are receiving the computed histograms per color channel. Array pointed by pHist[i] must be of size nLevels[i]-1.
nLevels Array containing number of levels per color channel.
pLevels Array containing pointers to level-arrays per color channel. Array pointed by pLevel[i] must be of size nLevels[i].
pBuffer Pointer to appropriately sized (nppiHistogramRangeGetBufferSize_32f_AC4R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramRange_32f_C1R ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist,
const Npp32f pLevels,
int  nLevels,
Npp8u pBuffer 
)

32-bit float histogram with bins determined by pLevels array.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Pointer to array that receives the computed histogram. The array must be of size nLevels-1.
pLevels Pointer to array containing the level sizes of the bins. The array must be of size nLevels.
nLevels Number of levels in histogram.
pBuffer Pointer to appropriately sized (nppiHistogramRangeGetBufferSize_32f_C1R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramRange_32f_C4R ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist[4],
const Npp32f pLevels[4],
int  nLevels[4],
Npp8u pBuffer 
)

4 channel 32-bit float histogram with bins determined by pLevels.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Array of pointers which are receiving the computed histograms per color channel. Array pointed by pHist[i] must be of size nLevels[i]-1.
nLevels Array containing number of levels per color channel.
pLevels Array containing pointers to level-arrays per color channel. Array pointed by pLevel[i] must be of size nLevels[i].
pBuffer Pointer to appropriately sized (nppiHistogramRangeGetBufferSize_32f_C4R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramRange_8u_AC4R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist[3],
const Npp32s pLevels[3],
int  nLevels[3],
Npp8u pBuffer 
)

4 channel (alpha as a last channel) 8-bit unsigned histogram with bins determined by pLevels.

Alpha channel is ignored during the histograms computations.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Array of pointers which are receiving the computed histograms per color channel. Array pointed by pHist[i] must be of size nLevels[i]-1.
nLevels Array containing number of levels per color channel.
pLevels Array containing pointers to level-arrays per color channel. Array pointed by pLevel[i] must be of size nLevels[i].
pBuffer Pointer to appropriately sized (nppiHistogramRangeGetBufferSize_8u_AC4R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramRange_8u_C1R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist,
const Npp32s pLevels,
int  nLevels,
Npp8u pBuffer 
)

8-bit unsigned histogram with bins determined by pLevels array.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Pointer to array that receives the computed histogram. The array must be of size nLevels-1.
pLevels Pointer to array containing the level sizes of the bins. The array must be of size nLevels.
nLevels Number of levels in histogram.
pBuffer Pointer to appropriately sized (nppiHistogramRangeGetBufferSize_8u_C1R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramRange_8u_C4R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pHist[4],
const Npp32s pLevels[4],
int  nLevels[4],
Npp8u pBuffer 
)

4 channel 8-bit unsigned histogram with bins determined by pLevels.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pHist Array of pointers which are receiving the computed histograms per color channel. Array pointed by pHist[i] must be of size nLevels[i]-1.
nLevels Array containing number of levels per color channel.
pLevels Array containing pointers to level-arrays per color channel. Array pointed by pLevel[i] must be of size nLevels[i].
pBuffer Pointer to appropriately sized (nppiHistogramRangeGetBufferSize_8u_C4R) scratch buffer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiHistogramRangeGetBufferSize_16s_AC4R ( NppiSize  oSizeROI,
int  nLevels[3],
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramRange_16s_AC4R.

Parameters:
oSizeROI ROI size.
nLevels Array containing number of levels per color channel.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramRangeGetBufferSize_16s_C1R ( NppiSize  oSizeROI,
int  nLevels,
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramRange_16s_C1R.

Parameters:
oSizeROI Region-of-Interest (ROI).
nLevels Number of levels in the histogram.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramRangeGetBufferSize_16s_C4R ( NppiSize  oSizeROI,
int  nLevels[4],
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramRange_16s_C4R.

Parameters:
oSizeROI ROI size.
nLevels Array containing number of levels per color channel.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramRangeGetBufferSize_16u_AC4R ( NppiSize  oSizeROI,
int  nLevels[3],
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramRange_16u_AC4R.

Parameters:
oSizeROI ROI size.
nLevels Array containing number of levels per color channel.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramRangeGetBufferSize_16u_C1R ( NppiSize  oSizeROI,
int  nLevels,
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramRange_16u_C1R.

Parameters:
oSizeROI Region-of-Interest (ROI).
nLevels Number of levels in the histogram.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramRangeGetBufferSize_16u_C4R ( NppiSize  oSizeROI,
int  nLevels[4],
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramRange_16u_C4R.

Parameters:
oSizeROI ROI size.
nLevels Array containing number of levels per color channel.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramRangeGetBufferSize_32f_AC4R ( NppiSize  oSizeROI,
int  nLevels[3],
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramRange_32f_AC4R.

Parameters:
oSizeROI ROI size.
nLevels Array containing number of levels per color channel.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramRangeGetBufferSize_32f_C1R ( NppiSize  oSizeROI,
int  nLevels,
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramRange_32f_C1R.

Parameters:
oSizeROI Region-of-Interest (ROI).
nLevels Number of levels in the histogram.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramRangeGetBufferSize_32f_C4R ( NppiSize  oSizeROI,
int  nLevels[4],
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramRange_32f_C4R.

Parameters:
oSizeROI ROI size.
nLevels Array containing number of levels per color channel.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramRangeGetBufferSize_8u_AC4R ( NppiSize  oSizeROI,
int  nLevels[3],
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramRange_8u_AC4R.

Parameters:
oSizeROI ROI size.
nLevels Array containing number of levels per color channel.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramRangeGetBufferSize_8u_C1R ( NppiSize  oSizeROI,
int  nLevels,
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramRange_8u_C1R.

Parameters:
oSizeROI Region-of-Interest (ROI).
nLevels Number of levels in the histogram.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiHistogramRangeGetBufferSize_8u_C4R ( NppiSize  oSizeROI,
int  nLevels[4],
int *  hpBufferSize 
)

Scratch-buffer size for nppiHistogramRange_8u_C4R.

Parameters:
oSizeROI ROI size.
nLevels Array containing number of levels per color channel.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiLn_32f_C1R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

NppStatus nppiLUT_Linear_8u_AC4R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp32s pValues[4],
const Npp32s pLevels[4],
int  nLevels[4] 
)

4 channel 8-bit unsigned look-up-table color conversion, not affecting Alpha.

The LUT is derived from a set of user defined mapping points through linear interpolation. Alpha channel is the last channel and is not processed.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pValues Double pointer to an [4] of arrays of user defined OUTPUT values per CHANNEL
pLevels Double pointer to an [4] of arrays of user defined INPUT values per CHANNEL
nLevels A [4] array of user defined input/output mapping points (levels) per CHANNEL
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiLUT_Linear_8u_C1R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp32s pValues,
const Npp32s pLevels,
int  nLevels 
)

8-bit unsigned look-up-table color conversion.

The LUT is derived from a set of user defined mapping points through linear interpolation.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pValues Pointer to an array of user defined OUTPUT values
pLevels Pointer to an array of user defined INPUT values
nLevels Number of user defined input/output mapping points (levels)
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiLUT_Linear_8u_C3R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp32s pValues[3],
const Npp32s pLevels[3],
int  nLevels[3] 
)

3 channel 8-bit unsigned look-up-table color conversion.

The LUT is derived from a set of user defined mapping points through linear interpolation.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pValues Double pointer to an [3] of arrays of user defined OUTPUT values per CHANNEL
pLevels Double pointer to an [3] of arrays of user defined INPUT values per CHANNEL
nLevels A [3] array of user defined input/output mapping points (levels) per CHANNEL
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiMagnitude_32fc32f_C1R ( const Npp32fc pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit floating point complex to 32-bit floating point magnitude.

Converts complex-number pixel image to single channel image computing the result pixels as the magnitude of the complex values.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiMagnitudeSqr_32fc32f_C1R ( const Npp32fc pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit floating point complex to 32-bit floating point squared magnitude.

Converts complex-number pixel image to single channel image computing the result pixels as the squared magnitude of the complex values.

The squared magnitude is an itermediate result of magnitude computation and can thus be computed faster than actual magnitude. If magnitudes are required for sorting/comparing only, using this function instead of nppiMagnitude_32fc32f_C1R can be a worthwhile performance optimization.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

Npp16s* nppiMalloc_16s_C1 ( int  nWidthPixels,
int  nHeightPixels,
int *  pStepBytes 
)

16-bit signed image memory allocator.

Parameters:
nWidthPixels Image width.
nHeightPixels Image height.
pStepBytes Line Step.
Returns:
Pointer to new image data. 0 (null-pointer) indicates allocation failure.

Npp16s* nppiMalloc_16s_C4 ( int  nWidthPixels,
int  nHeightPixels,
int *  pStepBytes 
)

4 channel 16-bit signed image memory allocator.

Parameters:
nWidthPixels Image width.
nHeightPixels Image height.
pStepBytes Line Step.
Returns:
Pointer to new image data. 0 (null-pointer) indicates allocation failure.

Npp16u* nppiMalloc_16u_C1 ( int  nWidthPixels,
int  nHeightPixels,
int *  pStepBytes 
)

16-bit unsigned image memory allocator.

Parameters:
nWidthPixels Image width.
nHeightPixels Image height.
pStepBytes Line Step.
Returns:
Pointer to new image data. 0 (null-pointer) indicates allocation failure.

Npp16u* nppiMalloc_16u_C3 ( int  nWidthPixels,
int  nHeightPixels,
int *  pStepBytes 
)

3 channel 16-bit unsigned image memory allocator.

Parameters:
nWidthPixels Image width.
nHeightPixels Image height.
pStepBytes Line Step.
Returns:
Pointer to new image data. 0 (null-pointer) indicates allocation failure.

Npp16u* nppiMalloc_16u_C4 ( int  nWidthPixels,
int  nHeightPixels,
int *  pStepBytes 
)

4 channel 16-bit unsigned image memory allocator.

Parameters:
nWidthPixels Image width.
nHeightPixels Image height.
pStepBytes Line Step.
Returns:
Pointer to new image data. 0 (null-pointer) indicates allocation failure.

Npp32f* nppiMalloc_32f_C1 ( int  nWidthPixels,
int  nHeightPixels,
int *  pStepBytes 
)

32-bit floating point image memory allocator.

Parameters:
nWidthPixels Image width.
nHeightPixels Image height.
pStepBytes Line Step.
Returns:
Pointer to new image data. 0 (null-pointer) indicates allocation failure.

Npp32f* nppiMalloc_32f_C2 ( int  nWidthPixels,
int  nHeightPixels,
int *  pStepBytes 
)

2 channel 32-bit floating point image memory allocator.

Parameters:
nWidthPixels Image width.
nHeightPixels Image height.
pStepBytes Line Step.
Returns:
Pointer to new image data. 0 (null-pointer) indicates allocation failure.

Npp32f* nppiMalloc_32f_C3 ( int  nWidthPixels,
int  nHeightPixels,
int *  pStepBytes 
)

3 channel 32-bit floating point image memory allocator.

Parameters:
nWidthPixels Image width.
nHeightPixels Image height.
pStepBytes Line Step.
Returns:
Pointer to new image data. 0 (null-pointer) indicates allocation failure.

Npp32f* nppiMalloc_32f_C4 ( int  nWidthPixels,
int  nHeightPixels,
int *  pStepBytes 
)

4 channel 32-bit floating point image memory allocator.

Parameters:
nWidthPixels Image width.
nHeightPixels Image height.
pStepBytes Line Step.
Returns:
Pointer to new image data. 0 (null-pointer) indicates allocation failure.

Npp32s* nppiMalloc_32s_C1 ( int  nWidthPixels,
int  nHeightPixels,
int *  pStepBytes 
)

32-bit signed image memory allocator.

Parameters:
nWidthPixels Image width.
nHeightPixels Image height.
pStepBytes Line Step.
Returns:
Pointer to new image data. 0 (null-pointer) indicates allocation failure.

Npp32s* nppiMalloc_32s_C3 ( int  nWidthPixels,
int  nHeightPixels,
int *  pStepBytes 
)

3 channel 32-bit signed image memory allocator.

Parameters:
nWidthPixels Image width.
nHeightPixels Image height.
pStepBytes Line Step.
Returns:
Pointer to new image data. 0 (null-pointer) indicates allocation failure.

Npp32s* nppiMalloc_32s_C4 ( int  nWidthPixels,
int  nHeightPixels,
int *  pStepBytes 
)

4 channel 32-bit signed image memory allocator.

Parameters:
nWidthPixels Image width.
nHeightPixels Image height.
pStepBytes Line Step.
Returns:
Pointer to new image data. 0 (null-pointer) indicates allocation failure.

Npp8u* nppiMalloc_8u_C1 ( int  nWidthPixels,
int  nHeightPixels,
int *  pStepBytes 
)

8-bit unsigned image memory allocator.

Parameters:
nWidthPixels Image width.
nHeightPixels Image height.
pStepBytes Line Step.
Returns:
Pointer to new image data. 0 (null-pointer) indicates allocation failure.

Npp8u* nppiMalloc_8u_C2 ( int  nWidthPixels,
int  nHeightPixels,
int *  pStepBytes 
)

2 channel 8-bit unsigned image memory allocator.

Parameters:
nWidthPixels Image width.
nHeightPixels Image height.
pStepBytes Line Step.
Returns:
Pointer to new image data. 0 (null-pointer) indicates allocation failure.

Npp8u* nppiMalloc_8u_C3 ( int  nWidthPixels,
int  nHeightPixels,
int *  pStepBytes 
)

3 channel 8-bit unsigned image memory allocator.

Parameters:
nWidthPixels Image width.
nHeightPixels Image height.
pStepBytes Line Step.
Returns:
Pointer to new image data. 0 (null-pointer) indicates allocation failure.

Npp8u* nppiMalloc_8u_C4 ( int  nWidthPixels,
int  nHeightPixels,
int *  pStepBytes 
)

4 channel 8-bit unsigned image memory allocator.

Parameters:
nWidthPixels Image width.
nHeightPixels Image height.
pStepBytes Line Step.
Returns:
Pointer to new image data. 0 (null-pointer) indicates allocation failure.

NppStatus nppiMean_StdDev_8u_C1R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp64f pMean,
Npp64f pStdDev 
)

8-bit unsigned mean standard deviation.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMean Contains computed mean. This is a host pointer.
pStdDev Contains computed standard deviation. This is a host pointer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiMinMax_8u_C1R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pMin,
Npp8u pMax 
)

8-bit unsigned pixel minimum and maximum.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMin Host-memory pointer receiving the minimum result.
pMax Host-memory pointer receiving the maximum result.
Returns:
Image Data Related Error Codes, ROI Related Error Codes
Note:
This primitive returns the min/max results in HOST POINTERS.

NppStatus nppiMinMax_8u_C4R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u  cuMin[4],
Npp8u  cuMax[4] 
)

4 channel 8-bit unsigned pixel minimum and maximum.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
cuMin Device-pointer (array) receiving the minimum result.
cuMax Device-pointer (array) receiving the maximum result.
Returns:
Image Data Related Error Codes, ROI Related Error Codes
Note:
Unlike nppiMinMax_8u_C1R, this primitive returns its results as device pointers.

NppStatus nppiMirror_8u_C1R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oROI,
NppiAxis  flip 
)

8-bit unsigned image mirror.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oROI Region-of-Interest (ROI).
flip Specifies the axis about which the image is to be mirrored.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiMirror_8u_C4R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oROI,
NppiAxis  flip 
)

4 channel 8-bit unsigned image mirror.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Distance in bytes between starts of consecutive lines of the destination image.
oROI Region-of-Interest (ROI).
flip Specifies the axis about which the image is to be mirrored.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiMul_32f_C1R ( const Npp32f pSrc1,
int  nSrc1Step,
const Npp32f pSrc2,
int  nSrc2Step,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 32-bit floating point image multiplication.

Multiply corresponding pixels in ROI.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiMul_32s_C1R ( const Npp32s pSrc1,
int  nSrc1Step,
const Npp32s pSrc2,
int  nSrc2Step,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 32-bit image multiplication.

Multiply corresponding pixels in ROI.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiMul_8u_AC4RSfs ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
int  nScaleFactor 
)

4 channel 8-bit unsigned image multiplication, not affecting Alpha.

Multiply corresponding pixels in ROI.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nScaleFactor Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiMul_8u_C1RSfs ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
int  nScaleFactor 
)

8-bit unsigned image multiplication.

Multiply the pixel values of corresponding pixels in the ROI and write them to the output image.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nScaleFactor Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiMul_8u_C4RSfs ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
int  nScaleFactor 
)

4 channel 8-bit unsigned image multiplication.

Multiply corresponding pixels in ROI.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nScaleFactor Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiMulC_32f_C1R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f  nValue,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit floating point image multiply constant.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nValue Constant.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiMulC_32fc_C1R ( const Npp32fc pSrc,
int  nSrcStep,
Npp32fc  nValue,
Npp32fc pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit complex floating point image multiply constant.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nValue Constant.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiNormDiff_Inf_8u_C1R ( const Npp8u pSrc1,
int  nSrcStep1,
const Npp8u pSrc2,
int  nSrcStep2,
NppiSize  oSizeROI,
Npp64f pRetVal 
)

8-bit unsigned Infinity Norm of pixel differences.

Parameters:
pSrc1 Source-Image Pointer.
nSrcStep1 Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrcStep2 Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
*pRetVal Contains computed L1-norm of differences. This is a host pointer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiNormDiff_L1_8u_C1R ( const Npp8u pSrc1,
int  nSrcStep1,
const Npp8u pSrc2,
int  nSrcStep2,
NppiSize  oSizeROI,
Npp64f pRetVal 
)

8-bit unsigned L1 norm of pixel differences.

Parameters:
pSrc1 Source-Image Pointer.
nSrcStep1 Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrcStep2 Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pRetVal Contains computed L1-norm of differences. This is a host pointer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiNormDiff_L2_8u_C1R ( const Npp8u pSrc1,
int  nSrcStep1,
const Npp8u pSrc2,
int  nSrcStep2,
NppiSize  oSizeROI,
Npp64f pRetVal 
)

8-bit unsigned L2 norm of pixel differences.

Parameters:
pSrc1 Source-Image Pointer.
nSrcStep1 Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrcStep2 Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pRetVal Contains computed L1-norm of differences. This is a host pointer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiQuantFwdRawTableInit_JPEG_8u ( Npp8u pQuantRawTable,
int  nQualityFactor 
)

Converts regular quantization tables with the quality factor.

Parameters:
pQuantRawTable Raw quantization table.
nQualityFactor Quality factor for the table. Range is [1:100].
Returns:
NPP_NULL_POINTER_ERROR pQuantRawTable is a null pointer.

NppStatus nppiQuantFwdTableInit_JPEG_8u16u ( const Npp8u pQuantRawTable,
Npp16u pQuantFwdRawTable 
)

Converts raw quantization table to a forward quantization table.

Parameters:
pQuantRawTable Raw quantization table.
pQuantFwdRawTable Forward quantization table.
Returns:
NPP_NULL_POINTER_ERROR pQuantRawTable is a null pointer.

NppStatus nppiQuantInvTableInit_JPEG_8u16u ( const Npp8u pQuantRawTable,
Npp16u pQuantFwdRawTable 
)

Converts raw quantization table to an inverse quantization table.

Parameters:
pQuantRawTable Raw quantization table.
pQuantFwdRawTable Inverse quantization table.
Returns:
NPP_NULL_POINTER_ERROR pQuantRawTable or pQuantFwdRawTable is a null pointer.

NppStatus nppiRectStdDev_32s32f_C1R ( const Npp32s pSrc,
int  nSrcStep,
const Npp32f pSqr,
int  nSqrStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppiRect  rect 
)

RectStdDev Computes the standard deviation of integral images.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pSqr Destination-Image Pointer.
nSqrStep Destination-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
rect rectangular window
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiReductionGetBufferHostSize_8u_C1R ( const NppiSize oSizeROI,
int *  hpBufferSize 
)

Scratch-buffer size for nppiSum_8u_C1R.

Parameters:
oSizeROI ROI size.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiReductionGetBufferHostSize_8u_C4R ( const NppiSize oSizeROI,
int *  hpBufferSize 
)

Scratch-buffer size for nppiSum_8u_C4R.

Parameters:
oSizeROI ROI size.
hpBufferSize Host pointer where required buffer size is returned.
Returns:
Error Code.

NppStatus nppiResize_8u_C1R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcROI,
Npp8u pDst,
int  nDstStep,
NppiSize  dstROISize,
double  xFactor,
double  yFactor,
int  interpolation 
)

8-bit unsigned image resize.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
srcSize Size in pixels of the source image
srcROI Region of interest in the source image.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstROISize Size in pixels of the destination image
xFactor Factors by which x dimension is changed
yFactor Factors by which y dimension is changed
interpolation The type of interpolation to perform resampling
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiResize_8u_C4R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcROI,
Npp8u pDst,
int  nDstStep,
NppiSize  dstROISize,
double  xFactor,
double  yFactor,
int  interpolation 
)

4 channel 8-bit unsigned image resize.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
srcSize Size in pixels of the source image
srcROI Region of interest in the source image.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstROISize Size in pixels of the destination image
xFactor Factors by which x dimension is changed
yFactor Factors by which y dimension is changed
interpolation The type of interpolation to perform resampling
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiRGBToYCbCr420_8u_C3P3R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u **  pDst,
int  nDstStep[3],
NppiSize  oSizeROI 
)

3 channel 8-bit unsigned packed RGB to planar YCbCr420 color conversion.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiRGBToYCbCr422_8u_C3C2R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

3 channel 8-bit unsigned RGB to 2 channel chroma packed YCbCr422 color conversion.

images.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiRGBToYCbCr_8u_AC4R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 8-bit unsigned RGB to YCbCr color conversion, ignoring Alpha.

Alpha channel is the last channel and is not processed.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiRGBToYCbCr_8u_C3R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

3 channel 8-bit unsigned packed RGB to packed YCbCr color conversion.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiRGBToYCbCr_8u_P3R ( const Npp8u *const *  pSrc,
int  nSrcStep,
Npp8u **  pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

3 channel planar 8-bit unsigned RGB to YCbCr color conversion.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiRotate_8u_C1R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcROI,
Npp8u pDst,
int  nDstStep,
NppiRect  dstROI,
double  angle,
double  xShift,
double  yShift,
int  interpolation 
)

8-bit unsigned image rotate.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
srcSize Size in pixels of the source image
srcROI Region of interest in the source image.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstROI Region of interest in the destination image.
angle The angle of rotation in degrees.
xShift Shift along horizontal axis
yShift Shift along vertical axis
interpolation The type of interpolation to perform resampling
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiRotate_8u_C4R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcROI,
Npp8u pDst,
int  nDstStep,
NppiRect  dstROI,
double  angle,
double  xShift,
double  yShift,
int  interpolation 
)

4 channel 8-bit unsigned image rotate.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
srcSize Size in pixels of the source image
srcROI Region of interest in the source image.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstROI Region of interest in the destination image.
angle The angle of rotation in degrees.
xShift Shift along horizontal axis
yShift Shift along vertical axis
interpolation The type of interpolation to perform resampling
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_16s_AC4MR ( const Npp16s  aValues[3],
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
int  nMaskStep 
)

Masked 4 channel 16-bit image set method, not affecting Alpha channel.

For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

Parameters:
aValues Three-channel array containing the pixel-value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the mask image. This is a single channel 8-bit unsigned int image.
nMaskStep Number of bytes between line starts of successive lines in the mask image.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_16s_AC4R ( const Npp16s  aValues[3],
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 16-bit image set method, not affecting Alpha channel.

For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

Parameters:
aValues Three-channel array containing the pixel-value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_16s_C1MR ( Npp16s  nValue,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
int  nMaskStep 
)

Masked 16-bit image set.

Parameters:
nValue New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the mask image. This is a single channel 8-bit unsigned int image.
nMaskStep Number of bytes between line starts of successive lines in the mask image.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_16s_C1R ( Npp16s  nValue,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

16-bit image set.

Parameters:
nValue New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_16s_C2R ( const Npp16s  aValues[2],
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

2 channel 16-bit image set.

Parameters:
aValues New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_16s_C4CR ( Npp16s  nValue,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 16-bit unsigned image set affecting only single channel.

For RGBA images, this method allows setting of a single of the four (RGBA) values without changing the contents of the other three channels. The channel is selected via the pDst pointer. The pointer needs to point to the actual first value to be set, e.g. in order to set the R-channel (first channel), one would pass pDst unmodified, since its value actually points to the r channel. If one wanted to modify the B channel (second channel), one would pass pDst + 2 to the function.

Parameters:
nValue The pixel-value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_16s_C4MR ( const Npp16s  aValues[4],
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
int  nMaskStep 
)

Masked 4 channel 16-bit image set.

Parameters:
aValues New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the mask image. This is a single channel 8-bit unsigned int image.
nMaskStep Number of bytes between line starts of successive lines in the mask image.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_16s_C4R ( const Npp16s  aValues[4],
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 16-bit image set.

Parameters:
aValues New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_16u_AC4MR ( const Npp16u  aValues[3],
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
int  nMaskStep 
)

Masked 4 channel 16-bit unsigned image set method, not affecting Alpha channel.

For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

Parameters:
aValues Three-channel array containing the pixel-value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the mask image. This is a single channel 8-bit unsigned int image.
nMaskStep Number of bytes between line starts of successive lines in the mask image.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_16u_AC4R ( const Npp16u  aValues[3],
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 16-bit unsigned image set method, not affecting Alpha channel.

For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

Parameters:
aValues Three-channel array containing the pixel-value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_16u_C1MR ( Npp16u  nValue,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
int  nMaskStep 
)

Masked 16-bit unsigned image set.

Parameters:
nValue New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the mask image. This is a single channel 8-bit unsigned int image.
nMaskStep Number of bytes between line starts of successive lines in the mask image.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_16u_C1R ( Npp16u  nValue,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

16-bit unsigned image set.

Parameters:
nValue New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_16u_C2R ( const Npp16u  aValues[2],
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

2 channel 16-bit unsigned image set.

Parameters:
aValues New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_16u_C4CR ( Npp16u  nValue,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 16-bit unsigned image set affecting only single channel.

For RGBA images, this method allows setting of a single of the four (RGBA) values without changing the contents of the other three channels. The channel is selected via the pDst pointer. The pointer needs to point to the actual first value to be set, e.g. in order to set the R-channel (first channel), one would pass pDst unmodified, since its value actually points to the r channel. If one wanted to modify the B channel (second channel), one would pass pDst + 2 to the function.

Parameters:
nValue The pixel-value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_16u_C4MR ( const Npp16u  aValues[4],
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
int  nMaskStep 
)

Masked 4 channel 16-bit unsigned image set.

Parameters:
aValues New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the mask image. This is a single channel 8-bit unsigned int image.
nMaskStep Number of bytes between line starts of successive lines in the mask image.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_16u_C4R ( const Npp16u  aValues[4],
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 16-bit unsigned image set.

Parameters:
aValues New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_32f_AC4MR ( const Npp32f  aValues[3],
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
int  nMaskStep 
)

Masked 4 channel 32-bit floating point image set method, not affecting Alpha channel.

For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

Parameters:
aValues Three-channel array containing the pixel-value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the mask image. This is a single channel 8-bit unsigned int image.
nMaskStep Number of bytes between line starts of successive lines in the mask image.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_32f_AC4R ( const Npp32f  aValues[3],
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 32-bit floating point image set method, not affecting Alpha channel.

For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

Parameters:
aValues Three-channel array containing the pixel-value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_32f_C1MR ( Npp32f  nValue,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
int  nMaskStep 
)

Masked 32-bit floating point image set.

Parameters:
nValue New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the mask image. This is a single channel 8-bit unsigned int image.
nMaskStep Number of bytes between line starts of successive lines in the mask image.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_32f_C1R ( Npp32f  nValue,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit floating point image set.

Parameters:
nValue New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_32f_C4CR ( Npp32f  nValue,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 32-bit floating point image set affecting only single channel.

For RGBA images, this method allows setting of a single of the four (RGBA) values without changing the contents of the other three channels. The channel is selected via the pDst pointer. The pointer needs to point to the actual first value to be set, e.g. in order to set the R-channel (first channel), one would pass pDst unmodified, since its value actually points to the r channel. If one wanted to modify the B channel (second channel), one would pass pDst + 2 to the function.

Parameters:
nValue The pixel-value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_32f_C4MR ( const Npp32f  aValues[4],
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
int  nMaskStep 
)

Masked 4 channel 32-bit floating point image set.

Parameters:
aValues New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the mask image. This is a single channel 8-bit unsigned int image.
nMaskStep Number of bytes between line starts of successive lines in the mask image.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_32f_C4R ( const Npp32f  aValues[4],
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 32-bit floating point image set.

Parameters:
aValues New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_32s_AC4MR ( const Npp32s  aValues[3],
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
int  nMaskStep 
)

Masked 4 channel 16-bit image set method, not affecting Alpha channel.

For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

Parameters:
aValues Three-channel array containing the pixel-value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the mask image. This is a single channel 8-bit unsigned int image.
nMaskStep Number of bytes between line starts of successive lines in the mask image.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_32s_AC4R ( const Npp32s  aValues[3],
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 16-bit image set method, not affecting Alpha channel.

For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

Parameters:
aValues Three-channel array containing the pixel-value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_32s_C1MR ( Npp32s  nValue,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
int  nMaskStep 
)

Masked 32-bit image set.

Parameters:
nValue New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the mask image. This is a single channel 8-bit unsigned int image.
nMaskStep Number of bytes between line starts of successive lines in the mask image.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_32s_C1R ( Npp32s  nValue,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit image set.

Parameters:
nValue New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_32s_C4CR ( Npp32s  nValue,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 32-bit unsigned image set affecting only single channel.

For RGBA images, this method allows setting of a single of the four (RGBA) values without changing the contents of the other three channels. The channel is selected via the pDst pointer. The pointer needs to point to the actual first value to be set, e.g. in order to set the R-channel (first channel), one would pass pDst unmodified, since its value actually points to the r channel. If one wanted to modify the B channel (second channel), one would pass pDst + 2 to the function.

Parameters:
nValue The pixel-value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_32s_C4MR ( const Npp32s  aValues[4],
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
int  nMaskStep 
)

Masked 4 channel 32-bit image set.

Parameters:
aValues New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the mask image. This is a single channel 8-bit unsigned int image.
nMaskStep Number of bytes between line starts of successive lines in the mask image.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_32s_C4R ( const Npp32s  aValues[4],
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 32-bit image set.

Parameters:
aValues New pixel value.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_8u_AC4MR ( const Npp8u  aValues[3],
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
int  nMaskStep 
)

Masked 4 channel 8-bit unsigned image set method, not affecting Alpha channel.

For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

Parameters:
aValues Three-channel array containing the pixel-value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the mask image. This is a single channel 8-bit unsigned int image.
nMaskStep Number of bytes between line starts of successive lines in the mask image.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_8u_AC4R ( const Npp8u  aValues[3],
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 8-bit unsigned image set method, not affecting Alpha channel.

For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

Parameters:
aValues Three-channel array containing the pixel-value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_8u_C1MR ( Npp8u  nValue,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
int  nMaskStep 
)

Masked 8-bit unsigned image set.

The 8-bit mask image affects setting of the respective pixels in the destination image. If the mask value is zero (0) the pixel is not set, if the mask is non-zero, the corresponding destination pixel is set to specified value.

Parameters:
nValue The pixel value to be set.
pDst Pointer Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the mask image. This is a single channel 8-bit unsigned int image.
nMaskStep Number of bytes between line starts of successive lines in the mask image.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_8u_C1R ( Npp8u  nValue,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

8-bit unsigned image set.

Parameters:
nValue The pixel value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_8u_C4CR ( Npp8u  nValue,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 8-bit unsigned image set affecting only single channel.

For RGBA images, this method allows setting of a single of the four (RGBA) values without changing the contents of the other three channels. The channel is selected via the pDst pointer. The pointer needs to point to the actual first value to be set, e.g. in order to set the R-channel (first channel), one would pass pDst unmodified, since its value actually points to the r channel. If one wanted to modify the B channel (second channel), one would pass pDst + 2 to the function.

Parameters:
nValue The pixel-value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_8u_C4MR ( const Npp8u  aValues[4],
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u pMask,
int  nMaskStep 
)

Masked 4 channel 8-bit unsigned image set.

Parameters:
aValues Four-channel array containing the pixel-value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pMask Pointer to the mask image. This is a single channel 8-bit unsigned int image.
nMaskStep Number of bytes between line starts of successive lines in the mask image.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSet_8u_C4R ( const Npp8u  aValues[4],
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 8-bit unsigned image set.

Parameters:
aValues Four-channel array containing the pixel-value to be set.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSetDefaultQuantTable ( Npp8u pQuantRawTable,
int  tableIndex 
)

Fills out the quantization table with either luminance and chrominance tables for JPEG.

Parameters:
pQuantRawTable Raw quantization table.
tableIndex Choice for Luminance (tableIndex is 0) or Chrominance component (tableIndex is 1).
Returns:
Error codes:

NppStatus nppiSqrIntegral_8u32s32f_C1R ( Npp8u pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
Npp32f pSqr,
int  nSqrStep,
NppiSize  srcROI,
Npp32s  val,
Npp32f  valSqr,
Npp32s  integralImageNewHeight 
)

SqrIntegral Transforms an image to integral and integral of pixel squares representation.

This function assumes that the integral and integral of squares images.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
pSqr Destination-Image Pointer.
nSqrStep Destination-Image Line Step.
srcROI Region-of-Interest (ROI).
val The value to add to pDst image pixels
valSqr The value to add to pSqr image pixels
integralImageNewHeight Extended height of output surfaces (needed by transpose in primitive)
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSub_32f_C1R ( const Npp32f pSrc1,
int  nSrc1Step,
const Npp32f pSrc2,
int  nSrc2Step,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit floating point image subtraction.

Subtract pSrc1's pixels from corresponding pixels in pSrc2.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSub_32s_C1R ( const Npp32s pSrc1,
int  nSrc1Step,
const Npp32s pSrc2,
int  nSrc2Step,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit image subtraction.

Subtract pSrc1's pixels from corresponding pixels in pSrc2.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSub_8u_AC4RSfs ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
int  nScaleFactor 
)

4 channel 8-bit unsigned image subtraction, not affecting Alpha.

Subtract pSrc1's pixels from corresponding pixels in pSrc2.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nScaleFactor Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSub_8u_C1RSfs ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
int  nScaleFactor 
)

8-bit unsigned image subtraction.

Subtract the pixel values of corresponding pixels in the ROI and write them to the output image.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nScaleFactor Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSub_8u_C4RSfs ( const Npp8u pSrc1,
int  nSrc1Step,
const Npp8u pSrc2,
int  nSrc2Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
int  nScaleFactor 
)

4 channel 8-bit unsigned image subtraction.

Subtract pSrc1's pixels from corresponding pixels in pSrc2.

Parameters:
pSrc1 Source-Image Pointer.
nSrc1Step Source-Image Line Step.
pSrc2 Source-Image Pointer.
nSrc2Step Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nScaleFactor Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSubC_32f_C1R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f  nValue,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit floating point image subtract constant.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nValue Constant.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSubC_32fc_C1R ( const Npp32fc pSrc,
int  nSrcStep,
Npp32fc  nValue,
Npp32fc pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

32-bit complex floating point image subtract constant.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nValue Constant.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSum_8u_C1R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pDeviceBuffer,
Npp64f pSum 
)

8-bit unsigned image sum.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer Pointer to the required device memory allocation.
*pSum Contains computed sum. This is a host pointer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSum_8u_C4R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp32s pDeviceBuffer,
Npp64f  aSum[4] 
)

4 channel 8-bit unsigned image sum.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
oSizeROI Region-of-Interest (ROI).
pDeviceBuffer Pointer to the required device memory allocation.
aSum Array contains computed sum for each channel. This is a host pointer.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSumWindowColumn_8u32f_C1R ( const Npp8u pSrc,
Npp32s  nSrcStep,
Npp32f pDst,
Npp32s  nDstStep,
NppiSize  oROI,
Npp32s  nMaskSize,
Npp32s  nAnchor 
)

8-bit unsigned 1D (column) sum to 32f.

Apply Column Window Summation filter over a 1D mask region around each source pixel for 1-channel 8 bit/pixel input images with 32-bit floating point output. Result 32-bit floating point pixel is equal to the sum of the corresponding and neighboring column pixel values in a mask region of the source image defined by nMaskSize and nAnchor.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oROI Region-of-Interest (ROI).
nMaskSize Length of the linear kernel array.
nAnchor Y offset of the kernel origin frame of reference w.r.t the source pixel.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSumWindowRow_8u32f_C1R ( const Npp8u pSrc,
Npp32s  nSrcStep,
Npp32f pDst,
Npp32s  nDstStep,
NppiSize  oROI,
Npp32s  nMaskSize,
Npp32s  nAnchor 
)

8-bit unsigned 1D (row) sum to 32f.

Apply Row Window Summation filter over a 1D mask region around each source pixel for 1-channel 8-bit pixel input images with 32-bit floating point output. Result 32-bit floating point pixel is equal to the sum of the corresponding and neighboring row pixel values in a mask region of the source image defined by iKernelDim and iAnchorX.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oROI Region-of-Interest (ROI).
nMaskSize Length of the linear kernel array.
nAnchor X offset of the kernel origin frame of reference w.r.t the source pixel.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiSwapChannels_8u_C4IR ( Npp8u pSrcDst,
int  nSrcDstStep,
NppiSize  oSizeROI,
const int  aDstOrder[4] 
)

4 channel 8-bit unsigned swap channels, in-place.

Parameters:
pSrcDst In-Place Image Pointer.
nSrcDstStep In-Place Line Step.
oSizeROI Region-of-Interest (ROI).
aDstOrder Integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGBA image, aDstOrder = [3,2,1,0] converts this to ABGR channel order.
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiThreshold_32f_C1R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI,
Npp32f  nThreshold,
NppCmpOp  eComparisonOperation 
)

32-bit floating point threshold.

If for a comparison operations OP the predicate (sourcePixel OP nThreshold) is true, the pixel is set to nThreshold, otherwise it is set to sourcePixel.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
nThreshold The threshold value.
eComparisonOperation The type of comparison operation to be used. The only valid values are: NPP_CMP_LESS and NPP_CMP_GREATER.
Returns:
Image Data Related Error Codes, ROI Related Error Codes, or NPP_NOT_SUPPORTED_MODE_ERROR if an invalid comparison operation type is specified.

NppStatus nppiThreshold_8u_AC4R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
const Npp8u  aThresholds[3],
NppCmpOp  eComparisonOperation 
)

4 channel 8-bit unsigned image threshold, not affecting Alpha.

If for a comparison operations OP the predicate (sourcePixel.channel OP nThreshold) is true, the channel value is set to nThreshold, otherwise it is set to sourcePixel.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
aThresholds The threshold values, one per color channel.
eComparisonOperation The type of comparison operation to be used. The only valid values are: NPP_CMP_LESS and NPP_CMP_GREATER.
Returns:
Image Data Related Error Codes, ROI Related Error Codes, or NPP_NOT_SUPPORTED_MODE_ERROR if an invalid comparison operation type is specified.

NppStatus nppiTranspose_8u_C1R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oROI 
)

8-bit image transpose.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Pointer to the destination ROI.
nDstStep Destination-Image Line Step.
oROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpAffine_16u_AC4R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (16bit unsigned integer, four channels RGBA).

See also:
nppiWarpAffine_16u_C1R

NppStatus nppiWarpAffine_16u_C1R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (16bit unsigned integer, single channel).

This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. The function operates on source and destination regions of interest. The affine warp function transforms the source image pixel coordinates $(x,y)$ according to the following formulas:

\[ X_{new} = C_{00} * x + C_{01} * y + C_{02} \qquad Y_{new} = C_{10} * x + C_{11} * y + C_{12} \qquad \]

The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.

NPPI specific recommendation: The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but does not perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values (int)((void *)(pDst + dstRoi.x)) and (int)((void *)(pDst + dstRoi.x + dstRoi.width)) are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
coeffs Affine transform coefficients
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpAffine_16u_C3R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (16bit unsigned integer, three channels).

See also:
nppiWarpAffine_16u_C1R

NppStatus nppiWarpAffine_16u_C4R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (16bit unsigned integer, four channels).

See also:
nppiWarpAffine_16u_C1R

NppStatus nppiWarpAffine_16u_P3R ( const Npp16u pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (16bit unsigned integer, three planes).

See also:
nppiWarpAffine_16u_C1R

NppStatus nppiWarpAffine_16u_P4R ( const Npp16u pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (16bit unsigned integer, four planes).

See also:
nppiWarpAffine_16u_C1R

NppStatus nppiWarpAffine_32f_AC4R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (32bit float, four channels RGBA).

See also:
nppiWarpAffine_32f_C1R

NppStatus nppiWarpAffine_32f_C1R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (32bit float, single channel).

This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. The function operates on source and destination regions of interest. The affine warp function transforms the source image pixel coordinates $(x,y)$ according to the following formulas:

\[ X_{new} = C_{00} * x + C_{01} * y + C_{02} \qquad Y_{new} = C_{10} * x + C_{11} * y + C_{12} \qquad \]

The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
coeffs Affine transform coefficients
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpAffine_32f_C3R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (32bit float, three channels).

See also:
nppiWarpAffine_32f_C1R

NppStatus nppiWarpAffine_32f_C4R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (32bit float, four channels).

See also:
nppiWarpAffine_32f_C1R

NppStatus nppiWarpAffine_32f_P3R ( const Npp32f pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (32bit float, three planes).

See also:
nppiWarpAffine_32f_C1R

NppStatus nppiWarpAffine_32f_P4R ( const Npp32f pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (32bit float, four planes).

See also:
nppiWarpAffine_32f_C1R

NppStatus nppiWarpAffine_32s_AC4R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (32bit signed integer, four channels RGBA).

See also:
nppiWarpAffine_32s_C1R

NppStatus nppiWarpAffine_32s_C1R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (32bit signed integer, single channel).

This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. The function operates on source and destination regions of interest. The affine warp function transforms the source image pixel coordinates $(x,y)$ according to the following formulas:

\[ X_{new} = C_{00} * x + C_{01} * y + C_{02} \qquad Y_{new} = C_{10} * x + C_{11} * y + C_{12} \qquad \]

The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
coeffs Affine transform coefficients
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpAffine_32s_C3R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (32bit signed integer, three channels).

See also:
nppiWarpAffine_32s_C1R

NppStatus nppiWarpAffine_32s_C4R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (32bit signed integer, four channels).

See also:
nppiWarpAffine_32s_C1R

NppStatus nppiWarpAffine_32s_P3R ( const Npp32s pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (32bit signed integer, three planes).

See also:
nppiWarpAffine_32s_C1R

NppStatus nppiWarpAffine_32s_P4R ( const Npp32s pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (32bit signed integer, four planes).

See also:
nppiWarpAffine_32s_C1R

NppStatus nppiWarpAffine_8u_AC4R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (8bit unsigned integer, four channels RGBA).

See also:
nppiWarpAffine_8u_C1R

NppStatus nppiWarpAffine_8u_C1R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (8bit unsigned integer, single channel).

This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. The function operates on source and destination regions of interest. The affine warp function transforms the source image pixel coordinates $(x,y)$ according to the following formulas:

\[ X_{new} = C_{00} * x + C_{01} * y + C_{02} \qquad Y_{new} = C_{10} * x + C_{11} * y + C_{12} \qquad \]

The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.

NPPI specific recommendation: The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but does not perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values (int)((void *)(pDst + dstRoi.x)) and (int)((void *)(pDst + dstRoi.x + dstRoi.width)) are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
coeffs Affine transform coefficients
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpAffine_8u_C3R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (8bit unsigned integer, three channels).

See also:
nppiWarpAffine_8u_C1R

NppStatus nppiWarpAffine_8u_C4R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (8bit unsigned integer, four channels).

See also:
nppiWarpAffine_8u_C1R

NppStatus nppiWarpAffine_8u_P3R ( const Npp8u pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (8bit unsigned integer, three planes).

See also:
nppiWarpAffine_8u_C1R

NppStatus nppiWarpAffine_8u_P4R ( const Npp8u pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Affine transform of an image (8bit unsigned integer, four planes).

See also:
nppiWarpAffine_8u_C1R

NppStatus nppiWarpAffineBack_16u_AC4R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (16bit unsigned integer, four channels RGBA).

See also:
nppiWarpAffineBack_16u_C1R

NppStatus nppiWarpAffineBack_16u_C1R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (16bit unsigned integer, single channel).

This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpAffineBack. The function operates on source and destination regions of interest. The affine warp function transforms the source image pixel coordinates $(x,y)$ according to the following formulas:

\[ C_{00} * X_{new} + C_{01} * Y_{new} + C_{02} = x \qquad C_{10} * X_{new} + C_{11} * Y_{new} + C_{12} = y \]

The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.

NPPI specific recommendation: The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values (int)((void *)(pDst + dstRoi.x)) and (int)((void *)(pDst + dstRoi.x + dstRoi.width)) are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
coeffs Affine transform coefficients
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpAffineBack_16u_C3R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (16bit unsigned integer, three channels).

See also:
nppiWarpAffineBack_16u_C1R

NppStatus nppiWarpAffineBack_16u_C4R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (16bit unsigned integer, four channels).

See also:
nppiWarpAffineBack_16u_C1R

NppStatus nppiWarpAffineBack_16u_P3R ( const Npp16u pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (16bit unsigned integer, three planes).

See also:
nppiWarpAffineBack_16u_C1R

NppStatus nppiWarpAffineBack_16u_P4R ( const Npp16u pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (16bit unsigned integer, four planes).

See also:
nppiWarpAffineBack_16u_C1R

NppStatus nppiWarpAffineBack_32f_AC4R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (32bit float, four channels RGBA).

See also:
nppiWarpAffineBack_32f_C1R

NppStatus nppiWarpAffineBack_32f_C1R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (32bit float, single channel).

This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpAffineBack. The function operates on source and destination regions of interest. The affine warp function transforms the source image pixel coordinates $(x,y)$ according to the following formulas:

\[ C_{00} * X_{new} + C_{01} * Y_{new} + C_{02} = x \qquad C_{10} * X_{new} + C_{11} * Y_{new} + C_{12} = y \]

The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
coeffs Affine transform coefficients
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpAffineBack_32f_C3R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (32bit float, three channels).

See also:
nppiWarpAffineBack_32f_C1R

NppStatus nppiWarpAffineBack_32f_C4R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (32bit float, four channels).

See also:
nppiWarpAffineBack_32f_C1R

NppStatus nppiWarpAffineBack_32f_P3R ( const Npp32f pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (32bit float, three planes).

See also:
nppiWarpAffineBack_32f_C1R

NppStatus nppiWarpAffineBack_32f_P4R ( const Npp32f pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (32bit float, four planes).

See also:
nppiWarpAffineBack_32f_C1R

NppStatus nppiWarpAffineBack_32s_AC4R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (32bit signed integer, four channels RGBA).

See also:
nppiWarpAffineBack_32s_C1R

NppStatus nppiWarpAffineBack_32s_C1R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (32bit signed integer, single channel).

This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpAffineBack. The function operates on source and destination regions of interest. The affine warp function transforms the source image pixel coordinates $(x,y)$ according to the following formulas:

\[ C_{00} * X_{new} + C_{01} * Y_{new} + C_{02} = x \qquad C_{10} * X_{new} + C_{11} * Y_{new} + C_{12} = y \]

The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
coeffs Affine transform coefficients
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpAffineBack_32s_C3R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (32bit signed integer, three channels).

See also:
nppiWarpAffineBack_32s_C1R

NppStatus nppiWarpAffineBack_32s_C4R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (32bit signed integer, four channels).

See also:
nppiWarpAffineBack_32s_C1R

NppStatus nppiWarpAffineBack_32s_P3R ( const Npp32s pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (32bit signed integer, three planes).

See also:
nppiWarpAffineBack_32s_C1R

NppStatus nppiWarpAffineBack_32s_P4R ( const Npp32s pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (32bit signed integer, four planes).

See also:
nppiWarpAffineBack_32s_C1R

NppStatus nppiWarpAffineBack_8u_AC4R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (8bit unsigned integer, four channels RGBA).

See also:
nppiWarpAffineBack_8u_C1R

NppStatus nppiWarpAffineBack_8u_C1R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (8bit unsigned integer, single channel).

This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpAffineBack. The function operates on source and destination regions of interest. The affine warp function transforms the source image pixel coordinates $(x,y)$ according to the following formulas:

\[ C_{00} * X_{new} + C_{01} * Y_{new} + C_{02} = x \qquad C_{10} * X_{new} + C_{11} * Y_{new} + C_{12} = y \]

The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.

NPPI specific recommendation: The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values (int)((void *)(pDst + dstRoi.x)) and (int)((void *)(pDst + dstRoi.x + dstRoi.width)) are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
coeffs Affine transform coefficients
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpAffineBack_8u_C3R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (8bit unsigned integer, three channels).

See also:
nppiWarpAffineBack_8u_C1R

NppStatus nppiWarpAffineBack_8u_C4R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (8bit unsigned integer, four channels).

See also:
nppiWarpAffineBack_8u_C1R

NppStatus nppiWarpAffineBack_8u_P3R ( const Npp8u pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (8bit unsigned integer, three planes).

See also:
nppiWarpAffineBack_8u_C1R

NppStatus nppiWarpAffineBack_8u_P4R ( const Npp8u pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[2][3],
int  interpolation 
)

Inverse affine transform of an image (8bit unsigned integer, four planes).

See also:
nppiWarpAffineBack_8u_C1R

NppStatus nppiWarpAffineQuad_16u_AC4R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (16bit unsigned integer, four channels RGBA).

See also:
nppiWarpAffineQuad_16u_C1R

NppStatus nppiWarpAffineQuad_16u_C1R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (16bit unsigned integer, single channel).

This function performs affine warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpAffineQuad uses the same formulas for pixel mapping as in nppiWarpAffine function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI.

NPPI specific recommendation: The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values (int)((void *)(pDst + dstRoi.x)) and (int)((void *)(pDst + dstRoi.x + dstRoi.width)) are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
srcQuad Source quadrangle
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
dstQuad Destination quadrangle
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpAffineQuad_16u_C3R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (16bit unsigned integer, three channels).

See also:
nppiWarpAffineQuad_16u_C1R

NppStatus nppiWarpAffineQuad_16u_C4R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (16bit unsigned integer, four channels).

See also:
nppiWarpAffineQuad_16u_C1R

NppStatus nppiWarpAffineQuad_16u_P3R ( const Npp16u pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp16u pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (16bit unsigned integer, three planes).

See also:
nppiWarpAffineQuad_16u_C1R

NppStatus nppiWarpAffineQuad_16u_P4R ( const Npp16u pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp16u pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (16bit unsigned integer, four planes).

See also:
nppiWarpAffineQuad_16u_C1R

NppStatus nppiWarpAffineQuad_32f_AC4R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (32bit float, four channels RGBA).

See also:
nppiWarpAffineQuad_32f_C1R

NppStatus nppiWarpAffineQuad_32f_C1R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (32bit float, single channel).

This function performs affine warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpAffineQuad uses the same formulas for pixel mapping as in nppiWarpAffine function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
srcQuad Source quadrangle
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
dstQuad Destination quadrangle
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpAffineQuad_32f_C3R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (32bit float, three channels).

See also:
nppiWarpAffineQuad_32f_C1R

NppStatus nppiWarpAffineQuad_32f_C4R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (32bit float, four channels).

See also:
nppiWarpAffineQuad_32f_C1R

NppStatus nppiWarpAffineQuad_32f_P3R ( const Npp32f pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32f pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (32bit float, three planes).

See also:
nppiWarpAffineQuad_32f_C1R

NppStatus nppiWarpAffineQuad_32f_P4R ( const Npp32f pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32f pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (32bit float, four planes).

See also:
nppiWarpAffineQuad_32f_C1R

NppStatus nppiWarpAffineQuad_32s_AC4R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (32bit signed integer, four channels RGBA).

See also:
nppiWarpAffineQuad_32s_C1R

NppStatus nppiWarpAffineQuad_32s_C1R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (32bit signed integer, single channel).

This function performs affine warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpAffineQuad uses the same formulas for pixel mapping as in nppiWarpAffine function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
srcQuad Source quadrangle
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
dstQuad Destination quadrangle
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpAffineQuad_32s_C3R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (32bit signed integer, three channels).

See also:
nppiWarpAffineQuad_32s_C1R

NppStatus nppiWarpAffineQuad_32s_C4R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (32bit signed integer, four channels).

See also:
nppiWarpAffineQuad_32s_C1R

NppStatus nppiWarpAffineQuad_32s_P3R ( const Npp32s pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32s pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (32bit signed integer, three planes).

See also:
nppiWarpAffineQuad_32s_C1R

NppStatus nppiWarpAffineQuad_32s_P4R ( const Npp32s pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32s pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (32bit signed integer, four planes).

See also:
nppiWarpAffineQuad_32s_C1R

NppStatus nppiWarpAffineQuad_8u_AC4R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (8bit unsigned integer, four channels RGBA).

See also:
nppiWarpAffineQuad_8u_C1R

NppStatus nppiWarpAffineQuad_8u_C1R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (8bit unsigned integer, single channel).

This function performs affine warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpAffineQuad uses the same formulas for pixel mapping as in nppiWarpAffine function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI.

NPPI specific recommendation: The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but does not perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values (int)((void *)(pDst + dstRoi.x)) and (int)((void *)(pDst + dstRoi.x + dstRoi.width)) are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
srcQuad Source quadrangle
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
dstQuad Destination quadrangle
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes
  • NPP_RECT_ERROR Indicates an error condition if width or height of the intersection of the srcRoi and source image is less than or equal to 1
  • NPP_WRONG_INTERSECTION_ROI_ERROR Indicates an error condition if srcRoi has no intersection with the source image
  • NPP_INTERPOLATION_ERROR Indicates an error condition if interpolation has an illegal value
  • NPP_COEFF_ERROR Indicates an error condition if coefficient values are invalid
  • NPP_WRONG_INTERSECTION_QUAD_WARNING Indicates a warning that no operation is performed if the transformed source ROI has no intersection with the destination ROI
  • NPP_MISALIGNED_DST_ROI_WARNING Indicates a warning that the speed of primitive execution was reduced due to destination ROI misalignment ignored, internally computed coordinates are used instead

NppStatus nppiWarpAffineQuad_8u_C3R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (8bit unsigned integer, three channels).

See also:
nppiWarpAffineQuad_8u_C1R

NppStatus nppiWarpAffineQuad_8u_C4R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (8bit unsigned integer, four channels).

See also:
nppiWarpAffineQuad_8u_C1R

NppStatus nppiWarpAffineQuad_8u_P3R ( const Npp8u pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp8u pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (8bit unsigned integer, three planes).

See also:
nppiWarpAffineQuad_8u_C1R

NppStatus nppiWarpAffineQuad_8u_P4R ( const Npp8u pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp8u pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Affine transform of an image (8bit unsigned integer, four planes).

See also:
nppiWarpAffineQuad_8u_C1R

NppStatus nppiWarpPerspective_16u_AC4R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (16bit unsigned integer, four channels RGBA).

See also:
nppiWarpPerspective_16u_C1R

NppStatus nppiWarpPerspective_16u_C1R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (16bit unsigned integer, single channel).

This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates $(x,y)$ according to the following formulas:

\[ X_{new} = \frac{C_{00} * x + C_{01} * y + C_{02}}{C_{20} * x + C_{21} * y + C_{22}} \qquad Y_{new} = \frac{C_{10} * x + C_{11} * y + C_{12}}{C_{20} * x + C_{21} * y + C_{22}} \]

The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.

NPPI specific recommendation: The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but does not perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values (int)((void *)(pDst + dstRoi.x)) and (int)((void *)(pDst + dstRoi.x + dstRoi.width)) are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
coeffs Perspective transform coefficients
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpPerspective_16u_C3R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (16bit unsigned integer, three channels).

See also:
nppiWarpPerspective_16u_C1R

NppStatus nppiWarpPerspective_16u_C4R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (16bit unsigned integer, four channels).

See also:
nppiWarpPerspective_16u_C1R

NppStatus nppiWarpPerspective_16u_P3R ( const Npp16u pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (16bit unsigned integer, three planes).

See also:
nppiWarpPerspective_16u_C1R

NppStatus nppiWarpPerspective_16u_P4R ( const Npp16u pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (16bit unsigned integer, four planes).

See also:
nppiWarpPerspective_16u_C1R

NppStatus nppiWarpPerspective_32f_AC4R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (32bit float, four channels RGBA).

See also:
nppiWarpPerspective_32f_C1R

NppStatus nppiWarpPerspective_32f_C1R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (32bit float, single channel).

This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates $(x,y)$ according to the following formulas:

\[ X_{new} = \frac{C_{00} * x + C_{01} * y + C_{02}}{C_{20} * x + C_{21} * y + C_{22}} \qquad Y_{new} = \frac{C_{10} * x + C_{11} * y + C_{12}}{C_{20} * x + C_{21} * y + C_{22}} \]

The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
coeffs Perspective transform coefficients
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpPerspective_32f_C3R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (32bit float, three channels).

See also:
nppiWarpPerspective_32f_C1R

NppStatus nppiWarpPerspective_32f_C4R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (32bit float, four channels).

See also:
nppiWarpPerspective_32f_C1R

NppStatus nppiWarpPerspective_32f_P3R ( const Npp32f pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (32bit float, three planes).

See also:
nppiWarpPerspective_32f_C1R

NppStatus nppiWarpPerspective_32f_P4R ( const Npp32f pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (32bit float, four planes).

See also:
nppiWarpPerspective_32f_C1R

NppStatus nppiWarpPerspective_32s_AC4R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (32bit signed integer, four channels RGBA).

See also:
nppiWarpPerspective_32s_C1R

NppStatus nppiWarpPerspective_32s_C1R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (32bit signed integer, single channel).

This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates $(x,y)$ according to the following formulas:

\[ X_{new} = \frac{C_{00} * x + C_{01} * y + C_{02}}{C_{20} * x + C_{21} * y + C_{22}} \qquad Y_{new} = \frac{C_{10} * x + C_{11} * y + C_{12}}{C_{20} * x + C_{21} * y + C_{22}} \]

The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
coeffs Perspective transform coefficients
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpPerspective_32s_C3R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (32bit signed integer, three channels).

See also:
nppiWarpPerspective_32s_C1R

NppStatus nppiWarpPerspective_32s_C4R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (32bit signed integer, four channels).

See also:
nppiWarpPerspective_32s_C1R

NppStatus nppiWarpPerspective_32s_P3R ( const Npp32s pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (32bit signed integer, three planes).

See also:
nppiWarpPerspective_32s_C1R

NppStatus nppiWarpPerspective_32s_P4R ( const Npp32s pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (32bit signed integer, four planes).

See also:
nppiWarpPerspective_32s_C1R

NppStatus nppiWarpPerspective_8u_AC4R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (8bit unsigned integer, four channels RGBA).

See also:
nppiWarpPerspective_8u_C1R

NppStatus nppiWarpPerspective_8u_C1R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (8bit unsigned integer, single channel).

This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates $(x,y)$ according to the following formulas:

\[ X_{new} = \frac{C_{00} * x + C_{01} * y + C_{02}}{C_{20} * x + C_{21} * y + C_{22}} \qquad Y_{new} = \frac{C_{10} * x + C_{11} * y + C_{12}}{C_{20} * x + C_{21} * y + C_{22}} \]

The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.

NPPI specific recommendation: The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but does not perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values (int)((void *)(pDst + dstRoi.x)) and (int)((void *)(pDst + dstRoi.x + dstRoi.width)) are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
coeffs Perspective transform coefficients
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpPerspective_8u_C3R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (8bit unsigned integer, three channels).

See also:
nppiWarpPerspective_8u_C1R

NppStatus nppiWarpPerspective_8u_C4R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (8bit unsigned integer, four channels).

See also:
nppiWarpPerspective_8u_C1R

NppStatus nppiWarpPerspective_8u_P3R ( const Npp8u pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (8bit unsigned integer, three planes).

See also:
nppiWarpPerspective_8u_C1R

NppStatus nppiWarpPerspective_8u_P4R ( const Npp8u pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Perspective transform of an image (8bit unsigned integer, four planes).

See also:
nppiWarpPerspective_8u_C1R

NppStatus nppiWarpPerspectiveBack_16u_AC4R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (16bit unsigned integer, four channels RGBA).

See also:
nppiWarpPerspectiveBack_16u_C1R

NppStatus nppiWarpPerspectiveBack_16u_C1R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (16bit unsigned integer, single channel).

This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpPerspectiveBack. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates $(x,y)$ according to the following formulas:

\[ \frac{C_{00} * X_{new} + C_{01} * Y_{new} + C_{02}}{C_{20} * X_{new} + C_{21} * Y_{new} + C_{22}} = x \qquad \frac{C_{10} * X_{new} + C_{11} * Y_{new} + C_{12}}{C_{20} * X_{new} + C_{21} * Y_{new} + C_{22}} = y \]

The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.

NPPI specific recommendation: The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but does not perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values (int)((void *)(pDst + dstRoi.x)) and (int)((void *)(pDst + dstRoi.x + dstRoi.width)) are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
coeffs Perspective transform coefficients
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpPerspectiveBack_16u_C3R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (16bit unsigned integer, three channels).

See also:
nppiWarpPerspectiveBack_16u_C1R

NppStatus nppiWarpPerspectiveBack_16u_C4R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (16bit unsigned integer, four channels).

See also:
nppiWarpPerspectiveBack_16u_C1R

NppStatus nppiWarpPerspectiveBack_16u_P3R ( const Npp16u pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (16bit unsigned integer, three planes).

See also:
nppiWarpPerspectiveBack_16u_C1R

NppStatus nppiWarpPerspectiveBack_16u_P4R ( const Npp16u pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp16u pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (16bit unsigned integer, four planes).

See also:
nppiWarpPerspectiveBack_16u_C1R

NppStatus nppiWarpPerspectiveBack_32f_AC4R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (32bit float, four channels RGBA).

See also:
nppiWarpPerspectiveBack_32f_C1R

NppStatus nppiWarpPerspectiveBack_32f_C1R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (32bit float, single channel).

This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpPerspectiveBack. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates $(x,y)$ according to the following formulas:

\[ \frac{C_{00} * X_{new} + C_{01} * Y_{new} + C_{02}}{C_{20} * X_{new} + C_{21} * Y_{new} + C_{22}} = x \qquad \frac{C_{10} * X_{new} + C_{11} * Y_{new} + C_{12}}{C_{20} * X_{new} + C_{21} * Y_{new} + C_{22}} = y \]

The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
coeffs Perspective transform coefficients
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpPerspectiveBack_32f_C3R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (32bit float, three channels).

See also:
nppiWarpPerspectiveBack_32f_C1R

NppStatus nppiWarpPerspectiveBack_32f_C4R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (32bit float, four channels).

See also:
nppiWarpPerspectiveBack_32f_C1R

NppStatus nppiWarpPerspectiveBack_32f_P3R ( const Npp32f pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (32bit float, three planes).

See also:
nppiWarpPerspectiveBack_32f_C1R

NppStatus nppiWarpPerspectiveBack_32f_P4R ( const Npp32f pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32f pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (32bit float, four planes).

See also:
nppiWarpPerspectiveBack_32f_C1R

NppStatus nppiWarpPerspectiveBack_32s_AC4R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (32bit signed integer, four channels RGBA).

See also:
nppiWarpPerspectiveBack_32s_C1R

NppStatus nppiWarpPerspectiveBack_32s_C1R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (32bit signed integer, single channel).

This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpPerspectiveBack. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates $(x,y)$ according to the following formulas:

\[ \frac{C_{00} * X_{new} + C_{01} * Y_{new} + C_{02}}{C_{20} * X_{new} + C_{21} * Y_{new} + C_{22}} = x \qquad \frac{C_{10} * X_{new} + C_{11} * Y_{new} + C_{12}}{C_{20} * X_{new} + C_{21} * Y_{new} + C_{22}} = y \]

The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
coeffs Perspective transform coefficients
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpPerspectiveBack_32s_C3R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (32bit signed integer, three channels).

See also:
nppiWarpPerspectiveBack_32s_C1R

NppStatus nppiWarpPerspectiveBack_32s_C4R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (32bit signed integer, four channels).

See also:
nppiWarpPerspectiveBack_32s_C1R

NppStatus nppiWarpPerspectiveBack_32s_P3R ( const Npp32s pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (32bit signed integer, three planes).

See also:
nppiWarpPerspectiveBack_32s_C1R

NppStatus nppiWarpPerspectiveBack_32s_P4R ( const Npp32s pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp32s pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (32bit signed integer, four planes).

See also:
nppiWarpPerspectiveBack_32s_C1R

NppStatus nppiWarpPerspectiveBack_8u_AC4R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (8bit unsigned integer, four channels RGBA).

See also:
nppiWarpPerspectiveBack_8u_C1R

NppStatus nppiWarpPerspectiveBack_8u_C1R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (8bit unsigned integer, single channel).

This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpPerspectiveBack. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates $(x,y)$ according to the following formulas:

\[ \frac{C_{00} * X_{new} + C_{01} * Y_{new} + C_{02}}{C_{20} * X_{new} + C_{21} * Y_{new} + C_{22}} = x \qquad \frac{C_{10} * X_{new} + C_{11} * Y_{new} + C_{12}}{C_{20} * X_{new} + C_{21} * Y_{new} + C_{22}} = y \]

The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.

NPPI specific recommendation: The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but does not perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values (int)((void *)(pDst + dstRoi.x)) and (int)((void *)(pDst + dstRoi.x + dstRoi.width)) are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
coeffs Perspective transform coefficients
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpPerspectiveBack_8u_C3R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (8bit unsigned integer, three channels).

See also:
nppiWarpPerspectiveBack_8u_C1R

NppStatus nppiWarpPerspectiveBack_8u_C4R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (8bit unsigned integer, four channels).

See also:
nppiWarpPerspectiveBack_8u_C1R

NppStatus nppiWarpPerspectiveBack_8u_P3R ( const Npp8u pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (8bit unsigned integer, three planes).

See also:
nppiWarpPerspectiveBack_8u_C1R

NppStatus nppiWarpPerspectiveBack_8u_P4R ( const Npp8u pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
Npp8u pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  coeffs[3][3],
int  interpolation 
)

Inverse perspective transform of an image (8bit unsigned integer, four planes).

See also:
nppiWarpPerspectiveBack_8u_C1R

NppStatus nppiWarpPerspectiveQuad_16u_AC4R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (16bit unsigned integer, four channels RGBA).

See also:
nppiWarpPerspectiveQuad_16u_C1R

NppStatus nppiWarpPerspectiveQuad_16u_C1R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (16bit unsigned integer, single channel).

This function performs perspective warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpPerspectiveQuad uses the same formulas for pixel mapping as in nppiWarpPerspective function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI.

NPPI specific recommendation: The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but does not perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values (int)((void *)(pDst + dstRoi.x)) and (int)((void *)(pDst + dstRoi.x + dstRoi.width)) are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
srcQuad Source quadrangle
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
dstQuad Destination quadrangle
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpPerspectiveQuad_16u_C3R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (16bit unsigned integer, three channels).

See also:
nppiWarpPerspectiveQuad_16u_C1R

NppStatus nppiWarpPerspectiveQuad_16u_C4R ( const Npp16u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp16u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (16bit unsigned integer, four channels).

See also:
nppiWarpPerspectiveQuad_16u_C1R

NppStatus nppiWarpPerspectiveQuad_16u_P3R ( const Npp16u pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp16u pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (16bit unsigned integer, three planes).

See also:
nppiWarpPerspectiveQuad_16u_C1R

NppStatus nppiWarpPerspectiveQuad_16u_P4R ( const Npp16u pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp16u pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (16bit unsigned integer, four planes).

See also:
nppiWarpPerspectiveQuad_16u_C1R

NppStatus nppiWarpPerspectiveQuad_32f_AC4R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (32bit float, four channels RGBA).

See also:
nppiWarpPerspectiveQuad_32f_C1R

NppStatus nppiWarpPerspectiveQuad_32f_C1R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (32bit float, single channel).

This function performs perspective warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpPerspectiveQuad uses the same formulas for pixel mapping as in nppiWarpPerspective function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
srcQuad Source quadrangle
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
dstQuad Destination quadrangle
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpPerspectiveQuad_32f_C3R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (32bit float, three channels).

See also:
nppiWarpPerspectiveQuad_32f_C1R

NppStatus nppiWarpPerspectiveQuad_32f_C4R ( const Npp32f pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32f pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (32bit float, four channels).

See also:
nppiWarpPerspectiveQuad_32f_C1R

NppStatus nppiWarpPerspectiveQuad_32f_P3R ( const Npp32f pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32f pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (32bit float, three planes).

See also:
nppiWarpPerspectiveQuad_32f_C1R

NppStatus nppiWarpPerspectiveQuad_32f_P4R ( const Npp32f pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32f pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (32bit float, four planes).

See also:
nppiWarpPerspectiveQuad_32f_C1R

NppStatus nppiWarpPerspectiveQuad_32s_AC4R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (32bit signed integer, four channels RGBA).

See also:
nppiWarpPerspectiveQuad_32s_C1R

NppStatus nppiWarpPerspectiveQuad_32s_C1R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (32bit signed integer, single channel).

This function performs perspective warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpPerspectiveQuad uses the same formulas for pixel mapping as in nppiWarpPerspective function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
srcQuad Source quadrangle
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
dstQuad Destination quadrangle
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpPerspectiveQuad_32s_C3R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (32bit signed integer, three channels).

See also:
nppiWarpPerspectiveQuad_32s_C1R

NppStatus nppiWarpPerspectiveQuad_32s_C4R ( const Npp32s pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32s pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (32bit signed integer, four channels).

See also:
nppiWarpPerspectiveQuad_32s_C1R

NppStatus nppiWarpPerspectiveQuad_32s_P3R ( const Npp32s pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32s pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (32bit signed integer, three planes).

See also:
nppiWarpPerspectiveQuad_32s_C1R

NppStatus nppiWarpPerspectiveQuad_32s_P4R ( const Npp32s pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp32s pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (32bit signed integer, four planes).

See also:
nppiWarpPerspectiveQuad_32s_C1R

NppStatus nppiWarpPerspectiveQuad_8u_AC4R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (8bit unsigned integer, four channels RGBA).

See also:
nppiWarpPerspectiveQuad_8u_C1R

NppStatus nppiWarpPerspectiveQuad_8u_C1R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (8bit unsigned integer, single channel).

This function performs perspective warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpPerspectiveQuad uses the same formulas for pixel mapping as in nppiWarpPerspective function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI.

NPPI specific recommendation: The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but does not perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values (int)((void *)(pDst + dstRoi.x)) and (int)((void *)(pDst + dstRoi.x + dstRoi.width)) are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

Parameters:
pSrc Source-Image Pointer.
srcSize Size of source image in pixels
nSrcStep Source-Image Line Step.
srcRoi Source ROI
srcQuad Source quadrangle
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
dstRoi Destination ROI
dstQuad Destination quadrangle
interpolation Interpolation mode: can be NPPI_INTER_NN, NPPI_INTER_LINEAR or NPPI_INTER_CUBIC
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiWarpPerspectiveQuad_8u_C3R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (8bit unsigned integer, three channels).

See also:
nppiWarpPerspectiveQuad_8u_C1R

NppStatus nppiWarpPerspectiveQuad_8u_C4R ( const Npp8u pSrc,
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp8u pDst,
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (8bit unsigned integer, four channels).

See also:
nppiWarpPerspectiveQuad_8u_C1R

NppStatus nppiWarpPerspectiveQuad_8u_P3R ( const Npp8u pSrc[3],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp8u pDst[3],
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (8bit unsigned integer, three planes).

See also:
nppiWarpPerspectiveQuad_8u_C1R

NppStatus nppiWarpPerspectiveQuad_8u_P4R ( const Npp8u pSrc[4],
NppiSize  srcSize,
int  nSrcStep,
NppiRect  srcRoi,
const double  srcQuad[4][2],
Npp8u pDst[4],
int  nDstStep,
NppiRect  dstRoi,
const double  dstQuad[4][2],
int  interpolation 
)

Perspective transform of an image (8bit unsigned integer, four planes).

See also:
nppiWarpPerspectiveQuad_8u_C1R

NppStatus nppiYCbCr420ToRGB_8u_P3C3R ( const Npp8u *const *  pSrc,
int  nSrcStep[3],
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

3 channel 8-bit unsigned planar YCbCr420 to packed RGB color conversion.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiYCbCr420ToYCbCr411_8u_P3P2R ( const Npp8u *const *  pSrc,
int  aSrcStep[3],
Npp8u pDstY,
int  nDstYStep,
Npp8u pDstCbCr,
int  nDstCbCrStep,
NppiSize  oSizeROI 
)

3 channel 8-bit unsigned planar YCbCr:420 to YCbCr:411 resampling.

Parameters:
pSrc Array of pointers to the source image planes.
aSrcStep Array with distances in bytes between starts of consecutive lines of the source image planes.
pDstY Destination-Image Pointer. Y-channel.
nDstYStep Destination-Image Line Step. Y-channel.
pDstCbCr Destination-Image Pointer. CbCr image.
nDstCbCrStep Destination-Image Line Step. CbCr image.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiYCbCr420ToYCbCr422_8u_P3R ( const Npp8u *const *  pSrc,
int  nSrcStep[3],
Npp8u **  pDst,
int  nDstStep[3],
NppiSize  oSizeROI 
)

3 channel 8-bit unsigned planar YCbCr:420 to YCbCr:422 resampling.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiYCbCr422ToRGB_8u_C2C3R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

2 channel 8-bit unsigned YCbCr422 to 3 channel packed RGB color conversion.

images.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiYCbCr422ToYCbCr411_8u_P3R ( const Npp8u *const *  pSrc,
int  nSrcStep[3],
Npp8u **  pDst,
int  nDstStep[3],
NppiSize  oSizeROI 
)

3 channel 8-bit unsigned planar YCbCr:422 to YCbCr:411 resampling.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiYCbCr422ToYCbCr420_8u_P3R ( const Npp8u *const *  pSrc,
int  nSrcStep[3],
Npp8u **  pDst,
int  nDstStep[3],
NppiSize  oSizeROI 
)

3 channel 8-bit unsigned planar YCbCr:422 to YCbCr:420 resampling.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiYCbCrToRGB_8u_AC4R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

4 channel 8-bit unsigned packed YCbCr to RGB color conversion, not affecting Alpha.

Alpha channel is the last channel and is not processed.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiYCbCrToRGB_8u_C3R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

3 channel 8-bit unsigned packed YCbCr to RGB color conversion.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes

NppStatus nppiYCbCrToRGB_8u_P3R ( const Npp8u *const *  pSrc,
int  nSrcStep,
Npp8u **  pDst,
int  nDstStep,
NppiSize  oSizeROI 
)

3 channel 8-bit unsigned planar YCbCr to RGB color conversion.

Parameters:
pSrc Source-Image Pointer.
nSrcStep Source-Image Line Step.
pDst Destination-Image Pointer.
nDstStep Destination-Image Line Step.
oSizeROI Region-of-Interest (ROI).
Returns:
Image Data Related Error Codes, ROI Related Error Codes


Copyright © 2009-2010 NVIDIA Corporation