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. | |
Npp8u * | nppiMalloc_8u_C1 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
8-bit unsigned image memory allocator. | |
Npp8u * | nppiMalloc_8u_C2 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
2 channel 8-bit unsigned image memory allocator. | |
Npp8u * | nppiMalloc_8u_C3 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
3 channel 8-bit unsigned image memory allocator. | |
Npp8u * | nppiMalloc_8u_C4 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
4 channel 8-bit unsigned image memory allocator. | |
Npp16u * | nppiMalloc_16u_C1 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
16-bit unsigned image memory allocator. | |
Npp16u * | nppiMalloc_16u_C3 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
3 channel 16-bit unsigned image memory allocator. | |
Npp16u * | nppiMalloc_16u_C4 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
4 channel 16-bit unsigned image memory allocator. | |
Npp16s * | nppiMalloc_16s_C1 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
16-bit signed image memory allocator. | |
Npp16s * | nppiMalloc_16s_C4 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
4 channel 16-bit signed image memory allocator. | |
Npp32s * | nppiMalloc_32s_C1 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
32-bit signed image memory allocator. | |
Npp32s * | nppiMalloc_32s_C3 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
3 channel 32-bit signed image memory allocator. | |
Npp32s * | nppiMalloc_32s_C4 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
4 channel 32-bit signed image memory allocator. | |
Npp32f * | nppiMalloc_32f_C1 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
32-bit floating point image memory allocator. | |
Npp32f * | nppiMalloc_32f_C2 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
2 channel 32-bit floating point image memory allocator. | |
Npp32f * | nppiMalloc_32f_C3 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
3 channel 32-bit floating point image memory allocator. | |
Npp32f * | nppiMalloc_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:
That is, any pixel with coordinates
The mapping | |
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:
That is, any pixel of the transformed image with coordinates
The mapping | |
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). |
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).
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). |
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).
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). |
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).
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). |
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).
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). |
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).
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). |
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.
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. |
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.
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). |
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.
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). |
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.
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. |
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.
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. |
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.
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. |
NppStatus nppiAddC_32f_C1R | ( | const Npp32f * | pSrc, | |
int | nSrcStep, | |||
Npp32f | nValue, | |||
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
32-bit floating point image add constant.
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. |
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.
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. |
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.
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. |
Calculate the size of a temporary buffer needed for the Canny function.
oSizeROI | Size of the image ROI in pixels | |
hpBufferSize | Host-pointer receiving the size required temporary buffer. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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().
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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().
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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().
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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().
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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().
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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().
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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().
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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().
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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().
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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().
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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().
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. |
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().
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. |
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().
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. |
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().
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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().
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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().
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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().
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
NppStatus nppiConvert_8u16u_C1R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
Npp16u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
8-bit unsigned to 16-bit unsigned conversion.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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().
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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().
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
NppStatus nppiCopy_16s_AC4R | ( | const Npp16s * | pSrc, | |
int | nSrcStep, | |||
Npp16s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
4 channel 16-bit image copy, not affecting Alpha.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
NppStatus nppiCopy_16s_C1R | ( | const Npp16s * | pSrc, | |
int | nSrcStep, | |||
Npp16s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
16-bit image copy.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
NppStatus nppiCopy_16s_C4R | ( | const Npp16s * | pSrc, | |
int | nSrcStep, | |||
Npp16s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
4 channel 16-bit image copy.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
NppStatus nppiCopy_16u_C1R | ( | const Npp16u * | pSrc, | |
int | nSrcStep, | |||
Npp16u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
16-bit unsigned image copy.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
NppStatus nppiCopy_16u_C4R | ( | const Npp16u * | pSrc, | |
int | nSrcStep, | |||
Npp16u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
4 channel 16-bit unsigned image copy.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
NppStatus nppiCopy_32f_C1R | ( | const Npp32f * | pSrc, | |
int | nSrcStep, | |||
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
32-bit floating point image copy.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
NppStatus nppiCopy_32f_C4R | ( | const Npp32f * | pSrc, | |
int | nSrcStep, | |||
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
4 channel 32-bit floating point image copy.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
NppStatus nppiCopy_32s_AC4R | ( | const Npp32s * | pSrc, | |
int | nSrcStep, | |||
Npp32s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
4 channel 32-bit image copy, not affecting Alpha.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
NppStatus nppiCopy_32s_C1R | ( | const Npp32s * | pSrc, | |
int | nSrcStep, | |||
Npp32s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
32-bit image copy.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
NppStatus nppiCopy_32s_C4R | ( | const Npp32s * | pSrc, | |
int | nSrcStep, | |||
Npp32s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
4 channel 32-bit image copy.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
NppStatus nppiCopy_8u_C1R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
8-bit unsigned image copy.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
NppStatus nppiCopy_8u_C4R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
4 channel 8-bit unsigned image copy.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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). |
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.
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). |
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.
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. |
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.
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. |
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.
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). |
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.
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). |
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.
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. |
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.
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. |
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.
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. |
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.
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). |
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.
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. |
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.
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. |
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.
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. |
NppStatus nppiEvenLevelsHost_32s | ( | Npp32s * | hpLevels, | |
int | nLevels, | |||
Npp32s | nLowerLevel, | |||
Npp32s | nUpperLevel | |||
) |
Compute levels with even distribution.
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. |
NppStatus nppiExp_32f_C1R | ( | const Npp32f * | pSrc, | |
int | nSrcStep, | |||
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
32-bit floating point exponentiation.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
pData | A pointer to memory allocated using nppiMalloc_<modifier>. |
Calculates bounding box of the affine transform projection of the given source rectangular ROI.
srcRoi | Source ROI | |
bound | Bounding box of the transformed source ROI | |
coeffs | Affine transform coefficients |
Calculates affine transform projection of given source rectangular ROI.
srcRoi | Source ROI | |
quad | Destination quadrangle | |
coeffs | Affine transform coefficients |
Calculates affine transform coefficients given source rectangular ROI and its destination quadrangle projection.
srcRoi | Source ROI | |
quad | Destination quadrangle | |
coeffs | Affine transform coefficients |
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.
srcRoi | Source ROI | |
bound | Bounding box of the transformed source ROI | |
coeffs | Perspective transform coefficients |
Calculates perspective transform projection of given source rectangular ROI.
srcRoi | Source ROI | |
quad | Destination quadrangle | |
coeffs | Perspective transform coefficients |
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.
srcRoi | Source ROI | |
quad | Destination quadrangle | |
coeffs | Perspective transform coefficients |
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).
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 |
Calculates the size of the temporary buffer for graph-cut labeling.
size | Graph size | |
pBufSize | Pointer to variable that returns the size of the temporary buffer. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
NppStatus nppiHistogramEvenGetBufferSize_16s_AC4R | ( | NppiSize | oSizeROI, | |
int | nLevels[3], | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramEven_16s_AC4R.
oSizeROI | ROI size. | |
nLevels | Array containing number of levels per color channel. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramEvenGetBufferSize_16s_C1R | ( | NppiSize | oSizeROI, | |
int | nLevels, | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramEven_16s_C1R.
oSizeROI | Region-of-Interest (ROI). | |
nLevels | Number of levels in the histogram. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramEvenGetBufferSize_16s_C4R | ( | NppiSize | oSizeROI, | |
int | nLevels[4], | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramEven_16s_C4R.
oSizeROI | ROI size. | |
nLevels | Array containing number of levels per color channel. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramEvenGetBufferSize_16u_AC4R | ( | NppiSize | oSizeROI, | |
int | nLevels[3], | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramEven_16u_AC4R.
oSizeROI | ROI size. | |
nLevels | Array containing number of levels per color channel. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramEvenGetBufferSize_16u_C1R | ( | NppiSize | oSizeROI, | |
int | nLevels, | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramEven_16u_C1R.
oSizeROI | Region-of-Interest (ROI). | |
nLevels | Number of levels in the histogram. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramEvenGetBufferSize_16u_C4R | ( | NppiSize | oSizeROI, | |
int | nLevels[4], | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramEven_16u_C4R.
oSizeROI | ROI size. | |
nLevels | Array containing number of levels per color channel. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramEvenGetBufferSize_8u_AC4R | ( | NppiSize | oSizeROI, | |
int | nLevels[3], | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramEven_8u_AC4R.
oSizeROI | ROI size. | |
nLevels | Array containing number of levels per color channel. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramEvenGetBufferSize_8u_C1R | ( | NppiSize | oSizeROI, | |
int | nLevels, | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramEven_8u_C1R.
oSizeROI | Region-of-Interest (ROI). | |
nLevels | Number of levels in the histogram. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramEvenGetBufferSize_8u_C4R | ( | NppiSize | oSizeROI, | |
int | nLevels[4], | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramEven_8u_C4R.
oSizeROI | ROI size. | |
nLevels | Array containing number of levels per color channel. | |
hpBufferSize | Host pointer where required buffer size is returned. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
NppStatus nppiHistogramRangeGetBufferSize_16s_AC4R | ( | NppiSize | oSizeROI, | |
int | nLevels[3], | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramRange_16s_AC4R.
oSizeROI | ROI size. | |
nLevels | Array containing number of levels per color channel. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramRangeGetBufferSize_16s_C1R | ( | NppiSize | oSizeROI, | |
int | nLevels, | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramRange_16s_C1R.
oSizeROI | Region-of-Interest (ROI). | |
nLevels | Number of levels in the histogram. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramRangeGetBufferSize_16s_C4R | ( | NppiSize | oSizeROI, | |
int | nLevels[4], | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramRange_16s_C4R.
oSizeROI | ROI size. | |
nLevels | Array containing number of levels per color channel. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramRangeGetBufferSize_16u_AC4R | ( | NppiSize | oSizeROI, | |
int | nLevels[3], | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramRange_16u_AC4R.
oSizeROI | ROI size. | |
nLevels | Array containing number of levels per color channel. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramRangeGetBufferSize_16u_C1R | ( | NppiSize | oSizeROI, | |
int | nLevels, | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramRange_16u_C1R.
oSizeROI | Region-of-Interest (ROI). | |
nLevels | Number of levels in the histogram. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramRangeGetBufferSize_16u_C4R | ( | NppiSize | oSizeROI, | |
int | nLevels[4], | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramRange_16u_C4R.
oSizeROI | ROI size. | |
nLevels | Array containing number of levels per color channel. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramRangeGetBufferSize_32f_AC4R | ( | NppiSize | oSizeROI, | |
int | nLevels[3], | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramRange_32f_AC4R.
oSizeROI | ROI size. | |
nLevels | Array containing number of levels per color channel. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramRangeGetBufferSize_32f_C1R | ( | NppiSize | oSizeROI, | |
int | nLevels, | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramRange_32f_C1R.
oSizeROI | Region-of-Interest (ROI). | |
nLevels | Number of levels in the histogram. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramRangeGetBufferSize_32f_C4R | ( | NppiSize | oSizeROI, | |
int | nLevels[4], | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramRange_32f_C4R.
oSizeROI | ROI size. | |
nLevels | Array containing number of levels per color channel. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramRangeGetBufferSize_8u_AC4R | ( | NppiSize | oSizeROI, | |
int | nLevels[3], | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramRange_8u_AC4R.
oSizeROI | ROI size. | |
nLevels | Array containing number of levels per color channel. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramRangeGetBufferSize_8u_C1R | ( | NppiSize | oSizeROI, | |
int | nLevels, | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramRange_8u_C1R.
oSizeROI | Region-of-Interest (ROI). | |
nLevels | Number of levels in the histogram. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiHistogramRangeGetBufferSize_8u_C4R | ( | NppiSize | oSizeROI, | |
int | nLevels[4], | |||
int * | hpBufferSize | |||
) |
Scratch-buffer size for nppiHistogramRange_8u_C4R.
oSizeROI | ROI size. | |
nLevels | Array containing number of levels per color channel. | |
hpBufferSize | Host pointer where required buffer size is returned. |
NppStatus nppiLn_32f_C1R | ( | const Npp32f * | pSrc, | |
int | nSrcStep, | |||
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
32-bit floating point logarithm.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
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 |
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.
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) |
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.
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 |
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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
Npp16s* nppiMalloc_16s_C1 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
16-bit signed image memory allocator.
nWidthPixels | Image width. | |
nHeightPixels | Image height. | |
pStepBytes | Line Step. |
Npp16s* nppiMalloc_16s_C4 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
4 channel 16-bit signed image memory allocator.
nWidthPixels | Image width. | |
nHeightPixels | Image height. | |
pStepBytes | Line Step. |
Npp16u* nppiMalloc_16u_C1 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
16-bit unsigned image memory allocator.
nWidthPixels | Image width. | |
nHeightPixels | Image height. | |
pStepBytes | Line Step. |
Npp16u* nppiMalloc_16u_C3 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
3 channel 16-bit unsigned image memory allocator.
nWidthPixels | Image width. | |
nHeightPixels | Image height. | |
pStepBytes | Line Step. |
Npp16u* nppiMalloc_16u_C4 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
4 channel 16-bit unsigned image memory allocator.
nWidthPixels | Image width. | |
nHeightPixels | Image height. | |
pStepBytes | Line Step. |
Npp32f* nppiMalloc_32f_C1 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
32-bit floating point image memory allocator.
nWidthPixels | Image width. | |
nHeightPixels | Image height. | |
pStepBytes | Line Step. |
Npp32f* nppiMalloc_32f_C2 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
2 channel 32-bit floating point image memory allocator.
nWidthPixels | Image width. | |
nHeightPixels | Image height. | |
pStepBytes | Line Step. |
Npp32f* nppiMalloc_32f_C3 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
3 channel 32-bit floating point image memory allocator.
nWidthPixels | Image width. | |
nHeightPixels | Image height. | |
pStepBytes | Line Step. |
Npp32f* nppiMalloc_32f_C4 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
4 channel 32-bit floating point image memory allocator.
nWidthPixels | Image width. | |
nHeightPixels | Image height. | |
pStepBytes | Line Step. |
Npp32s* nppiMalloc_32s_C1 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
32-bit signed image memory allocator.
nWidthPixels | Image width. | |
nHeightPixels | Image height. | |
pStepBytes | Line Step. |
Npp32s* nppiMalloc_32s_C3 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
3 channel 32-bit signed image memory allocator.
nWidthPixels | Image width. | |
nHeightPixels | Image height. | |
pStepBytes | Line Step. |
Npp32s* nppiMalloc_32s_C4 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
4 channel 32-bit signed image memory allocator.
nWidthPixels | Image width. | |
nHeightPixels | Image height. | |
pStepBytes | Line Step. |
Npp8u* nppiMalloc_8u_C1 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
8-bit unsigned image memory allocator.
nWidthPixels | Image width. | |
nHeightPixels | Image height. | |
pStepBytes | Line Step. |
Npp8u* nppiMalloc_8u_C2 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
2 channel 8-bit unsigned image memory allocator.
nWidthPixels | Image width. | |
nHeightPixels | Image height. | |
pStepBytes | Line Step. |
Npp8u* nppiMalloc_8u_C3 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
3 channel 8-bit unsigned image memory allocator.
nWidthPixels | Image width. | |
nHeightPixels | Image height. | |
pStepBytes | Line Step. |
Npp8u* nppiMalloc_8u_C4 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
4 channel 8-bit unsigned image memory allocator.
nWidthPixels | Image width. | |
nHeightPixels | Image height. | |
pStepBytes | Line Step. |
NppStatus nppiMean_StdDev_8u_C1R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
NppiSize | oSizeROI, | |||
Npp64f * | pMean, | |||
Npp64f * | pStdDev | |||
) |
8-bit unsigned mean standard deviation.
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. |
NppStatus nppiMinMax_8u_C1R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
NppiSize | oSizeROI, | |||
Npp8u * | pMin, | |||
Npp8u * | pMax | |||
) |
8-bit unsigned pixel minimum and maximum.
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. |
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.
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. |
NppStatus nppiMirror_8u_C1R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oROI, | |||
NppiAxis | flip | |||
) |
8-bit unsigned image mirror.
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. |
NppStatus nppiMirror_8u_C4R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oROI, | |||
NppiAxis | flip | |||
) |
4 channel 8-bit unsigned image mirror.
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. |
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.
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). |
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.
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). |
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.
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. |
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.
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. |
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.
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. |
NppStatus nppiMulC_32f_C1R | ( | const Npp32f * | pSrc, | |
int | nSrcStep, | |||
Npp32f | nValue, | |||
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
32-bit floating point image multiply constant.
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. |
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.
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. |
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.
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. |
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.
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. |
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.
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. |
Converts regular quantization tables with the quality factor.
pQuantRawTable | Raw quantization table. | |
nQualityFactor | Quality factor for the table. Range is [1:100]. |
NppStatus nppiQuantFwdTableInit_JPEG_8u16u | ( | const Npp8u * | pQuantRawTable, | |
Npp16u * | pQuantFwdRawTable | |||
) |
Converts raw quantization table to a forward quantization table.
pQuantRawTable | Raw quantization table. | |
pQuantFwdRawTable | Forward quantization table. |
NppStatus nppiQuantInvTableInit_JPEG_8u16u | ( | const Npp8u * | pQuantRawTable, | |
Npp16u * | pQuantFwdRawTable | |||
) |
Converts raw quantization table to an inverse quantization table.
pQuantRawTable | Raw quantization table. | |
pQuantFwdRawTable | Inverse quantization table. |
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.
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 |
Scratch-buffer size for nppiSum_8u_C1R.
oSizeROI | ROI size. | |
hpBufferSize | Host pointer where required buffer size is returned. |
Scratch-buffer size for nppiSum_8u_C4R.
oSizeROI | ROI size. | |
hpBufferSize | Host pointer where required buffer size is returned. |
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.
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 |
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.
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 |
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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
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 |
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.
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 |
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).
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. |
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).
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). |
NppStatus nppiSet_16s_C1MR | ( | Npp16s | nValue, | |
Npp16s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
const Npp8u * | pMask, | |||
int | nMaskStep | |||
) |
Masked 16-bit image set.
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. |
16-bit image set.
nValue | New pixel value. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
NppStatus nppiSet_16s_C2R | ( | const Npp16s | aValues[2], | |
Npp16s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
2 channel 16-bit image set.
aValues | New pixel value. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
nValue | The pixel-value to be set. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
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. |
NppStatus nppiSet_16s_C4R | ( | const Npp16s | aValues[4], | |
Npp16s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
4 channel 16-bit image set.
aValues | New pixel value. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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).
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. |
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).
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). |
NppStatus nppiSet_16u_C1MR | ( | Npp16u | nValue, | |
Npp16u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
const Npp8u * | pMask, | |||
int | nMaskStep | |||
) |
Masked 16-bit unsigned image set.
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. |
16-bit unsigned image set.
nValue | New pixel value. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
NppStatus nppiSet_16u_C2R | ( | const Npp16u | aValues[2], | |
Npp16u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
2 channel 16-bit unsigned image set.
aValues | New pixel value. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
nValue | The pixel-value to be set. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
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. |
NppStatus nppiSet_16u_C4R | ( | const Npp16u | aValues[4], | |
Npp16u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
4 channel 16-bit unsigned image set.
aValues | New pixel value. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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).
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. |
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).
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). |
NppStatus nppiSet_32f_C1MR | ( | Npp32f | nValue, | |
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
const Npp8u * | pMask, | |||
int | nMaskStep | |||
) |
Masked 32-bit floating point image set.
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. |
32-bit floating point image set.
nValue | New pixel value. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
nValue | The pixel-value to be set. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
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. |
NppStatus nppiSet_32f_C4R | ( | const Npp32f | aValues[4], | |
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
4 channel 32-bit floating point image set.
aValues | New pixel value. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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).
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. |
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).
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). |
NppStatus nppiSet_32s_C1MR | ( | Npp32s | nValue, | |
Npp32s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
const Npp8u * | pMask, | |||
int | nMaskStep | |||
) |
Masked 32-bit image set.
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. |
32-bit image set.
nValue | New pixel value. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
nValue | The pixel-value to be set. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
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. |
NppStatus nppiSet_32s_C4R | ( | const Npp32s | aValues[4], | |
Npp32s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
4 channel 32-bit image set.
aValues | New pixel value. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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).
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. |
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).
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). |
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.
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. |
8-bit unsigned image set.
nValue | The pixel value to be set. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
nValue | The pixel-value to be set. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
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. |
4 channel 8-bit unsigned image set.
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). |
Fills out the quantization table with either luminance and chrominance tables for JPEG.
pQuantRawTable | Raw quantization table. | |
tableIndex | Choice for Luminance (tableIndex is 0) or Chrominance component (tableIndex is 1). |
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.
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) |
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.
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). |
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.
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). |
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.
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. |
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.
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. |
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.
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. |
NppStatus nppiSubC_32f_C1R | ( | const Npp32f * | pSrc, | |
int | nSrcStep, | |||
Npp32f | nValue, | |||
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
32-bit floating point image subtract constant.
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. |
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.
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. |
NppStatus nppiSum_8u_C1R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
NppiSize | oSizeROI, | |||
Npp32s * | pDeviceBuffer, | |||
Npp64f * | pSum | |||
) |
8-bit unsigned image sum.
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. |
NppStatus nppiSum_8u_C4R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
NppiSize | oSizeROI, | |||
Npp32s * | pDeviceBuffer, | |||
Npp64f | aSum[4] | |||
) |
4 channel 8-bit unsigned image sum.
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. |
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.
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. |
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.
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. |
NppStatus nppiSwapChannels_8u_C4IR | ( | Npp8u * | pSrcDst, | |
int | nSrcDstStep, | |||
NppiSize | oSizeROI, | |||
const int | aDstOrder[4] | |||
) |
4 channel 8-bit unsigned swap channels, in-place.
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. |
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.
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. |
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.
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. |
NppStatus nppiTranspose_8u_C1R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oROI | |||
) |
8-bit image transpose.
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). |
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_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 according to the following formulas:
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.
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 |
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_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_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 according to the following formulas:
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.
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 |
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_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 according to the following formulas:
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.
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 |
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_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_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 according to the following formulas:
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.
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 |
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 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_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 according to the following formulas:
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.
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 |
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_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 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_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 according to the following formulas:
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.
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 |
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_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 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_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 according to the following formulas:
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.
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 |
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_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 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_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 according to the following formulas:
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.
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 |
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_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_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_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.
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 |
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_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 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.
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 |
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_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.
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 |
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_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).
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_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.
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 |
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_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 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_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 according to the following formulas:
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.
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 |
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_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 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_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 according to the following formulas:
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.
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 |
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_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_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 according to the following formulas:
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.
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 |
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_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 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_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 according to the following formulas:
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.
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 |
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_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_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_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 according to the following formulas:
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.
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 |
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_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 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_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 according to the following formulas:
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.
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 |
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_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 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_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 according to the following formulas:
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.
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 |
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_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 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_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 according to the following formulas:
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.
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 |
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_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_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_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.
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 |
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_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 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_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.
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 |
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_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 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_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.
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 |
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_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).
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_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.
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 |
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_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 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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
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). |
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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |
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.
pSrc | Source-Image Pointer. | |
nSrcStep | Source-Image Line Step. | |
pDst | Destination-Image Pointer. | |
nDstStep | Destination-Image Line Step. | |
oSizeROI | Region-of-Interest (ROI). |