2D Memory Allocation | |
Allocator methods for 2D arrays of data.
The allocators have width and height parameters to specify the size of the 2D array (image) to be allocated. They return a pointer to the newly created memory and return the numbers of bytes between successive lines. | |
Npp8u * | nppiMalloc_8u_C1 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
8bit unsigned, single-channel 2D (image) memory allocator. | |
Npp8u * | nppiMalloc_8u_C2 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
8bit unsigned, two-channel 2D (image) memory allocator. | |
Npp8u * | nppiMalloc_8u_C3 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
8bit unsigned, three-channel 2D (image) memory allocator. | |
Npp8u * | nppiMalloc_8u_C4 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
8bit unsigned, four-channel 2D (image) memory allocator. | |
Npp16u * | nppiMalloc_16u_C1 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
16bit unsigned, single-channel 2D (image) memory allocator. | |
Npp16u * | nppiMalloc_16u_C3 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
16bit unsigned, triple-channel 2D (image) memory allocator. | |
Npp16u * | nppiMalloc_16u_C4 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
16bit unsigned, four-channel 2D (image) memory allocator. | |
Npp16s * | nppiMalloc_16s_C1 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
16bit signed, single-channel 2D (image) memory allocator. | |
Npp16s * | nppiMalloc_16s_C4 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
16bit signed, four-channel 2D (image) memory allocator. | |
Npp32s * | nppiMalloc_32s_C1 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
32bit signed, single-channel 2D (image) memory allocator. | |
Npp32s * | nppiMalloc_32s_C3 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
32bit signed, triple-channel 2D (image) memory allocator. | |
Npp32s * | nppiMalloc_32s_C4 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
32bit signed, quad-channel 2D (image) memory allocator. | |
Npp32f * | nppiMalloc_32f_C1 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
32bit floating-point, single-channel 2D (image) memory allocator. | |
Npp32f * | nppiMalloc_32f_C3 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
32bit floating-point, triple-channel 2D (image) memory allocator. | |
Npp32f * | nppiMalloc_32f_C4 (int nWidthPixels, int nHeightPixels, int *pStepBytes) |
32bit floating-point, quad-channel 2D (image) memory allocator. | |
void | nppiFree (void *pData) |
Free method for any 2D allocated memory. | |
2D Memory Set | |
Set methods for 2D images of various types.
The set methods operate on image data given as a pointer to the underlying pixels-channel data-type (e.g. four-channel 8-bit images would be passed as pointers to Npp8u type) and a step-width, i.e. the number of bytes between sucessive line starts. The size of the area to be set is specified via a NppiSize struct. All methods also take the pixel value to be set. In case of single channel images this is a single value, in case of multi-channel, a vector of values gets passed. | |
NppStatus | nppiSet_8u_C1R (Npp8u nValue, Npp8u *pDst, int nDstStep, NppiSize oSizeROI) |
8bit unsigned integer, single channel (image) data set method. | |
NppStatus | nppiSet_8u_C4R (const Npp8u aValues[4], Npp8u *pDst, int nDstStep, NppiSize oSizeROI) |
8bit unsigned integer, four channel (image) data set method. | |
NppStatus | nppiSet_8u_AC4R (const Npp8u aValues[3], Npp8u *pDst, int nDstStep, NppiSize oSizeROI) |
8bit unsigned integer, four channel (image) data set method, not affecting Alpha. | |
NppStatus | nppiSet_32f_C1R (Npp32f nValue, Npp32f *pDst, int nDstStep, NppiSize oSizeROI) |
32bit foat, single channel (image) data set method. | |
NppStatus | nppiSet_32s_C1R (Npp32s nValue, Npp32s *pDst, int nDstStep, NppiSize oSizeROI) |
32bit signed integer, single channel (image) data set method. | |
Bit-Depth Conversion | |
Convert bit-depth up and down.
The integer conversion methods do not involve any scaling. Conversions that reduce bit-deptch 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 specifed. 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 integer to 16-bit unsigned integer, single channel conversion. | |
NppStatus | nppiConvert_16u8u_C1R (const Npp16u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI) |
16-bit unsigned integer to 8-bit unsigned integer, single channel conversion. | |
NppStatus | nppiConvert_8u16u_C4R (const Npp8u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI) |
8-bit unsigned integer to 16-bit unsigned integer, four channel conversion. | |
NppStatus | nppiConvert_16u8u_C4R (const Npp16u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI) |
16-bit unsigned integer to 8-bit unsigned integer, four channel conversion. | |
NppStatus | nppiConvert_8u16u_AC4R (const Npp8u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI) |
8-bit unsigned integer to 16-bit unsigned integer, four channel conversion not affecting alpha. | |
NppStatus | nppiConvert_16u8u_AC4R (const Npp16u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI) |
16-bit unsigned integer to 8-bit unsigned integer, four channel conversion not affecting alpha. | |
NppStatus | nppiConvert_8u16s_C1R (const Npp8u *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI) |
8-bit unsigned integer to 16-bit singed integer, single channel conversion. | |
NppStatus | nppiConvert_16s8u_C1R (const Npp16s *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI) |
16-bit signed integer to 8-bit unsigned integer, four single conversion. | |
NppStatus | nppiConvert_8u16s_C4R (const Npp8u *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI) |
8-bit unsigned integer to 16-bit signed integer, four channel conversion. | |
NppStatus | nppiConvert_16s8u_C4R (const Npp16s *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI) |
16-bit signed integer to 8-bit unsigned integer, four channel conversion not affecting alpha. | |
NppStatus | nppiConvert_8u16s_AC4R (const Npp8u *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI) |
8-bit unsigned integer to 16-bit signed integer, four channel conversion not affecting alpha. | |
NppStatus | nppiConvert_16s8u_AC4R (const Npp16s *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI) |
16-bit signed integer to 8-bit unsigned integer, four channel conversion not affecting alpha. | |
NppStatus | nppiConvert_16s32f_C1R (const Npp16s *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI) |
16-bit singed integer to 32-bit float, single channel conversion. | |
NppStatus | nppiConvert_32f16s_C1R (const Npp32f *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, NppRoundMode eRoundMode) |
32-bit float to 16-bit signed integer, single channel conversion. | |
NppStatus | nppiConvert_16u32f_C1R (const Npp16u *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI) |
16-bit unsinged integer to 32-bit float, single channel conversion. | |
NppStatus | nppiConvert_32f16u_C1R (const Npp32f *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, NppRoundMode eRoundMode) |
32-bit float to 16-bit unsigned integer, single channel conversion. | |
NppStatus | nppiConvert_16u32s_C1R (const Npp16u *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oSizeROI) |
16-bit unsinged integer to 32-bit signed, single channel conversion. | |
NppStatus | nppiConvert_16s32s_C1R (const Npp16s *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oSizeROI) |
16-bit signed 32-bit signed integer, single channel conversion. | |
2D Memory Copy | |
Copy methods for 2D images of various types.
The copy methods operate on image data given as a pointer to the underlying pixels-channel data-type (e.g. four-channel 8-bit images would be passed as pointers to Npp8u type) and a step-width, i.e. the number of bytes between sucessive line starts. The size of the area to be copied is specified via a NppiSize struct. | |
NppStatus | nppiCopy_8u_C1R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI) |
8bit unsigned integer, single channel (image) copy method. | |
NppStatus | nppiCopy_8u_C4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI) |
8bit unsigned integer, four channel (image) copy method. | |
NppStatus | nppiCopy_8u_AC4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI) |
8bit unsigned integer, four channel (image) copy method, not affecting Alpha channel. | |
NppStatus | nppiCopy_32f_C1R (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI) |
32bit float, single channel (image) copy method. | |
NppStatus | nppiCopy_32s_C1R (const Npp32s *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oSizeROI) |
32bit signed integer, single channel (image) copy method. | |
Copy Const Border | |
Methodes 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) |
8bit unsigned integer, single channel (image) copy widht 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]) |
8-bit unsigned integer, four channel (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]) |
8-bit unsigned integer, four channel (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) |
Image Transpose | |
Methods for transposing 2D images of various types.
Like matrix transpose, image transpose is a mirror on the image's diagonal (uppler-left to lower-right corner). | |
NppStatus | nppiTranspose_8u_C1R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oROI) |
Transpose 8bit single channel image. | |
Image Color Channel Swap | |
Methods for exchaning 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]) |
8bit unsigned integer, four channel swap channels, in-place. | |
Image Addition Methods | |
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) |
8bit unsigned integer, single channel (image) add. | |
NppStatus | nppiAdd_8u_C4RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor) |
8bit unsigned integer, four channel (image) add. | |
NppStatus | nppiAdd_8u_AC4RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor) |
8bit unsigned integer, four channel (image) add, not affecting alpha channel. | |
NppStatus | nppiAdd_32f_C1R (const Npp32f *pSrc1, int nSrc1Step, const Npp32f *pSrc2, int nSrc2Step, Npp32f *pDst, int nDstStep, NppiSize oSizeROI) |
32bit float, single channel (image) add. | |
Image Subtraction Methods | |
Methods for subracting 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) |
8bit unsigned integer, single channel (image) sub. | |
NppStatus | nppiSub_8u_C4RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor) |
8bit unsigned integer, four channel (image) subtraction. | |
NppStatus | nppiSub_8u_AC4RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor) |
8bit unsigned integer, four channel (image) subtraction, not affecting alpha channel. | |
NppStatus | nppiSub_32f_C1R (const Npp32f *pSrc1, int nSrc1Step, const Npp32f *pSrc2, int nSrc2Step, Npp32f *pDst, int nDstStep, NppiSize oSizeROI) |
32bit float, single channel (image) subtraction. | |
Image Multiplication Methods | |
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) |
8bit unsigned integer, single channel (image) mul. | |
NppStatus | nppiMul_8u_C4RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor) |
8bit unsigned integer, four channel (image) multiplication. | |
NppStatus | nppiMul_8u_AC4RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor) |
8bit unsigned integer, four channel (image) multiplication, not affecting alpha channel. | |
NppStatus | nppiMul_32f_C1R (const Npp32f *pSrc1, int nSrc1Step, const Npp32f *pSrc2, int nSrc2Step, Npp32f *pDst, int nDstStep, NppiSize oSizeROI) |
32bit float, singlechannel (image) multiplication. | |
Image Division Methods | |
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) |
8bit unsigned integer, single channel (image) div. | |
NppStatus | nppiDiv_8u_C4RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor) |
8bit unsigned integer, four channel (image) division. | |
NppStatus | nppiDiv_8u_AC4RSfs (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor) |
8bit unsigned integer, four channel (image) division, not affecting alpha channel. | |
NppStatus | nppiAbsDiff_8u_C4R (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI) |
NppStatus | nppiAbsDiff_8u_AC4R (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI) |
NppStatus | nppiDiv_32f_C1R (const Npp32f *pSrc1, int nSrc1Step, const Npp32f *pSrc2, int nSrc2Step, Npp32f *pDst, int nDstStep, NppiSize oSizeROI) |
32bit float, single channel (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) |
8bit unsigned integer, single channel absolute difference. | |
NppStatus | nppiAbsDiff_32f_C1R (const Npp32f *pSrc1, int nSrc1Step, const Npp32f *pSrc2, int nSrc2Step, Npp32f *pDst, int nDstStep, NppiSize oSizeROI) |
32bit float, single channel absolute difference. | |
Image Threshold Methods | |
Threshold pixels. | |
NppStatus | nppiThreshold_32f_C1R (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, Npp32f nThreshold, NppCmpOp eComparisonOperation) |
32bit float, single channel threshold. | |
NppStatus | nppiThreshold_8u_AC4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u aThresholds[3], NppCmpOp eComparisonOperation) |
8bit unsigned integer, four channel threshold, not affecting alpha channel. | |
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 fullfilled 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) |
8bit unsigned integer, four channel (image) compare. | |
NppStatus | nppiCompare_8u_AC4R (const Npp8u *pSrc1, int nSrc1Step, const Npp8u *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, NppCmpOp eComparisonOperation) |
8bit unsigned integer, four channel (image) compare, ignoring alpha channel. | |
NppStatus | nppiCompare_32f_C1R (const Npp32f *pSrc1, int nSrc1Step, const Npp32f *pSrc2, int nSrc2Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, NppCmpOp eComparisonOperation) |
32bit float, single channel (image) compare. | |
Mean_StdDev | |
Computes the mean and standard deviation of image piexel values | |
NppStatus | nppiMean_StdDev_8u_C1R (const Npp8u *pSrc, int nSrcStep, NppiSize roiSize, Npp64f *pMean, Npp64f *pStdDev) |
Mean_StdDev 8bit single channel image. | |
NormDiff | |
Norm of differences between two 8 bit images. | |
NppStatus | nppiNormDiff_L1_8u_C1R (const Npp8u *pSrc1, int nSrcStep1, const Npp8u *pSrc2, int nSrcStep2, NppiSize oSizeROI, Npp64f *pRetVal) |
NormDiff_L1 computes the L1 norm of differences between two 8bit single channel images. | |
NppStatus | nppiNormDiff_L2_8u_C1R (const Npp8u *pSrc1, int nSrcStep1, const Npp8u *pSrc2, int nSrcStep2, NppiSize oSizeROI, Npp64f *pRetVal) |
NormDiff_L2 computes the L2 norm of differences between two 8bit single channel images. | |
NppStatus | nppiNormDiff_Inf_8u_C1R (const Npp8u *pSrc1, int nSrcStep1, const Npp8u *pSrc2, int nSrcStep2, NppiSize oSizeROI, Npp64f *pRetVal) |
NormDiff_L_Inf computes the L_Inf norm of differences between two 8bit single channel images. | |
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 iKernelDim, Npp32s iAnchorY, Npp32s iDivisor) |
Apply convolution filter with user specified weights for 1D column wise mask. | |
NppStatus | nppiFilterColumn_8u_C4R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oROI, const Npp32s *pKernel, Npp32s nMaskSize, Npp32s nAnchor, Npp32s nDivisor) |
NppStatus | nppiFilterRow_8u_C1R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oROI, const Npp32s *pKernel, Npp32s iKernelDim, Npp32s iAnchorX, Npp32s iDivisor) |
Apply general linear Row convolution filter, with rescaling, in a 1D mask region around each source pixel for 1-channel 8 bit/pixel images. | |
NppStatus | nppiFilterRow_8u_C4R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oROI, const Npp32s *pKernel, Npp32s nMaskSize, Npp32s nAnchor, Npp32s nDivisor) |
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) |
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 float output. | |
NppStatus | nppiSumWindowRow_8u32f_C1R (const Npp8u *pSrc, Npp32s nSrcStep, Npp32f *pDst, Npp32s nDstStep, NppiSize oROI, Npp32s iMaskDim, Npp32s iAnchorX) |
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 float output. | |
2D Morphology Filter | |
2D masked Dilate/Erode for 8 bit images. | |
NppStatus | nppiDilate_8u_C1R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp8u *pMask, NppiSize oMaskSize, NppiPoint oAnchor) |
Apply masked Dilation filter in a 2D mask region around each source pixel for 1-channel 8 bit/pixel images. | |
NppStatus | nppiDilate_8u_C4R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pMask, NppiSize oMaskSize, NppiPoint oAnchor) |
NppStatus | nppiErode_8u_C1R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp8u *pMask, NppiSize oMaskSize, NppiPoint oAnchor) |
Apply masked Erosion filter in a 2D mask region around each source pixel for 1-channel 8 bit/pixel images. | |
NppStatus | nppiErode_8u_C4R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp8u *pMask, NppiSize oMaskSize, NppiPoint oAnchor) |
2D Linear Variable Filters | |
2D linear filters with variable mask kernels for 8 bit images. | |
NppStatus | nppiFilter_8u_C1R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32s *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, Npp32s nDivisor) |
Apply general linear 2D convolution filter, with scaling, for 1-channel 8 bit/pixel images. | |
NppStatus | nppiFilter_8u_C4R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, const Npp32s *pKernel, NppiSize oKernelSize, NppiPoint oAnchor, Npp32s nDivisor) |
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) |
Find average local pixel value in a 2D mask region around each source pixel for 1-channel 8bit/pixel images. | |
NppStatus | nppiFilterBox_8u_C4R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor) |
2D Tile Max/Median/Min | |
2D mask Max/Median/Min for 8 bit images. | |
NppStatus | nppiFilterMax_8u_C1R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor) |
Find Maximum local pixel value in a 2D mask region around each source pixel for 1-channel 8bit/pixel images. | |
NppStatus | nppiFilterMax_8u_C4R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor) |
NppStatus | nppiFilterMin_8u_C1R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor) |
Find Minimum local pixel value in a 2D mask region around each source pixel for 1-channel 8bit/pixel images. | |
NppStatus | nppiFilterMin_8u_C4R (const Npp8u *pSrc, Npp32s nSrcStep, Npp8u *pDst, Npp32s nDstStep, NppiSize oSizeROI, NppiSize oMaskSize, NppiPoint oAnchor) |
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 srcStep, Npp8u *pDst, int dstStep, 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 srcStep, Npp16s *pDst, int dstStep, const Npp16u *pQuantFwdTable, NppiSize oSizeROI) |
Forward DCT, quantization and level shift part of the JPEG encoding. | |
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. | |
Functions | |
NppStatus | nppiHistogramEven_8u_C1R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist, Npp32s *pLevels, int nLevels, Npp32s nLowerLevel, Npp32s nUpperLevel) |
Computes histogram of 8bit single channel image using equal bins. | |
NppStatus | nppiHistogramEven_8u_C4R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp32s *pHist[4], Npp32s *pLevels[4], int nLevels[4], Npp32s nLowerLevel[4], Npp32s nUpperLevel[4]) |
Computes histogram of 8bit four channel image using equal bins. |
NppStatus nppiAbsDiff_32f_C1R | ( | const Npp32f * | pSrc1, | |
int | nSrc1Step, | |||
const Npp32f * | pSrc2, | |||
int | nSrc2Step, | |||
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
32bit float, single channel absolute difference.
Compute abs(sourcePixel1 - sourcePixel2).
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiAbsDiff_8u_AC4R | ( | const Npp8u * | pSrc1, | |
int | nSrc1Step, | |||
const Npp8u * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
NppStatus nppiAbsDiff_8u_C1R | ( | const Npp8u * | pSrc1, | |
int | nSrc1Step, | |||
const Npp8u * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
8bit unsigned integer, single channel absolute difference.
Compute abs(sourcePixel1 - sourcePixel2).
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiAbsDiff_8u_C4R | ( | const Npp8u * | pSrc1, | |
int | nSrc1Step, | |||
const Npp8u * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
NppStatus nppiAdd_32f_C1R | ( | const Npp32f * | pSrc1, | |
int | nSrc1Step, | |||
const Npp32f * | pSrc2, | |||
int | nSrc2Step, | |||
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
32bit float, single channel (image) add.
Add the pixel values of corresponging pixels in the ROI and write them to the output image.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiAdd_8u_AC4RSfs | ( | const Npp8u * | pSrc1, | |
int | nSrc1Step, | |||
const Npp8u * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
int | nScaleFactor | |||
) |
8bit unsigned integer, four channel (image) add, not affecting alpha channel.
Add the pixel values of corresponging pixels in the ROI and write them to the output image.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. | |
nScaleFactor | Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiAdd_8u_C1RSfs | ( | const Npp8u * | pSrc1, | |
int | nSrc1Step, | |||
const Npp8u * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
int | nScaleFactor | |||
) |
8bit unsigned integer, single channel (image) add.
Add the pixel values of corresponging pixels in the ROI and write them to the output image.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. | |
nScaleFactor | Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiAdd_8u_C4RSfs | ( | const Npp8u * | pSrc1, | |
int | nSrc1Step, | |||
const Npp8u * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
int | nScaleFactor | |||
) |
8bit unsigned integer, four channel (image) add.
Add the pixel values of corresponging pixels in the ROI and write them to the output image.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. | |
nScaleFactor | Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiCompare_32f_C1R | ( | const Npp32f * | pSrc1, | |
int | nSrc1Step, | |||
const Npp32f * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
NppCmpOp | eComparisonOperation | |||
) |
32bit float, single channel (image) compare.
Compare pSrc1's pixels with corresponging pixels in pSrc2.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. | |
eComparisonOperation | Specifies the comparison operation to be used in the pixel comparison. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiCompare_8u_AC4R | ( | const Npp8u * | pSrc1, | |
int | nSrc1Step, | |||
const Npp8u * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
NppCmpOp | eComparisonOperation | |||
) |
8bit unsigned integer, four channel (image) compare, ignoring alpha channel.
Compare pSrc1's pixels with corresponging pixels in pSrc2.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. | |
eComparisonOperation | Specifies the comparison operation to be used in the pixel comparison. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiCompare_8u_C4R | ( | const Npp8u * | pSrc1, | |
int | nSrc1Step, | |||
const Npp8u * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
NppCmpOp | eComparisonOperation | |||
) |
8bit unsigned integer, four channel (image) compare.
Compare pSrc1's pixels with corresponging pixels in pSrc2.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. | |
eComparisonOperation | Specifies the comparison operation to be used in the pixel comparison. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiConvert_16s32f_C1R | ( | const Npp16s * | pSrc, | |
int | nSrcStep, | |||
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
16-bit singed integer to 32-bit float, single channel conversion.
For detailed documentation see nppiConverte_8u16u_C1R().
NppStatus nppiConvert_16s32s_C1R | ( | const Npp16s * | pSrc, | |
int | nSrcStep, | |||
Npp32s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
16-bit signed 32-bit signed integer, single channel conversion.
For detailed documentation see nppiConvert_8u16u_C1R().
pSrc | Pointer to source image. | |
nSrcStep | Source-image line step. | |
pDst | Pointer to destination image. | |
nDstStep | Destination-image line step. | |
oSizeROI | Size of the region-of-interest. |
NppStatus nppiConvert_16s8u_AC4R | ( | const Npp16s * | pSrc, | |
int | nSrcStep, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
16-bit signed integer to 8-bit unsigned integer, four channel conversion not affecting alpha.
For detailed documentation see nppiConverte_8u16u_C1R().
NppStatus nppiConvert_16s8u_C1R | ( | const Npp16s * | pSrc, | |
int | nSrcStep, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
16-bit signed integer to 8-bit unsigned integer, four single conversion.
For detailed documentation see nppiConvert_8u16u_C1R().
NppStatus nppiConvert_16s8u_C4R | ( | const Npp16s * | pSrc, | |
int | nSrcStep, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
16-bit signed integer to 8-bit unsigned integer, four channel conversion not affecting alpha.
For detailed documentation see nppiConvert_8u16u_C1R().
NppStatus nppiConvert_16u32f_C1R | ( | const Npp16u * | pSrc, | |
int | nSrcStep, | |||
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
16-bit unsinged integer to 32-bit float, single channel conversion.
For detailed documentation see nppiConverte_8u16u_C1R().
pSrc | Pointer to source image. | |
nSrcStep | Source-image line step. | |
pDst | Pointer to destination image. | |
nDstStep | Destination-image line step. | |
oSizeROI | Size of the region-of-interest. |
NppStatus nppiConvert_16u32s_C1R | ( | const Npp16u * | pSrc, | |
int | nSrcStep, | |||
Npp32s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
16-bit unsinged integer to 32-bit signed, single channel conversion.
For detailed documentation see nppiConverte_8u16u_C1R().
pSrc | Pointer to source image. | |
nSrcStep | Source-image line step. | |
pDst | Pointer to destination image. | |
nDstStep | Destination-image line step. | |
oSizeROI | Size of the region-of-interest. |
NppStatus nppiConvert_16u8u_AC4R | ( | const Npp16u * | pSrc, | |
int | nSrcStep, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
16-bit unsigned integer to 8-bit unsigned integer, four channel conversion not affecting alpha.
For detailed documentation see nppiConvert_8u16u_C1R().
NppStatus nppiConvert_16u8u_C1R | ( | const Npp16u * | pSrc, | |
int | nSrcStep, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
16-bit unsigned integer to 8-bit unsigned integer, single channel conversion.
For detailed documentation see nppiConvert_8u16u_C1R().
NppStatus nppiConvert_16u8u_C4R | ( | const Npp16u * | pSrc, | |
int | nSrcStep, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
16-bit unsigned integer to 8-bit unsigned integer, four channel conversion.
For detailed documentation see nppiConvert_8u16u_C1R().
NppStatus nppiConvert_32f16s_C1R | ( | const Npp32f * | pSrc, | |
int | nSrcStep, | |||
Npp16s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
NppRoundMode | eRoundMode | |||
) |
32-bit float to 16-bit signed integer, single channel conversion.
For detailed documentation see nppiConverte_8u16u_C1R().
pSrc | Pointer to source image. | |
nSrcStep | Source-image line step. | |
pDst | Pointer to destination image. | |
nDstStep | Destination-image line step. | |
oSizeROI | Size of the region-of-interest. | |
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 float to 16-bit unsigned integer, single channel conversion.
For detailed documentation see nppiConverte_8u16u_C1R().
pSrc | Pointer to source image. | |
nSrcStep | Source-image line step. | |
pDst | Pointer to destination image. | |
nDstStep | Destination-image line step. | |
oSizeROI | Size of the region-of-interest. | |
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 | |||
) |
8-bit unsigned integer to 16-bit signed integer, four channel conversion not affecting alpha.
For detailed documentation see nppiConverte_8u16u_C1R().
NppStatus nppiConvert_8u16s_C1R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
Npp16s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
8-bit unsigned integer to 16-bit singed integer, single channel conversion.
For detailed documentation see nppiConvert_8u16u_C1R().
NppStatus nppiConvert_8u16s_C4R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
Npp16s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
8-bit unsigned integer to 16-bit signed integer, four channel conversion.
For detailed documentation see nppiConvert_8u16u_C1R().
NppStatus nppiConvert_8u16u_AC4R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
Npp16u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
8-bit unsigned integer to 16-bit unsigned integer, four channel conversion not affecting alpha.
For detailed documentation see nppiConvert_8u16u_C1R().
NppStatus nppiConvert_8u16u_C1R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
Npp16u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
8-bit unsigned integer to 16-bit unsigned integer, single channel conversion.
pSrc | Pointer to the source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrcStep | Number of bytes between line starts of successive lines in source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If nSrcStep or nDstStep is null or negative or if the ROI-width exceeds on of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiConvert_8u16u_C4R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
Npp16u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
8-bit unsigned integer to 16-bit unsigned integer, four channel conversion.
For detailed documentation see nppiConvert_8u16u_C1R().
NppStatus nppiCopy_32f_C1R | ( | const Npp32f * | pSrc, | |
int | nSrcStep, | |||
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
32bit float, single channel (image) copy method.
pSrc | Pointer to the source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrcStep | Number of bytes between line starts of successive lines in source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If nSrcStep or nDstStep is null or negative or if the ROI-width exceeds on of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiCopy_32s_C1R | ( | const Npp32s * | pSrc, | |
int | nSrcStep, | |||
Npp32s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
32bit signed integer, single channel (image) copy method.
pSrc | Pointer to the source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrcStep | Number of bytes between line starts of successive lines in source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If nSrcStep or nDstStep is null or negative or if the ROI-width exceeds on of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiCopy_8u_AC4R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
8bit unsigned integer, four channel (image) copy method, not affecting Alpha channel.
This is for copying the color portion of RGBA images, leaving the destination image's alpha information intact.
pSrc | Pointer to the source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrcStep | Number of bytes between line starts of successive lines in source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If nSrcStep or nDstStep is null or negative or if the ROI-width exceeds on of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiCopy_8u_C1R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
8bit unsigned integer, single channel (image) copy method.
pSrc | Pointer to the source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrcStep | Number of bytes between line starts of successive lines in source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If nSrcStep or nDstStep is null or negative or if the ROI-width exceeds on of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiCopy_8u_C4R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
8bit unsigned integer, four channel (image) copy method.
pSrc | Pointer to the source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrcStep | Number of bytes between line starts of successive lines in source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If nSrcStep or nDstStep is null or negative or if the ROI-width exceeds on of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiCopyConstBorder_32s_C1R | ( | const Npp32s * | pSrc, | |
int | nSrcStep, | |||
NppiSize | oSrcSizeROI, | |||
Npp32s * | pDst, | |||
int | nDstStep, | |||
NppiSize | oDstSizeROI, | |||
int | nTopBorderHeight, | |||
int | nLeftBorderWidth, | |||
Npp32s | nValue | |||
) |
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] | |||
) |
8-bit unsigned integer, four channel (image) copy with constant border color.
See nppiCopyConstBorder_8u_C1R() for detailed documentation.
pSrc | Pointer to source image. | |
nSrcStep | Source-image line step. | |
oSrcSizeROI | Size of the source region-of-interest. | |
pDst | Pointer to destination image. | |
nDstStep | Destination-image line step. | |
oDstSizeROI | Size of the destination region-of-interest. | |
nTopBorderHeight | Hight of top border. | |
nLeftBorderWidth | Width of left border. | |
aValue | Vector of the RGB values of the border pixels. Because this method doesn't 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 | |||
) |
8bit unsigned integer, single channel (image) copy widht constant border color.
pSrc | Pointer to the source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrcStep | Number of bytes between line starts of successive lines in source image.. | |
oSrcSizeROI | Size of the source region of pixels. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
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 destinaiton 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. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If nSrcStep or nDstStep is null or negative or if the ROI-width exceeds on of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
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] | |||
) |
8-bit unsigned integer, four channel (image) copy with constant border color.
See nppiCopyConstBorder_8u_C1R() for detailed documentation.
pSrc | Pointer to source image. | |
nSrcStep | Source-image line step. | |
oSrcSizeROI | Size of the source region-of-interest. | |
pDst | Pointer to destination image. | |
nDstStep | Destination-image line step. | |
oDstSizeROI | Size of the destination region-of-interest. | |
nTopBorderHeight | Hight 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 | srcStep, | |||
Npp16s * | pDst, | |||
int | dstStep, | |||
const Npp16u * | pQuantFwdTable, | |||
NppiSize | oSizeROI | |||
) |
Forward DCT, quantization and level shift part of the JPEG encoding.
Input is expected in 8x8 macroblocks and output is expected to be in 64x1 macroblocks.
pSrc | Pointer to the 8-bit source image. | |
srcStep | Distance in bytes between starts of consecutive lines of the source image. | |
pDst | Pointer to the 16-bit destination image. | |
dstStep | Distance in bytes between starts of consecutive lines of the destination image. | |
pQuantFwdTable | Forward quantization tables for JPEG encoding. | |
oSizeROI | Width and height of the regions of interest. |
NPP_SIZE_ERROR For negative input height/width or not a multiple of 8 width/height.
NPP_STEP_ERROR If input image width is not multiple of 8 or does not match ROI.
NPP_NULL_POINTER_ERROR If the destination pointer is NULL.
NPP_TEXTURE_BIND_ERROR if either texture bind or unbind call used internally fails.
NPP_CUDA_KERNEL_EXECUTION_ERROR If one of the CUDA calls caused an error, this is returned.
NppStatus nppiDCTQuantInv8x8LS_JPEG_16s8u_C1R | ( | Npp16s * | pSrc, | |
int | srcStep, | |||
Npp8u * | pDst, | |||
int | dstStep, | |||
const Npp16u * | pQuantInvTable, | |||
NppiSize | oSizeROI | |||
) |
Inverse DCT, de-quantization and level shift part of the JPEG decoding.
Input is expected in 64x1 macroblocks and output is expected to be in 8x8 macroblocks.
pSrc | Pointer to the 16-bit source image. | |
srcStep | Distance in bytes between starts of consecutive lines of the source image. | |
pDst | Pointer to the 8-bit destination image. | |
dstStep | Distance in bytes between starts of consecutive lines of the destination image. | |
pQuantInvTable | Inverse quantization tables for JPEG decoding. | |
oSizeROI | Width and height of the regions of interest. |
NPP_SIZE_ERROR For negative input height/width or not a multiple of 8 width/height.
NPP_STEP_ERROR If input image width is not multiple of 8 or does not match ROI.
NPP_NULL_POINTER_ERROR If the destination pointer is NULL.
NPP_TEXTURE_BIND_ERROR if either texture bind or unbind call used internally fails.
NPP_CUDA_KERNEL_EXECUTION_ERROR If one of the CUDA calls caused an error, this is returned.
NppStatus nppiDilate_8u_C1R | ( | const Npp8u * | pSrc, | |
Npp32s | nSrcStep, | |||
Npp8u * | pDst, | |||
Npp32s | nDstStep, | |||
NppiSize | oSizeROI, | |||
const Npp8u * | pMask, | |||
NppiSize | oMaskSize, | |||
NppiPoint | oAnchor | |||
) |
Apply masked Dilation filter in a 2D mask region around each source pixel for 1-channel 8 bit/pixel images.
Result pixel is equal to the maximum neighboring pixel values within a mask region defined by oMaskSize and oAnchorPoint, but only neighboring pixel values whose corresponding mask values are non-zero are considered.
pSrc | Pointer to the start address of the ROI region of the source image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nSrcStep | Distance in bytes between starts of consecutive lines of the source image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
pDst | Pointer to the start address of the target ROI region in the destination image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nDstStep | Distance in bytes between starts of consecutive lines of the destination image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
oSizeROI | Width and Height of the regions of interest. | |
pMask | Pointer to the start address of the mask array | |
oMaskSize | Width and Height mask array (must be equal to each other and either a 3, 5 or 7 in present implementation) | |
oAnchor | X and Y offsets of the mask origin frame of reference w.r.t the source pixel (must be centered on oMaskDim, i.e. 0.5 * (oMaskDim.width - 1) in present implementation) |
NPP_NULL_POINTER_ERROR if pSrc or pDst is NULL
NPP_SIZE_ERROR if oROI Width or Height is Negative
NPP_STEP_ERROR if nSrcStep or nDstStep is less than oROI.Width
NPP_INVALID_INPUT if supplied function arguments are outside currently supported ranges, or if none of the coefficients in the array at pMask are non-zero
NPP_MEMCPY_ERROR if there is an error copying mask coefficients from pMask to Constant memory
NPP_CUDA_KERNEL_EXECUTION_ERROR if there is an error in the computational kernel launch
NppStatus nppiDilate_8u_C4R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
const Npp8u * | pMask, | |||
NppiSize | oMaskSize, | |||
NppiPoint | oAnchor | |||
) |
NppStatus nppiDiv_32f_C1R | ( | const Npp32f * | pSrc1, | |
int | nSrc1Step, | |||
const Npp32f * | pSrc2, | |||
int | nSrc2Step, | |||
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
32bit float, single channel (image) division.
Divide pixels in pSrc2 by pSrc1's pixels.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiDiv_8u_AC4RSfs | ( | const Npp8u * | pSrc1, | |
int | nSrc1Step, | |||
const Npp8u * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
int | nScaleFactor | |||
) |
8bit unsigned integer, four channel (image) division, not affecting alpha channel.
Divide pixels in pSrc2 by pSrc1's pixels.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. | |
nScaleFactor | Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiDiv_8u_C1RSfs | ( | const Npp8u * | pSrc1, | |
int | nSrc1Step, | |||
const Npp8u * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
int | nScaleFactor | |||
) |
8bit unsigned integer, single channel (image) div.
Dived pixels in pSrc2 by pSrc1's pixels.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. | |
nScaleFactor | Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiDiv_8u_C4RSfs | ( | const Npp8u * | pSrc1, | |
int | nSrc1Step, | |||
const Npp8u * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
int | nScaleFactor | |||
) |
8bit unsigned integer, four channel (image) division.
Divide pixels in pSrc2 by pSrc1's pixels.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. | |
nScaleFactor | Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiErode_8u_C1R | ( | const Npp8u * | pSrc, | |
Npp32s | nSrcStep, | |||
Npp8u * | pDst, | |||
Npp32s | nDstStep, | |||
NppiSize | oSizeROI, | |||
const Npp8u * | pMask, | |||
NppiSize | oMaskSize, | |||
NppiPoint | oAnchor | |||
) |
Apply masked Erosion filter in a 2D mask region around each source pixel for 1-channel 8 bit/pixel images.
Result pixel is equal to the minimum neighboring pixel values within a mask region defined by oMaskSize and oAnchorPoint, but only neighboring pixel values whose corresponding mask values are non-zero are considered.
pSrc | Pointer to the start address of the ROI region of the source image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nSrcStep | Distance in bytes between starts of consecutive lines of the source image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
pDst | Pointer to the start address of the target ROI region in the destination image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nDstStep | Distance in bytes between starts of consecutive lines of the destination image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
oSizeROI | Width and Height of the regions of interest. | |
pMask | Pointer to the start address of the mask array | |
oMaskSize | Width and Height mask array (must be equal to each other and either a 3, 5 or 7 in present implementation) | |
oAnchor | X and Y offsets of the mask origin frame of reference w.r.t the source pixel (must be centered on oMaskDim, i.e. 0.5 * (oMaskDim.width - 1) in present implementation) |
NPP_NULL_POINTER_ERROR if pSrc or pDst is NULL
NPP_SIZE_ERROR if oROI Width or Height is Negative
NPP_STEP_ERROR if nSrcStep or nDstStep is less than oROI.Width
NPP_INVALID_INPUT if supplied function arguments are outside currently supported ranges, or if none of the coefficients in the array at pMask are non-zero
NPP_MEMCPY_ERROR if there is an error copying mask coefficients from pMask to Constant memory
NPP_CUDA_KERNEL_EXECUTION_ERROR if there is an error in the computational kernel launch
NppStatus nppiErode_8u_C4R | ( | const Npp8u * | pSrc, | |
Npp32s | nSrcStep, | |||
Npp8u * | pDst, | |||
Npp32s | nDstStep, | |||
NppiSize | oSizeROI, | |||
const Npp8u * | pMask, | |||
NppiSize | oMaskSize, | |||
NppiPoint | oAnchor | |||
) |
NppStatus nppiFilter_8u_C1R | ( | const Npp8u * | pSrc, | |
Npp32s | nSrcStep, | |||
Npp8u * | pDst, | |||
Npp32s | nDstStep, | |||
NppiSize | oSizeROI, | |||
const Npp32s * | pKernel, | |||
NppiSize | oKernelSize, | |||
NppiPoint | oAnchor, | |||
Npp32s | nDivisor | |||
) |
Apply general linear 2D convolution filter, with scaling, 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 neighborhood pixel values in the source image defined by oKernelSize and oAnchor, divided by iDivisor.
pSrc | Pointer to the start address of the ROI region of the source image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nSrcStep | Distance in bytes between starts of consecutive lines of the source image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
pDst | Pointer to the start address of the target ROI region in the destination image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nDstStep | Distance in bytes between starts of consecutive lines of the destination image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
oSizeROI | Width and Height of the regions of interest. | |
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 (must be either 3, 5 or 7 and equal to each other in present implementation) | |
oAnchor | X and Y offsets of the kernel origin frame of reference w.r.t the source pixel (must be centered, i.e. 0.5 * (width - 1) in present implementation) | |
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. |
NPP_NULL_POINTER_ERROR if pSrc or pDst is NULL
NPP_SIZE_ERROR if oROI Width or Height is Negative
NPP_STEP_ERROR if nSrcStep or nDstStep is less than oROI.Width
NPP_INVALID_INPUT if supplied function arguments are outside currently supported ranges
NPP_MEMCPY_ERROR if there is an error copying mask coefficients from pMask to Constant memory
NPP_CUDA_KERNEL_EXECUTION_ERROR if there is an error in the computational kernel launch
NppStatus nppiFilter_8u_C4R | ( | const Npp8u * | pSrc, | |
Npp32s | nSrcStep, | |||
Npp8u * | pDst, | |||
Npp32s | nDstStep, | |||
NppiSize | oSizeROI, | |||
const Npp32s * | pKernel, | |||
NppiSize | oKernelSize, | |||
NppiPoint | oAnchor, | |||
Npp32s | nDivisor | |||
) |
NppStatus nppiFilterBox_8u_C1R | ( | const Npp8u * | pSrc, | |
Npp32s | nSrcStep, | |||
Npp8u * | pDst, | |||
Npp32s | nDstStep, | |||
NppiSize | oSizeROI, | |||
NppiSize | oMaskSize, | |||
NppiPoint | oAnchor | |||
) |
Find average local pixel value in a 2D mask region around each source pixel for 1-channel 8bit/pixel images.
pSrc | Pointer to the start address of the ROI region of the source image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nSrcStep | Distance in bytes between starts of consecutive lines of the source image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
pDst | Pointer to the start address of the target ROI region in the destination image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nDstStep | Distance in bytes between starts of consecutive lines of the destination image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
oSizeROI | Width and Height of the regions of interest. | |
oMaskSize | Width and Height of the neighborhood region for the local Avg operation (must be either 3, 5 or 7 and equal to each other in present implementation) | |
oAnchor | X and Y offsets of the kernel origin frame of reference w.r.t the source pixel (must be centered, i.e. 0.5 * (width - 1) in present implementation) |
NPP_NULL_POINTER_ERROR if pSrc or pDst is NULL
NPP_SIZE_ERROR if oROI Width or Height is Negative
NPP_STEP_ERROR if nSrcStep or nDstStep is less than oROI.Width
NPP_INVALID_INPUT if supplied function arguments are outside currently supported ranges
NPP_CUDA_KERNEL_EXECUTION_ERROR if there is an error in the computational kernel launch
NppStatus nppiFilterBox_8u_C4R | ( | const Npp8u * | pSrc, | |
Npp32s | nSrcStep, | |||
Npp8u * | pDst, | |||
Npp32s | nDstStep, | |||
NppiSize | oSizeROI, | |||
NppiSize | oMaskSize, | |||
NppiPoint | oAnchor | |||
) |
NppStatus nppiFilterColumn_8u_C1R | ( | const Npp8u * | pSrc, | |
Npp32s | nSrcStep, | |||
Npp8u * | pDst, | |||
Npp32s | nDstStep, | |||
NppiSize | oROI, | |||
const Npp32s * | pKernel, | |||
Npp32s | iKernelDim, | |||
Npp32s | iAnchorY, | |||
Npp32s | iDivisor | |||
) |
Apply convolution filter with user specified weights for 1D column wise mask.
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 iKernelDim and iAnchorY, divided by iDivisor.
Note: The pixel-weight multiplication is executed as a 24-bit operation for performance reasons. This means that weights outside the range of a 16-bit signed integer will likely cause wrap-around errors.
pSrc | Pointer to the start address of the ROI region of the source image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nSrcStep | Distance in bytes between starts of consecutive lines of the source image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
pDst | Pointer to the start address of the target ROI region in the destination image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nDstStep | Distance in bytes between starts of consecutive lines of the destination image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
oROI | Width and Height of the regions of interest. | |
pKernel | Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order. | |
iKernelDim | Length of the linear kernel array (must be either 3, 5 or 7 in present implementation) | |
iAnchorY | Y offset of the kernel origin frame of reference w.r.t the source pixel (must be centered on iKernelDim, i.e. 0.5 * (iKernelDim - 1) in present implementation) | |
iDivisor | 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. |
NPP_NULL_POINTER_ERROR if pSrc or pDst is NULL
NPP_SIZE_ERROR if oROI Width or Height is Negative
NPP_STEP_ERROR if nSrcStep or nDstStep is less than oROI.Width
NPP_INVALID_INPUT if supplied function arguments are outside currently supported ranges
NPP_MEMCPY_ERROR if there is an error copying mask coefficients from pKernel to Constant memory
NPP_CUDA_KERNEL_EXECUTION_ERROR if there is an error in the computational kernel launch
NppStatus nppiFilterColumn_8u_C4R | ( | const Npp8u * | pSrc, | |
Npp32s | nSrcStep, | |||
Npp8u * | pDst, | |||
Npp32s | nDstStep, | |||
NppiSize | oROI, | |||
const Npp32s * | pKernel, | |||
Npp32s | nMaskSize, | |||
Npp32s | nAnchor, | |||
Npp32s | nDivisor | |||
) |
NppStatus nppiFilterMax_8u_C1R | ( | const Npp8u * | pSrc, | |
Npp32s | nSrcStep, | |||
Npp8u * | pDst, | |||
Npp32s | nDstStep, | |||
NppiSize | oSizeROI, | |||
NppiSize | oMaskSize, | |||
NppiPoint | oAnchor | |||
) |
Find Maximum local pixel value in a 2D mask region around each source pixel for 1-channel 8bit/pixel images.
pSrc | Pointer to the start address of the ROI region of the source image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nSrcStep | Distance in bytes between starts of consecutive lines of the source image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
pDst | Pointer to the start address of the target ROI region in the destination image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nDstStep | Distance in bytes between starts of consecutive lines of the destination image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
oSizeROI | Width and Height of the regions of interest. | |
oMaskSize | Width and Height of the neighborhood region for the local Max operation (must be either 3, 5 or 7 and equal to each other in present implementation) | |
oAnchor | X and Y offsets of the kernel origin frame of reference w.r.t the source pixel (must be centered, i.e. 0.5 * (width - 1) in present implementation) |
NPP_NULL_POINTER_ERROR if pSrc or pDst is NULL
NPP_SIZE_ERROR if oROI Width or Height is Negative
NPP_STEP_ERROR if nSrcStep or nDstStep is less than oROI.Width
NPP_INVALID_INPUT if supplied function arguments are outside currently supported ranges
NPP_CUDA_KERNEL_EXECUTION_ERROR if there is an error in the computational kernel launch
NppStatus nppiFilterMax_8u_C4R | ( | const Npp8u * | pSrc, | |
Npp32s | nSrcStep, | |||
Npp8u * | pDst, | |||
Npp32s | nDstStep, | |||
NppiSize | oSizeROI, | |||
NppiSize | oMaskSize, | |||
NppiPoint | oAnchor | |||
) |
NppStatus nppiFilterMin_8u_C1R | ( | const Npp8u * | pSrc, | |
Npp32s | nSrcStep, | |||
Npp8u * | pDst, | |||
Npp32s | nDstStep, | |||
NppiSize | oSizeROI, | |||
NppiSize | oMaskSize, | |||
NppiPoint | oAnchor | |||
) |
Find Minimum local pixel value in a 2D mask region around each source pixel for 1-channel 8bit/pixel images.
pSrc | Pointer to the start address of the ROI region of the source image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nSrcStep | Distance in bytes between starts of consecutive lines of the source image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
pDst | Pointer to the start address of the target ROI region in the destination image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nDstStep | Distance in bytes between starts of consecutive lines of the destination image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
oSizeROI | Width and Height of the regions of interest. | |
oMaskSize | Width and Height of the neighborhood region for the local Min operation (must be either 3, 5 or 7 and equal to each other in present implementation) | |
oAnchor | X and Y offsets of the kernel origin frame of reference w.r.t the source pixel (must be centered, i.e. 0.5 * (width - 1) in present implementation) |
NPP_NULL_POINTER_ERROR if pSrc or pDst is NULL
NPP_SIZE_ERROR if oROI Width or Height is Negative
NPP_STEP_ERROR if nSrcStep or nDstStep is less than oROI.Width
NPP_INVALID_INPUT if supplied function arguments are outside currently supported ranges
NPP_CUDA_KERNEL_EXECUTION_ERROR if there is an error in the computational kernel launch
NppStatus nppiFilterMin_8u_C4R | ( | const Npp8u * | pSrc, | |
Npp32s | nSrcStep, | |||
Npp8u * | pDst, | |||
Npp32s | nDstStep, | |||
NppiSize | oSizeROI, | |||
NppiSize | oMaskSize, | |||
NppiPoint | oAnchor | |||
) |
NppStatus nppiFilterRow_8u_C1R | ( | const Npp8u * | pSrc, | |
Npp32s | nSrcStep, | |||
Npp8u * | pDst, | |||
Npp32s | nDstStep, | |||
NppiSize | oROI, | |||
const Npp32s * | pKernel, | |||
Npp32s | iKernelDim, | |||
Npp32s | iAnchorX, | |||
Npp32s | iDivisor | |||
) |
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 | Pointer to the start address of the ROI region of the source image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nSrcStep | Distance in bytes between starts of consecutive lines of the source image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
pDst | Pointer to the start address of the target ROI region in the destination image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nDstStep | Distance in bytes between starts of consecutive lines of the destination image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
oROI | Width and Height of the regions of interest. | |
pKernel | Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order. | |
iKernelDim | Length of the linear kernel array (must be either 3, 5 or 7 in present implementation) | |
iAnchorX | X offset of the kernel origin frame of reference w.r.t the source pixel (must be centered on iKernelDim, i.e. 0.5 * (iKernelDim - 1) in present implementation) | |
iDivisor | 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. |
NPP_NULL_POINTER_ERROR if pSrc or pDst is NULL
NPP_SIZE_ERROR if oROI Width or Height is Negative
NPP_STEP_ERROR if nSrcStep or nDstStep is less than oROI.Width
NPP_INVALID_INPUT if supplied function arguments are outside currently supported ranges
NPP_MEMCPY_ERROR if there is an error copying mask coefficients from pKernel to Constant memory
NPP_CUDA_KERNEL_EXECUTION_ERROR if there is an error in the computational kernel launch
NppStatus nppiFilterRow_8u_C4R | ( | const Npp8u * | pSrc, | |
Npp32s | nSrcStep, | |||
Npp8u * | pDst, | |||
Npp32s | nDstStep, | |||
NppiSize | oROI, | |||
const Npp32s * | pKernel, | |||
Npp32s | nMaskSize, | |||
Npp32s | nAnchor, | |||
Npp32s | nDivisor | |||
) |
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>. |
NppStatus nppiHistogramEven_8u_C1R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
NppiSize | oSizeROI, | |||
Npp32s * | pHist, | |||
Npp32s * | pLevels, | |||
int | nLevels, | |||
Npp32s | nLowerLevel, | |||
Npp32s | nUpperLevel | |||
) |
Computes histogram of 8bit single channel image using equal bins.
pSrc | Pointer to the source image ROI. | |
nSrcStep | Distance in bytes between starts of consecutive lines of the source image. | |
oSizeROI | Width and height of the regions of interest. | |
pHist | Pointer to the computed histogram. | |
pLevels | Pointer to array of level values. | |
nLevels | Number of levels | |
nLowerLevel | Lower level boundary | |
nUpperLevel | Upper level boundary |
NPP_NULL_POINTER_ERROR if one of the specified pointers is NULL.
NPP_SIZE_ERROR indicates an error if oROI has a field with zero or negative value.
NPP_MEM_ALLOC_ERR indicates an error if there is not enough memory for the inner histogram.
NPP_HISTO_NUMBER_OF_LEVELS_ERROR indicates an error if nLevels is less than 2.
NPP_CUDA_KERNEL_EXECUTION_ERROR if the CUDA kernel fails.
NppStatus nppiHistogramEven_8u_C4R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
NppiSize | oSizeROI, | |||
Npp32s * | pHist[4], | |||
Npp32s * | pLevels[4], | |||
int | nLevels[4], | |||
Npp32s | nLowerLevel[4], | |||
Npp32s | nUpperLevel[4] | |||
) |
Computes histogram of 8bit four channel image using equal bins.
pSrc | Pointer to the source image ROI. | |
nSrcStep | Distance in bytes between starts of consecutive lines of the source image. | |
oSizeROI | Width and height of the regions of interest. | |
pHist | Pointer to the computed histogram. An array of pointers to the histogram for each channel. | |
pLevels | An array of pointers to the level values array for each channel. | |
nLevels | Number of levels, separate for each channel. | |
nLowerLevel | Lower level boundary, separate for each channel. | |
nUpperLevel | Upper level boundary, separate for each channel. |
NPP_NULL_POINTER_ERROR if one of the specified pointers is NULL.
NPP_SIZE_ERROR indicates an error if oROI has a field with zero or negative value.
NPP_MEM_ALLOC_ERR indicates an error if there is not enough memory for the inner histogram.
NPP_HISTO_NUMBER_OF_LEVELS_ERROR indicates an error if nLevels is less than 2.
NPP_CUDA_KERNEL_EXECUTION_ERROR if the CUDA kernel fails.
Npp16s* nppiMalloc_16s_C1 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
16bit signed, single-channel 2D (image) memory allocator.
nWidthPixels | The width of the 2D array (image) to be allocated. | |
nHeightPixels | The height of the 2D array (image) to be allocated. | |
pStepBytes | The number of bytes between successive rows of pixels is returned via this pointer to int. |
Npp16s* nppiMalloc_16s_C4 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
16bit signed, four-channel 2D (image) memory allocator.
nWidthPixels | The width of the 2D array (image) to be allocated. | |
nHeightPixels | The height of the 2D array (image) to be allocated. | |
pStepBytes | The number of bytes between successive rows of pixels is returned via this pointer to int. |
Npp16u* nppiMalloc_16u_C1 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
16bit unsigned, single-channel 2D (image) memory allocator.
nWidthPixels | The width of the 2D array (image) to be allocated. | |
nHeightPixels | The height of the 2D array (image) to be allocated. | |
pStepBytes | The number of bytes between successive rows of pixels is returned via this pointer to int. |
Npp16u* nppiMalloc_16u_C3 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
16bit unsigned, triple-channel 2D (image) memory allocator.
nWidthPixels | The width of the 2D array (image) to be allocated. | |
nHeightPixels | The height of the 2D array (image) to be allocated. | |
pStepBytes | The number of bytes between successive rows of pixels is returned via this pointer to int. |
Npp16u* nppiMalloc_16u_C4 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
16bit unsigned, four-channel 2D (image) memory allocator.
nWidthPixels | The width of the 2D array (image) to be allocated. | |
nHeightPixels | The height of the 2D array (image) to be allocated. | |
pStepBytes | The number of bytes between successive rows of pixels is returned via this pointer to int. |
Npp32f* nppiMalloc_32f_C1 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
32bit floating-point, single-channel 2D (image) memory allocator.
nWidthPixels | The width of the 2D array (image) to be allocated. | |
nHeightPixels | The height of the 2D array (image) to be allocated. | |
pStepBytes | The number of bytes between successive rows of pixels is returned via this pointer to int. |
Npp32f* nppiMalloc_32f_C3 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
32bit floating-point, triple-channel 2D (image) memory allocator.
nWidthPixels | The width of the 2D array (image) to be allocated. | |
nHeightPixels | The height of the 2D array (image) to be allocated. | |
pStepBytes | The number of bytes between successive rows of pixels is returned via this pointer to int. |
Npp32f* nppiMalloc_32f_C4 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
32bit floating-point, quad-channel 2D (image) memory allocator.
nWidthPixels | The width of the 2D array (image) to be allocated. | |
nHeightPixels | The height of the 2D array (image) to be allocated. | |
pStepBytes | The number of bytes between successive rows of pixels is returned via this pointer to int. |
Npp32s* nppiMalloc_32s_C1 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
32bit signed, single-channel 2D (image) memory allocator.
nWidthPixels | The width of the 2D array (image) to be allocated. | |
nHeightPixels | The height of the 2D array (image) to be allocated. | |
pStepBytes | The number of bytes between successive rows of pixels is returned via this pointer to int. |
Npp32s* nppiMalloc_32s_C3 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
32bit signed, triple-channel 2D (image) memory allocator.
nWidthPixels | The width of the 2D array (image) to be allocated. | |
nHeightPixels | The height of the 2D array (image) to be allocated. | |
pStepBytes | The number of bytes between successive rows of pixels is returned via this pointer to int. |
Npp32s* nppiMalloc_32s_C4 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
32bit signed, quad-channel 2D (image) memory allocator.
nWidthPixels | The width of the 2D array (image) to be allocated. | |
nHeightPixels | The height of the 2D array (image) to be allocated. | |
pStepBytes | The number of bytes between successive rows of pixels is returned via this pointer to int. |
Npp8u* nppiMalloc_8u_C1 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
8bit unsigned, single-channel 2D (image) memory allocator.
nWidthPixels | The width of the 2D array (image) to be allocated. | |
nHeightPixels | The height of the 2D array (image) to be allocated. | |
pStepBytes | The number of bytes between successive rows of pixels is returned via this pointer to int. |
Npp8u* nppiMalloc_8u_C2 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
8bit unsigned, two-channel 2D (image) memory allocator.
nWidthPixels | The width of the 2D array (image) to be allocated. | |
nHeightPixels | The height of the 2D array (image) to be allocated. | |
pStepBytes | The number of bytes between successive rows of pixels is returned via this pointer to int. |
Npp8u* nppiMalloc_8u_C3 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
8bit unsigned, three-channel 2D (image) memory allocator.
nWidthPixels | The width of the 2D array (image) to be allocated. | |
nHeightPixels | The height of the 2D array (image) to be allocated. | |
pStepBytes | The number of bytes between successive rows of pixels is returned via this pointer to int. |
Npp8u* nppiMalloc_8u_C4 | ( | int | nWidthPixels, | |
int | nHeightPixels, | |||
int * | pStepBytes | |||
) |
8bit unsigned, four-channel 2D (image) memory allocator.
nWidthPixels | The width of the 2D array (image) to be allocated. | |
nHeightPixels | The height of the 2D array (image) to be allocated. | |
pStepBytes | The number of bytes between successive rows of pixels is returned via this pointer to int. |
NppStatus nppiMean_StdDev_8u_C1R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
NppiSize | roiSize, | |||
Npp64f * | pMean, | |||
Npp64f * | pStdDev | |||
) |
Mean_StdDev 8bit single channel image.
pSrc | Pointer to the source ROI. | |
nSrcStep | Distance in bytes between starts of consecutive lines of the source image. | |
roiSize | Width and Height of the regions of interest. | |
pMean | Contains computed mean. This is a host pointer. | |
pStdDev | Contains computed standard deviation. This is a host pointer. |
NPP_NULL_POINTER_ERROR if pSum or pSrc pointer NULL.
NPP_SIZE_ERROR if oROI has a field with zero or negative value
NPP_KERNEL_EXECUTION_ERROR if CUDA kernel could could not be executed properly.
NPP_MEMALLOC_ERR if a CUDA malloc used internally fails
NPP_MEMCPY_ERROR if a CUDA memory copy (either from host to device or device to host) used internally fails.
NPP_MEMSET_ERR if CUDA memset call used internally fails.
NPP_MEMFREE_ERR if CUDA memfree call used internally fails.
NPP_TEXTURE_BIND_ERROR if either texture bind or unbind call used internally fails.
NppStatus nppiMul_32f_C1R | ( | const Npp32f * | pSrc1, | |
int | nSrc1Step, | |||
const Npp32f * | pSrc2, | |||
int | nSrc2Step, | |||
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
32bit float, singlechannel (image) multiplication.
Multiply corresponging pixels in ROI.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiMul_8u_AC4RSfs | ( | const Npp8u * | pSrc1, | |
int | nSrc1Step, | |||
const Npp8u * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
int | nScaleFactor | |||
) |
8bit unsigned integer, four channel (image) multiplication, not affecting alpha channel.
Multiply corresponging pixels in ROI.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. | |
nScaleFactor | Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiMul_8u_C1RSfs | ( | const Npp8u * | pSrc1, | |
int | nSrc1Step, | |||
const Npp8u * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
int | nScaleFactor | |||
) |
8bit unsigned integer, single channel (image) mul.
Multiply the pixel values of corresponging pixels in the ROI and write them to the output image.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. | |
nScaleFactor | Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiMul_8u_C4RSfs | ( | const Npp8u * | pSrc1, | |
int | nSrc1Step, | |||
const Npp8u * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
int | nScaleFactor | |||
) |
8bit unsigned integer, four channel (image) multiplication.
Multiply corresponging pixels in ROI.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. | |
nScaleFactor | Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiNormDiff_Inf_8u_C1R | ( | const Npp8u * | pSrc1, | |
int | nSrcStep1, | |||
const Npp8u * | pSrc2, | |||
int | nSrcStep2, | |||
NppiSize | oSizeROI, | |||
Npp64f * | pRetVal | |||
) |
NormDiff_L_Inf computes the L_Inf norm of differences between two 8bit single channel images.
pSrc1 | Pointer to the first source image ROI. | |
pSrc2 | Pointer to the second source image ROI. | |
nSrcStep1 | Distance in bytes between starts of consecutive lines of the first source image. | |
nSrcStep2 | Distance in bytes between starts of consecutive lines of the second source image. | |
oSizeROI | Width and Height in pixels of the source ROI. | |
*pRetVal | Contains computed L1-norm of differences. This is a host pointer. |
NPP_NULL_POINTER_ERROR if one of the specified pointers is NULL.
NPP_SIZE_ERROR if the ROI has a field with zero or negative value
NPP_STEP_ERROR if nSrcStep1 or nSrcStep2 is less than oSourceROI * sizeof(Npp8u)
NPP_KERNEL_EXECUTION_ERROR if CUDA kernel could could not be executed properly.
NPP_MEMALLOC_ERR if a CUDA malloc used internally fails
NPP_MEMCPY_ERROR if a CUDA memory copy (either from host to device or device to host) used internally fails.
NPP_MEMSET_ERR if CUDA memset call used internally fails.
NPP_MEMFREE_ERR if CUDA memfree call used internally fails.
NPP_TEXTURE_BIND_ERROR if either texture bind or unbind call used internally fails.
NppStatus nppiNormDiff_L1_8u_C1R | ( | const Npp8u * | pSrc1, | |
int | nSrcStep1, | |||
const Npp8u * | pSrc2, | |||
int | nSrcStep2, | |||
NppiSize | oSizeROI, | |||
Npp64f * | pRetVal | |||
) |
NormDiff_L1 computes the L1 norm of differences between two 8bit single channel images.
pSrc1 | Pointer to the first source image ROI. | |
pSrc2 | Pointer to the second source image ROI. | |
nSrcStep1 | Distance in bytes between starts of consecutive lines of the first source image. | |
nSrcStep2 | Distance in bytes between starts of consecutive lines of the second source image. | |
oSizeROI | Width and Height in pixels of the source ROI. | |
pRetVal | Contains computed L1-norm of differences. This is a host pointer. |
NPP_NULL_POINTER_ERROR if one of the specified pointers is NULL.
NPP_SIZE_ERROR if the ROI has a field with zero or negative value
NPP_STEP_ERROR if nSrcStep1 or nSrcStep2 is less than oSourceROI * sizeof(Npp8u)
NPP_KERNEL_EXECUTION_ERROR if CUDA kernel could could not be executed properly.
NPP_MEMALLOC_ERR if a CUDA malloc used internally fails
NPP_MEMCPY_ERROR if a CUDA memory copy (either from host to device or device to host) used internally fails.
NPP_MEMSET_ERR if CUDA memset call used internally fails.
NPP_MEMFREE_ERR if CUDA memfree call used internally fails.
NPP_TEXTURE_BIND_ERROR if either texture bind or unbind call used internally fails.
NppStatus nppiNormDiff_L2_8u_C1R | ( | const Npp8u * | pSrc1, | |
int | nSrcStep1, | |||
const Npp8u * | pSrc2, | |||
int | nSrcStep2, | |||
NppiSize | oSizeROI, | |||
Npp64f * | pRetVal | |||
) |
NormDiff_L2 computes the L2 norm of differences between two 8bit single channel images.
pSrc1 | Pointer to the first source image ROI. | |
pSrc2 | Pointer to the second source image ROI. | |
nSrcStep1 | Distance in bytes between starts of consecutive lines of the first source image. | |
nSrcStep2 | Distance in bytes between starts of consecutive lines of the second source image. | |
oSizeROI | Width and Height in pixels of the source ROI. | |
pRetVal | Contains computed L1-norm of differences. This is a host pointer. |
NPP_NULL_POINTER_ERROR if one of the specified pointers is NULL.
NPP_SIZE_ERROR if the ROI has a field with zero or negative value
NPP_STEP_ERROR if nSrcStep1 or nSrcStep2 is less than oSourceROI * sizeof(Npp8u)
NPP_KERNEL_EXECUTION_ERROR if CUDA kernel could could not be executed properly.
NPP_MEMALLOC_ERR if a CUDA malloc used internally fails
NPP_MEMCPY_ERROR if a CUDA memory copy (either from host to device or device to host) used internally fails.
NPP_MEMSET_ERR if CUDA memset call used internally fails.
NPP_MEMFREE_ERR if CUDA memfree call used internally fails.
NPP_TEXTURE_BIND_ERROR if either texture bind or unbind call used internally fails.
Converts regular quantization tables with the quality factor.
pQuantRawTable | Raw quantization table. | |
nQualityFactor | Quality factor for the table. Range is [1:100]. |
NPP_SUCCESS For successful completetion.
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. |
NPP_SUCCESS For successful completetion.
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. |
NPP_SUCCESS For successful completetion.
32bit foat, single channel (image) data set method.
nValue | The pixel-value to be set. | |
pDst | Pointer to the start pixel in the region-of-interest. | |
nDstStep | Number of bytes between line starts of successive lines. | |
oSizeROI | Size (width, height) of the image are to bet set. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If nDstStep is null or negative or if the ROI-width exceeds the step-size.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
32bit signed integer, single channel (image) data set method.
nValue | The pixel-value to be set. | |
pDst | Pointer to the start pixel in the region-of-interest. | |
nDstStep | Number of bytes between line starts of successive lines. | |
oSizeROI | Size (width, height) of the image are to bet set. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If nDstStep is null or negative or if the ROI-width exceeds the step-size.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
8bit unsigned integer, four channel (image) data set method, not affecting Alpha.
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 | Pointer to the start pixel in the region-of-interest. | |
nDstStep | Number of bytes between line starts of successive lines. | |
oSizeROI | Size (width, height) of the image are to bet set. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If nDstStep is null or negative or if the ROI-width exceeds the step-size.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
8bit unsigned integer, single channel (image) data set method.
nValue | The pixel value to be set. | |
pDst | Pointer to the start pixel in the region-of-interest. | |
nDstStep | Number of bytes between line starts of successive lines. | |
oSizeROI | Size (width, height) of the image are to bet set. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If nDstStep is null or negative or if the ROI-width exceeds the step-size.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
8bit unsigned integer, four channel (image) data set method.
aValues | Four-channel array containing the pixel-value to be set. | |
pDst | Pointer to the start pixel in the region-of-interest. | |
nDstStep | Number of bytes between line starts of successive lines. | |
oSizeROI | Size (width, height) of the image are to bet set. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If nDstStep is null or negative or if the ROI-width exceeds the step-size.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
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). |
NPP_INVALID_INPUT tableIndex is not 0 or 1.
NPP_SUCCESS For successful completetion.
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 | Pointer to the source ROI. | |
nSrcStep | Distance in bytes between start of consecutive lines of the source image. | |
pDst | Pointer to the ROI in the destination integral image. | |
nDstStep | Distance in bytes between start of consecutive lines in the destination integral image. | |
pSqr | Pointer to the ROI in the destination integral image of pixel squares. | |
nSqrStep | Distance in bytes between start of consecutive lines in the destination square integral image | |
srcROI | Size of source image ROI in pixels (width and height). | |
val | The value to add to pDst image pixels | |
valSqr | The value to add to pSqr image pixels | |
integralImageNewHeight | Extended height of output surfacess (needed by transpose in primitive) |
NPP_NULL_POINTER_ERROR if one of the pointers is NULL.
NPP_SIZE_ERROR if a source ROI field has 0 or negative value.
NPP_STEP_ERROR if nSrcStep is less than srcROI.width*sizeof(Npp8u) or nDstStep is less than nDstStep< (int)((srcROI.width + 1)*sizeof(Npp32s)) or if nSqrStep < (int)((srcROI.width + 1)*sizeof(Npp32f)).
NPP_NOT_EVEN_STEP_ERROR indicates an error condition if nDstStep or nSqrStep is not divisible by 4.
NPP_CUDA_KERNEL_EXECUTION_ERROR if a kernel or device operation fails.
NppStatus nppiSub_32f_C1R | ( | const Npp32f * | pSrc1, | |
int | nSrc1Step, | |||
const Npp32f * | pSrc2, | |||
int | nSrc2Step, | |||
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI | |||
) |
32bit float, single channel (image) subtraction.
Subtract pSrc1's pixels from corresponging pixels in pSrc2.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiSub_8u_AC4RSfs | ( | const Npp8u * | pSrc1, | |
int | nSrc1Step, | |||
const Npp8u * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
int | nScaleFactor | |||
) |
8bit unsigned integer, four channel (image) subtraction, not affecting alpha channel.
Subtract pSrc1's pixels from corresponging pixels in pSrc2.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. | |
nScaleFactor | Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiSub_8u_C1RSfs | ( | const Npp8u * | pSrc1, | |
int | nSrc1Step, | |||
const Npp8u * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
int | nScaleFactor | |||
) |
8bit unsigned integer, single channel (image) sub.
Subtrace the pixel values of corresponging pixels in the ROI and write them to the output image.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. | |
nScaleFactor | Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiSub_8u_C4RSfs | ( | const Npp8u * | pSrc1, | |
int | nSrc1Step, | |||
const Npp8u * | pSrc2, | |||
int | nSrc2Step, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
int | nScaleFactor | |||
) |
8bit unsigned integer, four channel (image) subtraction.
Subtract pSrc1's pixels from corresponging pixels in pSrc2.
pSrc1 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc1Step | Number of bytes between line starts of successive lines in first source image.. | |
pSrc2 | Pointer to the second source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrc2Step | Number of bytes between line starts of successive lines in second source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. | |
nScaleFactor | Result pixel values are scaled by 2^(-nScaleFactor) and then clamped to [0,255] range. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiSumWindowColumn_8u32f_C1R | ( | const Npp8u * | pSrc, | |
Npp32s | nSrcStep, | |||
Npp32f * | pDst, | |||
Npp32s | nDstStep, | |||
NppiSize | oROI, | |||
Npp32s | nMaskSize, | |||
Npp32s | nAnchor | |||
) |
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 float output.
Result 32 bit float pixel is equal to the sum of the corresponding and neighboring column pixel values in a mask region of the source image defined by iKernelDim and iAnchorY.
pSrc | Pointer to the start address of the ROI region of the source 8 bit image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nSrcStep | Distance in bytes between starts of consecutive lines of the source image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
pDst | Pointer to the start address of the target ROI region in the destination 32 bit float image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nDstStep | Distance in bytes between starts of consecutive lines of the destination image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
oROI | Width and Height of the regions of interest. | |
nMaskSize | Length of the linear kernel array (must be either 3, 5 or 7 in present implementation) | |
nAnchor | Y offset of the kernel origin frame of reference w.r.t the source pixel (must be centered on iKernelDim, i.e. 0.5 * (iKernelDim - 1) in present implementation) |
NPP_NULL_POINTER_ERROR if pSrc or pDst is NULL
NPP_SIZE_ERROR if oROI Width or Height is Negative
NPP_STEP_ERROR if nSrcStep or nDstStep is less than oROI.Width
NPP_INVALID_INPUT if supplied function arguments are outside currently supported ranges
NPP_CUDA_KERNEL_EXECUTION_ERROR if there is an error in the computational kernel launch
NppStatus nppiSumWindowRow_8u32f_C1R | ( | const Npp8u * | pSrc, | |
Npp32s | nSrcStep, | |||
Npp32f * | pDst, | |||
Npp32s | nDstStep, | |||
NppiSize | oROI, | |||
Npp32s | iMaskDim, | |||
Npp32s | iAnchorX | |||
) |
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 float output.
Result 32 bit float 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 | Pointer to the start address of the ROI region of the source 8 bit image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nSrcStep | Distance in bytes between starts of consecutive lines of the source image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
pDst | Pointer to the start address of the target ROI region in the destination 32 bit float image (offset from the head address of the image, if ROI is displaced from image boundary) | |
nDstStep | Distance in bytes between starts of consecutive lines of the destination image. Frequently is NOT equal to image width in pixels due to padding for alignment or mem access pattern optimization. | |
oROI | Width and Height of the regions of interest. | |
iMaskDim | Length of the linear kernel array (must be either 3, 5 or 7 in present implementation) | |
iAnchorX | X offset of the kernel origin frame of reference w.r.t the source pixel (must be centered on iKernelDim, i.e. 0.5 * (iKernelDim - 1) in present implementation) |
NPP_NULL_POINTER_ERROR if pSrc or pDst is NULL
NPP_SIZE_ERROR if oROI Width or Height is Negative
NPP_STEP_ERROR if nSrcStep or nDstStep is less than oROI.Width
NPP_INVALID_INPUT if supplied function arguments are outside currently supported ranges
NPP_CUDA_KERNEL_EXECUTION_ERROR if there is an error in the computational kernel launch
NppStatus nppiSwapChannels_8u_C4IR | ( | Npp8u * | pSrcDst, | |
int | nSrcDstStep, | |||
NppiSize | oSizeROI, | |||
const int | aDstOrder[4] | |||
) |
8bit unsigned integer, four channel swap channels, in-place.
pSrcDst | Pointer to the image ROI. | |
nSrcDstStep | Distance in bytes between starts of consecutive lines of the image. | |
oSizeROI | Width and height of the regions of interest. | |
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. |
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_SUCCESS For successful completetion.
NppStatus nppiThreshold_32f_C1R | ( | const Npp32f * | pSrc, | |
int | nSrcStep, | |||
Npp32f * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
Npp32f | nThreshold, | |||
NppCmpOp | eComparisonOperation | |||
) |
32bit float, single channel 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 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrcStep | Number of bytes between line starts of successive lines in first source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. | |
nThreshold | The threshold value. | |
eComparisonOperation | The type of comparison operation to be used for thresholding. The only valid values are: NPP_CMP_LESS and NPP_CMP_GREATER. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_NOT_SUPPORTED_MODE_ERROR If an invalid comparison operation type is specified.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiThreshold_8u_AC4R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oSizeROI, | |||
const Npp8u | aThresholds[3], | |||
NppCmpOp | eComparisonOperation | |||
) |
8bit unsigned integer, four channel threshold, not affecting alpha channel.
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 | Pointer to the first source image's region-of-interest (pixel in upper right-corner of ROI). | |
nSrcStep | Number of bytes between line starts of successive lines in first source image.. | |
pDst | Pointer to the destination image's region-of-interest (pixel in upper right-corner of ROI). | |
nDstStep | Number of bytes between line starts of successive lines in destination image. | |
oSizeROI | Size (width, height) of the image are to bet set. | |
aThresholds | The threshold values, one per color channel. | |
eComparisonOperation | The type of comparison operation to be used for thresholding. The only valid values are: NPP_CMP_LESS and NPP_CMP_GREATER. |
NPP_SIZE_ERROR If oSizeROI contains null or negative values.
NPP_STEP_ERROR If any of the step-sizes is null or negative or if the ROI-width exceeds any of the step-sizes.
NPP_NOT_SUPPORTED_MODE_ERROR If an invalid comparison operation type is specified.
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR If executed sucessfully.
NppStatus nppiTranspose_8u_C1R | ( | const Npp8u * | pSrc, | |
int | nSrcStep, | |||
Npp8u * | pDst, | |||
int | nDstStep, | |||
NppiSize | oROI | |||
) |
Transpose 8bit single channel image.
pSrc | Pointer to the source ROI. | |
nSrcStep | Distance in bytes between starts of consecutive lines of the source image. | |
pDst | Pointer to the destination ROI. | |
nDstStep | Distance in bytes between starts of consecutive lines of the destination image. | |
oROI | Width and height of the regions of interest. |
NPP_CUDA_KERNEL_EXECUTION_ERROR If CUDA kernel could not be executed.
NPP_NO_ERROR For successful completetion.