NPPST Image ProcessingCUDA-accelerated Computer Vision » Legacy support
Detailed Description
Classes | |
| struct | |
Classes | |
| struct | |
| NppStInterpolationState |
Enumerations | |
| enum | NppStBorderType { nppStBorderNone = 0 , nppStBorderClamp = 1 , nppStBorderWrap = 2 , nppStBorderMirror = 3 } |
| enum | NppStInterpMode { nppStSupersample , nppStBicubic } |
| enum NppStBorderType |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Border type
Filtering operations assume that each pixel has a neighborhood of pixels. The following structure describes possible ways to define non-existent pixels.
| Enumerator | |
|---|---|
| nppStBorderNone | There is no need to define additional pixels, image is extended already. |
| nppStBorderClamp | Clamp out of range position to borders. |
| nppStBorderWrap | Wrap out of range position. Image becomes periodic. |
| nppStBorderMirror | reflect out of range position across borders |
| enum NppStInterpMode |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Filter types for image resizing
| Enumerator | |
|---|---|
| nppStSupersample | Supersampling. For downscaling only. |
| nppStBicubic | Bicubic convolution filter, a = -0.5 (cubic Hermite spline) |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Downsamples (decimates) an image using the nearest neighbor algorithm. 32-bit float pixels, single channel.
#include <opencv2/cudalegacy/NPP_staging.hpp>
Downsamples (decimates) an image using the nearest neighbor algorithm. 32-bit float pixels, single channel. Host implementation.
#include <opencv2/cudalegacy/NPP_staging.hpp>
Downsamples (decimates) an image using the nearest neighbor algorithm. 32-bit signed pixels, single channel.
#include <opencv2/cudalegacy/NPP_staging.hpp>
Downsamples (decimates) an image using the nearest neighbor algorithm. 32-bit signed pixels, single channel. Host implementation.
#include <opencv2/cudalegacy/NPP_staging.hpp>
Downsamples (decimates) an image using the nearest neighbor algorithm. 32-bit unsigned pixels, single channel.
| d_src | [IN] Source image pointer (CUDA device memory) |
| srcStep | [IN] Source image line step |
| d_dst | [OUT] Destination image pointer (CUDA device memory) |
| dstStep | [IN] Destination image line step |
| srcRoi | [IN] Region of interest in the source image |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Downsamples (decimates) an image using the nearest neighbor algorithm. 32-bit unsigned pixels, single channel. Host implementation.
| h_src | [IN] Source image pointer (Host or pinned memory) |
| srcStep | [IN] Source image line step |
| h_dst | [OUT] Destination image pointer (Host or pinned memory) |
| dstStep | [IN] Destination image line step |
| srcRoi | [IN] Region of interest in the source image |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Downsamples (decimates) an image using the nearest neighbor algorithm. 64-bit float pixels, single channel.
#include <opencv2/cudalegacy/NPP_staging.hpp>
Downsamples (decimates) an image using the nearest neighbor algorithm. 64-bit float pixels, single channel. Host implementation.
#include <opencv2/cudalegacy/NPP_staging.hpp>
Downsamples (decimates) an image using the nearest neighbor algorithm. 64-bit signed pixels, single channel.
#include <opencv2/cudalegacy/NPP_staging.hpp>
Downsamples (decimates) an image using the nearest neighbor algorithm. 64-bit signed pixels, single channel. Host implementation.
#include <opencv2/cudalegacy/NPP_staging.hpp>
Downsamples (decimates) an image using the nearest neighbor algorithm. 64-bit unsigned pixels, single channel.
#include <opencv2/cudalegacy/NPP_staging.hpp>
Downsamples (decimates) an image using the nearest neighbor algorithm. 64-bit unsigned pixels, single channel. Host implementation.
| NCVStatus nppiStFilterColumnBorder_32f_C1R | ( | Ncv32f * | pSrc, |
| NcvSize32u | srcSize, | ||
| Ncv32u | nSrcStep, | ||
| Ncv32f * | pDst, | ||
| NcvSize32u | dstSize, | ||
| Ncv32u | nDstStep, | ||
| NcvRect32u | oROI, | ||
| NppStBorderType | borderType, | ||
| Ncv32f * | pKernel, | ||
| Ncv32s | nKernelSize, | ||
| Ncv32s | nAnchor, | ||
| Ncv32f | multiplier ) |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Column linear filter. 32-bit floating point image, single channel
Apply vertical linear filter
| pSrc | [IN] Source image pointer (CUDA device memory) |
| srcSize | [IN] Source image size |
| nSrcStep | [IN] Source image line step |
| pDst | [OUT] Destination image pointer (CUDA device memory) |
| dstSize | [OUT] Destination image size |
| NCVStatus nppiStFilterRowBorder_32f_C1R | ( | Ncv32f * | pSrc, |
| NcvSize32u | srcSize, | ||
| Ncv32u | nSrcStep, | ||
| Ncv32f * | pDst, | ||
| NcvSize32u | dstSize, | ||
| Ncv32u | nDstStep, | ||
| NcvRect32u | oROI, | ||
| NppStBorderType | borderType, | ||
| Ncv32f * | pKernel, | ||
| Ncv32s | nKernelSize, | ||
| Ncv32s | nAnchor, | ||
| Ncv32f | multiplier ) |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Row linear filter. 32-bit floating point image, single channel
Apply horizontal linear filter
| pSrc | [IN] Source image pointer (CUDA device memory) |
| srcSize | [IN] Source image size |
| nSrcStep | [IN] Source image line step |
| pDst | [OUT] Destination image pointer (CUDA device memory) |
| dstSize | [OUT] Destination image size |
| NCVStatus nppiStGetInterpolationBufferSize | ( | NcvSize32u | srcSize, |
| Ncv32u | nStep, | ||
| Ncv32u * | hpSize ) |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Size of a buffer required for interpolation.
Requires several such buffers. See
| srcSize | [IN] Frame size (both frames must be of the same size) |
| nStep | [IN] Frame line step |
| hpSize | [OUT] Where to store computed size (host memory) |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Creates an integral image representation for the input image
#include <opencv2/cudalegacy/NPP_staging.hpp>
Creates an integral image representation for the input image. Host implementation
#include <opencv2/cudalegacy/NPP_staging.hpp>
Creates an integral image representation for the input image
| d_src | [IN] Source image pointer (CUDA device memory) |
| srcStep | [IN] Source image line step |
| d_dst | [OUT] Destination integral image pointer (CUDA device memory) |
| dstStep | [IN] Destination image line step |
| roiSize | [IN] Region of interest of the source image |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Creates an integral image representation for the input image. Host implementation
| h_src | [IN] Source image pointer (Host or pinned memory) |
| srcStep | [IN] Source image line step |
| h_dst | [OUT] Destination integral image pointer (Host or pinned memory) |
| dstStep | [IN] Destination image line step |
| roiSize | [IN] Region of interest of the source image |
| NCVStatus nppiStIntegralGetSize_32f32f | ( | NcvSize32u | roiSize, |
| Ncv32u * | pBufsize, | ||
| cudaDeviceProp & | devProp ) |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Calculates the size of the temporary buffer for integral image creation
| NCVStatus nppiStIntegralGetSize_8u32u | ( | NcvSize32u | roiSize, |
| Ncv32u * | pBufsize, | ||
| cudaDeviceProp & | devProp ) |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Calculates the size of the temporary buffer for integral image creation
| roiSize | [IN] Size of the input image |
| pBufsize | [OUT] Pointer to host variable that returns the size of the temporary buffer (in bytes) |
| devProp | [IN] CUDA device properties structure, containing texture alignment information |
| NCVStatus nppiStInterpolateFrames | ( | const NppStInterpolationState * | pState | ) |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Interpolate frames (images) using provided optical flow (displacement field). 32-bit floating point images, single channel
| pState | [IN] structure containing all required parameters (host memory) |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Computes standard deviation for each rectangular region of the input image using integral images.
| d_sum | [IN] Integral image pointer (CUDA device memory) |
| sumStep | [IN] Integral image line step |
| d_sqsum | [IN] Squared integral image pointer (CUDA device memory) |
| sqsumStep | [IN] Squared integral image line step |
| d_norm | [OUT] Stddev image pointer (CUDA device memory). Each pixel contains stddev of a rect with top-left corner at the original location in the image |
| NCVStatus nppiStRectStdDev_32f_C1R_host | ( | Ncv32u * | h_sum, |
| Ncv32u | sumStep, | ||
| Ncv64u * | h_sqsum, | ||
| Ncv32u | sqsumStep, | ||
| Ncv32f * | h_norm, | ||
| Ncv32u | normStep, | ||
| NcvSize32u | roi, | ||
| NcvRect32u | rect, | ||
| Ncv32f | scaleArea ) |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Computes standard deviation for each rectangular region of the input image using integral images. Host implementation
| h_sum | [IN] Integral image pointer (Host or pinned memory) |
| sumStep | [IN] Integral image line step |
| h_sqsum | [IN] Squared integral image pointer (Host or pinned memory) |
| sqsumStep | [IN] Squared integral image line step |
| h_norm | [OUT] Stddev image pointer (Host or pinned memory). Each pixel contains stddev of a rect with top-left corner at the original location in the image |
| NCVStatus nppiStResize_32f_C1R | ( | Ncv32f * | pSrc, |
| NcvSize32u | srcSize, | ||
| Ncv32u | nSrcStep, | ||
| NcvRect32u | srcROI, | ||
| Ncv32f * | pDst, | ||
| NcvSize32u | dstSize, | ||
| Ncv32u | nDstStep, | ||
| NcvRect32u | dstROI, | ||
| Ncv32f | xFactor, | ||
| Ncv32f | yFactor, | ||
| NppStInterpMode | interpolation ) |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Resize. 32-bit floating point image, single channel
Resizes image using specified filter (interpolation type)
| pSrc | [IN] Source image pointer (CUDA device memory) |
| srcSize | [IN] Source image size |
| nSrcStep | [IN] Source image line step |
| srcROI | [IN] Source image region of interest |
| pDst | [OUT] Destination image pointer (CUDA device memory) |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Creates a squared integral image representation for the input image
| d_src | [IN] Source image pointer (CUDA device memory) |
| srcStep | [IN] Source image line step |
| d_dst | [OUT] Destination squared integral image pointer (CUDA device memory) |
| dstStep | [IN] Destination image line step |
| roiSize | [IN] Region of interest of the source image |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Creates a squared integral image representation for the input image. Host implementation
| h_src | [IN] Source image pointer (Host or pinned memory) |
| srcStep | [IN] Source image line step |
| h_dst | [OUT] Destination squared integral image pointer (Host or pinned memory) |
| dstStep | [IN] Destination image line step |
| roiSize | [IN] Region of interest of the source image |
| NCVStatus nppiStSqrIntegralGetSize_8u64u | ( | NcvSize32u | roiSize, |
| Ncv32u * | pBufsize, | ||
| cudaDeviceProp & | devProp ) |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Calculates the size of the temporary buffer for squared integral image creation
| roiSize | [IN] Size of the input image |
| pBufsize | [OUT] Pointer to host variable that returns the size of the temporary buffer (in bytes) |
| devProp | [IN] CUDA device properties structure, containing texture alignment information |
| NCVStatus nppiStTranspose_128_C1R | ( | void * | d_src, |
| Ncv32u | srcStep, | ||
| void * | d_dst, | ||
| Ncv32u | dstStep, | ||
| NcvSize32u | srcRoi ) |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Transposes an image. 128-bit pixels of any type, single channel
| NCVStatus nppiStTranspose_128_C1R_host | ( | void * | d_src, |
| Ncv32u | srcStep, | ||
| void * | d_dst, | ||
| Ncv32u | dstStep, | ||
| NcvSize32u | srcRoi ) |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Transposes an image. 128-bit pixels of any type, single channel. Host implementation
#include <opencv2/cudalegacy/NPP_staging.hpp>
Transposes an image. 32-bit float pixels, single channel
#include <opencv2/cudalegacy/NPP_staging.hpp>
Transposes an image. 32-bit float pixels, single channel. Host implementation
#include <opencv2/cudalegacy/NPP_staging.hpp>
Transposes an image. 32-bit signed pixels, single channel
#include <opencv2/cudalegacy/NPP_staging.hpp>
Transposes an image. 32-bit signed pixels, single channel. Host implementation
#include <opencv2/cudalegacy/NPP_staging.hpp>
Transposes an image. 32-bit unsigned pixels, single channel
| d_src | [IN] Source image pointer (CUDA device memory) |
| srcStride | [IN] Source image line step |
| d_dst | [OUT] Destination image pointer (CUDA device memory) |
| dstStride | [IN] Destination image line step |
| srcRoi | [IN] Region of interest of the source image |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Transposes an image. 32-bit unsigned pixels, single channel. Host implementation
| h_src | [IN] Source image pointer (Host or pinned memory) |
| srcStride | [IN] Source image line step |
| h_dst | [OUT] Destination image pointer (Host or pinned memory) |
| dstStride | [IN] Destination image line step |
| srcRoi | [IN] Region of interest of the source image |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Transposes an image. 64-bit float pixels, single channel
#include <opencv2/cudalegacy/NPP_staging.hpp>
Transposes an image. 64-bit float pixels, single channel. Host implementation
#include <opencv2/cudalegacy/NPP_staging.hpp>
Transposes an image. 64-bit signed pixels, single channel
#include <opencv2/cudalegacy/NPP_staging.hpp>
Transposes an image. 64-bit signed pixels, single channel. Host implementation
#include <opencv2/cudalegacy/NPP_staging.hpp>
Transposes an image. 64-bit unsigned pixels, single channel
#include <opencv2/cudalegacy/NPP_staging.hpp>
Transposes an image. 64-bit unsigned pixels, single channel. Host implementation
#include <opencv2/cudalegacy/NPP_staging.hpp>
Warp image using provided 2D vector field and 1x1 point spread function. 32-bit floating point image, single channel
During warping pixels from the source image may fall between pixels of the destination image. PSF (point spread function) describes how the source image pixel affects pixels of the destination. For 1x1 PSF only single pixel with the largest intersection is affected (similar to nearest interpolation).
Destination image size and line step must be the same as the source image size and line step
| pSrc | [IN] Source image pointer (CUDA device memory) |
| srcSize | [IN] Source image size |
| nSrcStep | [IN] Source image line step |
| pU | [IN] Pointer to horizontal displacement field (CUDA device memory) |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Warp image using provided 2D vector field and 2x2 point spread function. 32-bit floating point image, single channel
During warping pixels from the source image may fall between pixels of the destination image. PSF (point spread function) describes how the source image pixel affects pixels of the destination. For 2x2 PSF all four intersected pixels will be affected.
Destination image size and line step must be the same as the source image size and line step
| pSrc | [IN] Source image pointer (CUDA device memory) |
| srcSize | [IN] Source image size |
| nSrcStep | [IN] Source image line step |
| pU | [IN] Pointer to horizontal displacement field (CUDA device memory) |
| NCVStatus nppiStVectorWarpGetBufferSize | ( | NcvSize32u | srcSize, |
| Ncv32u | nSrcStep, | ||
| Ncv32u * | hpSize ) |
#include <opencv2/cudalegacy/NPP_staging.hpp>
Size of buffer required for vector image warping.
| srcSize | [IN] Source image size |
| nSrcStep | [IN] Source image line step |
| hpSize | [OUT] Where to store computed size (host memory) |
| scale | [IN] Downsampling scale factor (positive integer) |
| readThruTexture | [IN] Performance hint to cache source in texture (true) or read directly (false) |
| scale | [IN] Downsampling scale factor (positive integer) |
| nDstStep | [IN] |
| oROI | [IN] Region of interest in the source image |
| borderType | [IN] Type of border |
| pKernel | [IN] Pointer to column kernel values (CUDA device memory) |
| nKernelSize | [IN] Size of the kernel in pixels |
| nAnchor | [IN] The kernel column alignment with respect to the position of the input pixel |
| multiplier | [IN] Value by which the computed result is multiplied |
| nDstStep |
| oROI | [IN] Region of interest in the source image |
| borderType | [IN] Type of border |
| pKernel | [IN] Pointer to row kernel values (CUDA device memory) |
| nKernelSize | [IN] Size of the kernel in pixels |
| nAnchor | [IN] The kernel row alignment with respect to the position of the input pixel |
| multiplier | [IN] Value by which the computed result is multiplied |
| pBuffer | [IN] Pointer to the pre-allocated temporary buffer (CUDA device memory) |
| bufSize | [IN] Size of the pBuffer in bytes |
| devProp | [IN] CUDA device properties structure, containing texture alignment information |
| normStep | [IN] Stddev image line step |
| roi | [IN] Region of interest in the source image |
| rect | [IN] Rectangular region to calculate stddev over |
| scaleArea | [IN] Multiplication factor to account decimated scale |
| readThruTexture | [IN] Performance hint to cache source in texture (true) or read directly (false) |
| normStep | [IN] Stddev image line step |
| roi | [IN] Region of interest in the source image |
| rect | [IN] Rectangular region to calculate stddev over |
| scaleArea | [IN] Multiplication factor to account decimated scale |
| dstSize | [IN] Destination image size |
| nDstStep | [IN] Destination image line step |
| dstROI | [IN] Destination image region of interest |
| xFactor | [IN] Row scale factor |
| yFactor | [IN] Column scale factor |
| interpolation | [IN] Interpolation type |
| pBuffer | [IN] Pointer to the pre-allocated temporary buffer (CUDA device memory) |
| bufSize | [IN] Size of the pBuffer in bytes |
| devProp | [IN] CUDA device properties structure, containing texture alignment information |
| pV | [IN] Pointer to vertical displacement field (CUDA device memory) |
| nVFStep | [IN] Displacement field line step |
| timeScale | [IN] Value by which displacement field will be scaled for warping |
| pDst | [OUT] Destination image pointer (CUDA device memory) |
| pV | [IN] Pointer to vertical displacement field (CUDA device memory) |
| nVFStep | [IN] Displacement field line step |
| pBuffer |
| timeScale | [IN] Value by which displacement field will be scaled for warping |
| pDst | [OUT] Destination image pointer (CUDA device memory) |