OpenCV 4.11.0
开源计算机视觉
加载中…
搜索中…
无匹配项

详细描述

结构体 NppStInterpolationState
 

枚举

枚举 NppStBorderType {
  nppStBorderNone = 0 ,
  nppStBorderClamp = 1 ,
  nppStBorderWrap = 2 ,
  nppStBorderMirror = 3
}
 
枚举 NppStInterpMode {
  nppStSupersample ,
  nppStBicubic
}
 

函数

NCVStatus nppiStDecimate_32f_C1R (Ncv32f *d_src, Ncv32u srcStep, Ncv32f *d_dst, Ncv32u dstStep, NcvSize32u srcRoi, Ncv32u scale, NcvBool readThruTexture)
 
NCVStatus nppiStDecimate_32f_C1R_host (Ncv32f *h_src, Ncv32u srcStep, Ncv32f *h_dst, Ncv32u dstStep, NcvSize32u srcRoi, Ncv32u scale)
 
NCVStatus nppiStDecimate_32s_C1R (Ncv32s *d_src, Ncv32u srcStep, Ncv32s *d_dst, Ncv32u dstStep, NcvSize32u srcRoi, Ncv32u scale, NcvBool readThruTexture)
 
NCVStatus nppiStDecimate_32s_C1R_host (Ncv32s *h_src, Ncv32u srcStep, Ncv32s *h_dst, Ncv32u dstStep, NcvSize32u srcRoi, Ncv32u scale)
 
NCVStatus nppiStDecimate_32u_C1R (Ncv32u *d_src, Ncv32u srcStep, Ncv32u *d_dst, Ncv32u dstStep, NcvSize32u srcRoi, Ncv32u scale, NcvBool readThruTexture)
 
NCVStatus nppiStDecimate_32u_C1R_host (Ncv32u *h_src, Ncv32u srcStep, Ncv32u *h_dst, Ncv32u dstStep, NcvSize32u srcRoi, Ncv32u scale)
 
NCVStatus nppiStDecimate_64f_C1R (Ncv64f *d_src, Ncv32u srcStep, Ncv64f *d_dst, Ncv32u dstStep, NcvSize32u srcRoi, Ncv32u scale, NcvBool readThruTexture)
 
NCVStatus nppiStDecimate_64f_C1R_host (Ncv64f *h_src, Ncv32u srcStep, Ncv64f *h_dst, Ncv32u dstStep, NcvSize32u srcRoi, Ncv32u scale)
 
NCVStatus nppiStDecimate_64s_C1R (Ncv64s *d_src, Ncv32u srcStep, Ncv64s *d_dst, Ncv32u dstStep, NcvSize32u srcRoi, Ncv32u scale, NcvBool readThruTexture)
 
NCVStatus nppiStDecimate_64s_C1R_host (Ncv64s *h_src, Ncv32u srcStep, Ncv64s *h_dst, Ncv32u dstStep, NcvSize32u srcRoi, Ncv32u scale)
 
NCVStatus nppiStDecimate_64u_C1R (Ncv64u *d_src, Ncv32u srcStep, Ncv64u *d_dst, Ncv32u dstStep, NcvSize32u srcRoi, Ncv32u scale, NcvBool readThruTexture)
 
NCVStatus nppiStDecimate_64u_C1R_host (Ncv64u *h_src, Ncv32u srcStep, Ncv64u *h_dst, Ncv32u dstStep, NcvSize32u srcRoi, Ncv32u scale)
 
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)
 
NCVStatus nppiStFilterRowBorder_32f_C1R (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)
 
NCVStatus nppiStGetInterpolationBufferSize (nppiStGetInterpolationBufferSize) (NcvSize32u srcSize, Ncv32u nStep, Ncv32u *hpSize)
 
NCVStatus nppiStIntegral_32f32f_C1R (nppiStIntegral_32f32f_C1R) (Ncv32f *d_src, Ncv32u srcStep, Ncv32f *d_dst, Ncv32u dstStep, NcvSize32u roiSize, Ncv8u *pBuffer, Ncv32u bufSize, cudaDeviceProp &devProp)
 
NCVStatus nppiStIntegral_32f32f_C1R_host (nppiStIntegral_32f32f_C1R_host) (Ncv32f *h_src, Ncv32u srcStep, Ncv32f *h_dst, Ncv32u dstStep, NcvSize32u roiSize)
 
NCVStatus nppiStIntegral_8u32u_C1R (nppiStIntegral_8u32u_C1R) (Ncv8u *d_src, Ncv32u srcStep, Ncv32u *d_dst, Ncv32u dstStep, NcvSize32u roiSize, Ncv8u *pBuffer, Ncv32u bufSize, cudaDeviceProp &devProp)
 
NCVStatus nppiStIntegral_8u32u_C1R_host (nppiStIntegral_8u32u_C1R_host) (Ncv8u *h_src, Ncv32u srcStep, Ncv32u *h_dst, Ncv32u dstStep, NcvSize32u roiSize)
 
NCVStatus nppiStIntegralGetSize_32f32f (nppiStIntegralGetSize_32f32f) (NcvSize32u roiSize, Ncv32u *pBufsize, cudaDeviceProp &devProp)
 
NCVStatus nppiStIntegralGetSize_8u32u (nppiStIntegralGetSize_8u32u) (NcvSize32u roiSize, Ncv32u *pBufsize, cudaDeviceProp &devProp)
 
NCVStatus nppiStInterpolateFrames (nppiStInterpolateFrames) (const NppStInterpolationState *pState)
 
NCVStatus nppiStRectStdDev_32f_C1R (nppiStRectStdDev_32f_C1R) (Ncv32u *d_sum, Ncv32u sumStep, Ncv64u *d_sqsum, Ncv32u sqsumStep, Ncv32f *d_norm, Ncv32u normStep, NcvSize32u roi, NcvRect32u rect, Ncv32f scaleArea, NcvBool readThruTexture)
 
NCVStatus nppiStRectStdDev_32f_C1R_host (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)
 
NCVStatus nppiStResize_32f_C1R (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)
 
NCVStatus nppiStSqrIntegral_8u64u_C1R (nppiStSqrIntegral_8u64u_C1R) (Ncv8u *d_src, Ncv32u srcStep, Ncv64u *d_dst, Ncv32u dstStep, NcvSize32u roiSize, Ncv8u *pBuffer, Ncv32u bufSize, cudaDeviceProp &devProp)
 
NCVStatus nppiStSqrIntegral_8u64u_C1R_host (nppiStSqrIntegral_8u64u_C1R_host) (Ncv8u *h_src, Ncv32u srcStep, Ncv64u *h_dst, Ncv32u dstStep, NcvSize32u roiSize)
 
NCVStatus nppiStSqrIntegralGetSize_8u64u (nppiStSqrIntegralGetSize_8u64u) (NcvSize32u roiSize, Ncv32u *pBufsize, cudaDeviceProp &devProp)
 
NCVStatus nppiStTranspose_128_C1R (nppiStTranspose_128_C1R) (void *d_src, Ncv32u srcStep, void *d_dst, Ncv32u dstStep, NcvSize32u srcRoi)
 
NCVStatus nppiStTranspose_128_C1R_host (nppiStTranspose_128_C1R_host) (void *d_src, Ncv32u srcStep, void *d_dst, Ncv32u dstStep, NcvSize32u srcRoi)
 
NCVStatus nppiStTranspose_32f_C1R (Ncv32f *d_src, Ncv32u srcStride, Ncv32f *d_dst, Ncv32u dstStride, NcvSize32u srcRoi)
 
NCVStatus nppiStTranspose_32f_C1R_host (Ncv32f *h_src, Ncv32u srcStride, Ncv32f *h_dst, Ncv32u dstStride, NcvSize32u srcRoi)
 
NCVStatus nppiStTranspose_32s_C1R (Ncv32s *d_src, Ncv32u srcStride, Ncv32s *d_dst, Ncv32u dstStride, NcvSize32u srcRoi)
 
NCVStatus nppiStTranspose_32s_C1R_host (Ncv32s *h_src, Ncv32u srcStride, Ncv32s *h_dst, Ncv32u dstStride, NcvSize32u srcRoi)
 
NCVStatus nppiStTranspose_32u_C1R (Ncv32u *d_src, Ncv32u srcStride, Ncv32u *d_dst, Ncv32u dstStride, NcvSize32u srcRoi)
 
NCVStatus nppiStTranspose_32u_C1R_host (Ncv32u *h_src, Ncv32u srcStride, Ncv32u *h_dst, Ncv32u dstStride, NcvSize32u srcRoi)
 
NCVStatus nppiStTranspose_64f_C1R (Ncv64f *d_src, Ncv32u srcStride, Ncv64f *d_dst, Ncv32u dstStride, NcvSize32u srcRoi)
 
NCVStatus nppiStTranspose_64f_C1R_host (Ncv64f *h_src, Ncv32u srcStride, Ncv64f *h_dst, Ncv32u dstStride, NcvSize32u srcRoi)
 
NCVStatus nppiStTranspose_64s_C1R (Ncv64s *d_src, Ncv32u srcStride, Ncv64s *d_dst, Ncv32u dstStride, NcvSize32u srcRoi)
 
NCVStatus nppiStTranspose_64s_C1R_host (Ncv64s *h_src, Ncv32u srcStride, Ncv64s *h_dst, Ncv32u dstStride, NcvSize32u srcRoi)
 
NCVStatus nppiStTranspose_64u_C1R (Ncv64u *d_src, Ncv32u srcStride, Ncv64u *d_dst, Ncv32u dstStride, NcvSize32u srcRoi)
 
NCVStatus nppiStTranspose_64u_C1R_host (Ncv64u *h_src, Ncv32u srcStride, Ncv64u *h_dst, Ncv32u dstStride, NcvSize32u srcRoi)
 
NCVStatus nppiStVectorWarp_PSF1x1_32f_C1 (const Ncv32f *pSrc, NcvSize32u srcSize, Ncv32u nSrcStep, const Ncv32f *pU, const Ncv32f *pV, Ncv32u nVFStep, Ncv32f timeScale, Ncv32f *pDst)
 
NCVStatus nppiStVectorWarp_PSF2x2_32f_C1 (const Ncv32f *pSrc, NcvSize32u srcSize, Ncv32u nSrcStep, const Ncv32f *pU, const Ncv32f *pV, Ncv32u nVFStep, Ncv32f *pBuffer, Ncv32f timeScale, Ncv32f *pDst)
 
NCVStatus nppiStVectorWarpGetBufferSize (NcvSize32u srcSize, Ncv32u nSrcStep, Ncv32u *hpSize)
 

枚举类型文档

◆ NppStBorderType

#include <opencv2/cudalegacy/NPP_staging.hpp>

边界类型

滤波操作假设每个像素都具有像素邻域。以下结构描述了定义不存在的像素的可能方法。

枚举值
nppStBorderNone 

无需定义附加像素,图像已扩展。

nppStBorderClamp 

将超出范围的位置钳制到边界。

nppStBorderWrap 

环绕超出范围的位置。图像变为周期性的。

nppStBorderMirror 

跨边界反射超出范围的位置

◆ NppStInterpMode

#include <opencv2/cudalegacy/NPP_staging.hpp>

图像缩放的滤波器类型

枚举值
nppStSupersample 

超采样。仅用于缩小。

nppStBicubic 

双三次卷积滤波器,a = -0.5(三次Hermite样条)

函数文档

◆ nppiStDecimate_32f_C1R()

NCVStatus nppiStDecimate_32f_C1R ( Ncv32f * d_src,
Ncv32u srcStep,
Ncv32f * d_dst,
Ncv32u dstStep,
NcvSize32u srcRoi,
Ncv32u scale,
NcvBool readThruTexture )

#include <opencv2/cudalegacy/NPP_staging.hpp>

使用最近邻算法对图像进行下采样(抽取)。32位浮点像素,单通道。

另请参阅
nppiStDecimate_32u_C1R

◆ nppiStDecimate_32f_C1R_host()

NCVStatus nppiStDecimate_32f_C1R_host ( Ncv32f * h_src,
Ncv32u srcStep,
Ncv32f * h_dst,
Ncv32u dstStep,
NcvSize32u srcRoi,
Ncv32u scale )

#include <opencv2/cudalegacy/NPP_staging.hpp>

使用最近邻算法对图像进行下采样(抽取)。32位浮点像素,单通道。主机实现。

另请参阅
nppiStDecimate_32u_C1R_host

◆ nppiStDecimate_32s_C1R()

NCVStatus nppiStDecimate_32s_C1R ( Ncv32s * d_src,
Ncv32u srcStep,
Ncv32s * d_dst,
Ncv32u dstStep,
NcvSize32u srcRoi,
Ncv32u scale,
NcvBool readThruTexture )

#include <opencv2/cudalegacy/NPP_staging.hpp>

使用最近邻算法对图像进行下采样(抽取)。32位有符号像素,单通道。

另请参阅
nppiStDecimate_32u_C1R

◆ nppiStDecimate_32s_C1R_host()

NCVStatus nppiStDecimate_32s_C1R_host ( Ncv32s * h_src,
Ncv32u srcStep,
Ncv32s * h_dst,
Ncv32u dstStep,
NcvSize32u srcRoi,
Ncv32u scale )

#include <opencv2/cudalegacy/NPP_staging.hpp>

使用最近邻算法对图像进行下采样(抽取)。32位有符号像素,单通道。主机实现。

另请参阅
nppiStDecimate_32u_C1R_host

◆ nppiStDecimate_32u_C1R()

NCVStatus nppiStDecimate_32u_C1R ( Ncv32u * d_src,
Ncv32u srcStep,
Ncv32u * d_dst,
Ncv32u dstStep,
NcvSize32u srcRoi,
Ncv32u scale,
NcvBool readThruTexture )

#include <opencv2/cudalegacy/NPP_staging.hpp>

使用最近邻算法对图像进行下采样(抽取)。32位无符号像素,单通道。

参数
d_src[IN] 源图像指针(CUDA 设备内存)
srcStep[IN] 源图像行步长
d_dst[OUT] 目标图像指针(CUDA 设备内存)
dstStep[IN] 目标图像行步长
srcRoi[IN] 源图像中的感兴趣区域
scale[IN] 下采样比例因子(正整数)
readThruTexture[IN] 性能提示,将源缓存到纹理 (true) 或直接读取 (false)
返回值
NCV 状态代码

◆ nppiStDecimate_32u_C1R_host()

NCVStatus nppiStDecimate_32u_C1R_host ( Ncv32u * h_src,
Ncv32u srcStep,
Ncv32u * h_dst,
Ncv32u dstStep,
NcvSize32u srcRoi,
Ncv32u scale )

#include <opencv2/cudalegacy/NPP_staging.hpp>

使用最近邻算法对图像进行下采样(抽取)。32位无符号像素,单通道。主机实现。

参数
h_src[IN] 源图像指针(主机或固定内存)
srcStep[IN] 源图像行步长
h_dst[OUT] 目标图像指针(主机或固定内存)
dstStep[IN] 目标图像行步长
srcRoi[IN] 源图像中的感兴趣区域
scale[IN] 下采样比例因子(正整数)
返回值
NCV 状态代码

◆ nppiStDecimate_64f_C1R()

NCVStatus nppiStDecimate_64f_C1R ( Ncv64f * d_src,
Ncv32u srcStep,
Ncv64f * d_dst,
Ncv32u dstStep,
NcvSize32u srcRoi,
Ncv32u scale,
NcvBool readThruTexture )

#include <opencv2/cudalegacy/NPP_staging.hpp>

使用最近邻算法对图像进行下采样(抽取)。64位浮点像素,单通道。

另请参阅
nppiStDecimate_32u_C1R

◆ nppiStDecimate_64f_C1R_host()

NCVStatus nppiStDecimate_64f_C1R_host ( Ncv64f * h_src,
Ncv32u srcStep,
Ncv64f * h_dst,
Ncv32u dstStep,
NcvSize32u srcRoi,
Ncv32u scale )

#include <opencv2/cudalegacy/NPP_staging.hpp>

使用最近邻算法对图像进行下采样(抽取)。64位浮点像素,单通道。主机实现。

另请参阅
nppiStDecimate_32u_C1R_host

◆ nppiStDecimate_64s_C1R()

NCVStatus nppiStDecimate_64s_C1R ( Ncv64s * d_src,
Ncv32u srcStep,
Ncv64s * d_dst,
Ncv32u dstStep,
NcvSize32u srcRoi,
Ncv32u scale,
NcvBool readThruTexture )

#include <opencv2/cudalegacy/NPP_staging.hpp>

使用最近邻算法对图像进行下采样(抽取)。64位有符号像素,单通道。

另请参阅
nppiStDecimate_32u_C1R

◆ nppiStDecimate_64s_C1R_host()

NCVStatus nppiStDecimate_64s_C1R_host ( Ncv64s * h_src,
Ncv32u srcStep,
Ncv64s * h_dst,
Ncv32u dstStep,
NcvSize32u srcRoi,
Ncv32u scale )

#include <opencv2/cudalegacy/NPP_staging.hpp>

使用最近邻算法对图像进行下采样(抽取)。64位有符号像素,单通道。主机实现。

另请参阅
nppiStDecimate_32u_C1R_host

◆ nppiStDecimate_64u_C1R()

NCVStatus nppiStDecimate_64u_C1R ( Ncv64u * d_src,
Ncv32u srcStep,
Ncv64u * d_dst,
Ncv32u dstStep,
NcvSize32u srcRoi,
Ncv32u scale,
NcvBool readThruTexture )

#include <opencv2/cudalegacy/NPP_staging.hpp>

使用最近邻算法对图像进行下采样(抽取)。64位无符号像素,单通道。

另请参阅
nppiStDecimate_32u_C1R

◆ nppiStDecimate_64u_C1R_host()

NCVStatus nppiStDecimate_64u_C1R_host ( Ncv64u * h_src,
Ncv32u srcStep,
Ncv64u * h_dst,
Ncv32u dstStep,
NcvSize32u srcRoi,
Ncv32u scale )

#include <opencv2/cudalegacy/NPP_staging.hpp>

使用最近邻算法对图像进行下采样(抽取)。64位无符号像素,单通道。主机实现。

另请参阅
nppiStDecimate_32u_C1R_host

◆ nppiStFilterColumnBorder_32f_C1R()

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>

列线性滤波器。32位浮点图像,单通道

应用垂直线性滤波器

参数
pSrc[IN] 源图像指针(CUDA 设备内存)
srcSize[IN] 源图像大小
nSrcStep[IN] 源图像行步长
pDst[OUT] 目标图像指针(CUDA 设备内存)
dstSize[OUT] 目标图像大小
nDstStep[IN]
oROI[IN] 源图像中的感兴趣区域
borderType[IN] 边界类型
pKernel[IN] 指向列内核值的指针(CUDA 设备内存)
nKernelSize[IN] 内核大小(以像素为单位)
nAnchor[IN] 内核列相对于输入像素位置的对齐方式
multiplier[IN] 计算结果乘以的值
返回值
NCV 状态代码

◆ nppiStFilterRowBorder_32f_C1R()

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>

行线性滤波器。32位浮点图像,单通道

应用水平线性滤波器

参数
pSrc[IN] 源图像指针(CUDA 设备内存)
srcSize[IN] 源图像大小
nSrcStep[IN] 源图像行步长
pDst[OUT] 目标图像指针(CUDA 设备内存)
dstSize[OUT] 目标图像大小
nDstStep
oROI[IN] 源图像中的感兴趣区域
borderType[IN] 边界类型
pKernel[IN] 指向行内核值的指针(CUDA 设备内存)
nKernelSize[IN] 内核大小(以像素为单位)
nAnchor[IN] 内核行相对于输入像素位置的对齐方式
multiplier[IN] 计算结果乘以的值
返回值
NCV 状态代码

◆ nppiStGetInterpolationBufferSize()

NCVStatus nppiStGetInterpolationBufferSize ( NcvSize32u srcSize,
Ncv32u nStep,
Ncv32u * hpSize )

#include <opencv2/cudalegacy/NPP_staging.hpp>

插值所需缓冲区的大小。

需要多个这样的缓冲区。参见

另请参阅
NppStInterpolationState.
参数
srcSize[IN] 帧大小(两帧必须大小相同)
nStep[IN] 帧行步长
hpSize[OUT] 用于存储计算大小的位置(主机内存)
返回值
NCV 状态代码

◆ nppiStIntegral_32f32f_C1R()

NCVStatus nppiStIntegral_32f32f_C1R ( Ncv32f * d_src,
Ncv32u srcStep,
Ncv32f * d_dst,
Ncv32u dstStep,
NcvSize32u roiSize,
Ncv8u * pBuffer,
Ncv32u bufSize,
cudaDeviceProp & devProp )

#include <opencv2/cudalegacy/NPP_staging.hpp>

为输入图像创建积分图像表示

另请参阅
nppiStIntegral_8u32u_C1R

◆ nppiStIntegral_32f32f_C1R_host()

NCVStatus nppiStIntegral_32f32f_C1R_host ( Ncv32f * h_src,
Ncv32u srcStep,
Ncv32f * h_dst,
Ncv32u dstStep,
NcvSize32u roiSize )

#include <opencv2/cudalegacy/NPP_staging.hpp>

为输入图像创建积分图像表示。主机实现

另请参阅
nppiStIntegral_8u32u_C1R_host

◆ nppiStIntegral_8u32u_C1R()

NCVStatus nppiStIntegral_8u32u_C1R ( Ncv8u * d_src,
Ncv32u srcStep,
Ncv32u * d_dst,
Ncv32u dstStep,
NcvSize32u roiSize,
Ncv8u * pBuffer,
Ncv32u bufSize,
cudaDeviceProp & devProp )

#include <opencv2/cudalegacy/NPP_staging.hpp>

为输入图像创建积分图像表示

参数
d_src[IN] 源图像指针(CUDA 设备内存)
srcStep[IN] 源图像行步长
d_dst[OUT] 目的积分图像指针 (CUDA 设备内存)
dstStep[IN] 目标图像行步长
roiSize[IN] 源图像的感兴趣区域
pBuffer[IN] 指向预分配的临时缓冲区的指针 (CUDA 设备内存)
bufSize[IN] pBuffer 的大小(以字节为单位)
devProp[IN] CUDA 设备属性结构,包含纹理对齐信息
返回值
NCV 状态代码

◆ nppiStIntegral_8u32u_C1R_host()

NCVStatus nppiStIntegral_8u32u_C1R_host ( Ncv8u * h_src,
Ncv32u srcStep,
Ncv32u * h_dst,
Ncv32u dstStep,
NcvSize32u roiSize )

#include <opencv2/cudalegacy/NPP_staging.hpp>

为输入图像创建积分图像表示。主机实现

参数
h_src[IN] 源图像指针(主机或固定内存)
srcStep[IN] 源图像行步长
h_dst[OUT] 目的积分图像指针 (主机或固定内存)
dstStep[IN] 目标图像行步长
roiSize[IN] 源图像的感兴趣区域
返回值
NCV 状态代码

◆ nppiStIntegralGetSize_32f32f()

NCVStatus nppiStIntegralGetSize_32f32f ( NcvSize32u roiSize,
Ncv32u * pBufsize,
cudaDeviceProp & devProp )

#include <opencv2/cudalegacy/NPP_staging.hpp>

计算创建积分图像所需的临时缓冲区的大小

另请参阅
nppiStIntegralGetSize_8u32u

◆ nppiStIntegralGetSize_8u32u()

NCVStatus nppiStIntegralGetSize_8u32u ( NcvSize32u roiSize,
Ncv32u * pBufsize,
cudaDeviceProp & devProp )

#include <opencv2/cudalegacy/NPP_staging.hpp>

计算创建积分图像所需的临时缓冲区的大小

参数
roiSize[IN] 输入图像的大小
pBufsize[OUT] 指向主机变量的指针,该变量返回临时缓冲区的大小(以字节为单位)
devProp[IN] CUDA 设备属性结构,包含纹理对齐信息
返回值
NCV 状态代码

◆ nppiStInterpolateFrames()

NCVStatus nppiStInterpolateFrames ( const NppStInterpolationState * pState)

#include <opencv2/cudalegacy/NPP_staging.hpp>

使用提供的光流(位移场)插值帧(图像)。32 位浮点图像,单通道

参数
pState[IN] 包含所有必需参数的结构(主机内存)
返回值
NCV 状态代码

◆ nppiStRectStdDev_32f_C1R()

NCVStatus nppiStRectStdDev_32f_C1R ( Ncv32u * d_sum,
Ncv32u sumStep,
Ncv64u * d_sqsum,
Ncv32u sqsumStep,
Ncv32f * d_norm,
Ncv32u normStep,
NcvSize32u roi,
NcvRect32u rect,
Ncv32f scaleArea,
NcvBool readThruTexture )

#include <opencv2/cudalegacy/NPP_staging.hpp>

使用积分图像计算输入图像每个矩形区域的标准差。

参数
d_sum[IN] 积分图像指针 (CUDA 设备内存)
sumStep[IN] 积分图像行步长
d_sqsum[IN] 平方积分图像指针 (CUDA 设备内存)
sqsumStep[IN] 平方积分图像行步长
d_norm[OUT] 标准差图像指针 (CUDA 设备内存)。每个像素包含图像中原始位置处左上角为矩形的标准差
normStep[IN] 标准差图像行步长
roi[IN] 源图像中的感兴趣区域
rect[IN] 要计算其标准差的矩形区域
scaleArea[IN] 用于计算十进制缩放的乘法因子
readThruTexture[IN] 性能提示,将源缓存到纹理 (true) 或直接读取 (false)
返回值
NCV 状态代码

◆ nppiStRectStdDev_32f_C1R_host()

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>

使用积分图像计算输入图像每个矩形区域的标准差。主机实现

参数
h_sum[IN] 积分图像指针 (主机或固定内存)
sumStep[IN] 积分图像行步长
h_sqsum[IN] 平方积分图像指针 (主机或固定内存)
sqsumStep[IN] 平方积分图像行步长
h_norm[OUT] 标准差图像指针 (主机或固定内存)。每个像素包含图像中原始位置处左上角为矩形的标准差
normStep[IN] 标准差图像行步长
roi[IN] 源图像中的感兴趣区域
rect[IN] 要计算其标准差的矩形区域
scaleArea[IN] 用于计算十进制缩放的乘法因子
返回值
NCV 状态代码

◆ nppiStResize_32f_C1R()

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>

调整大小。32 位浮点图像,单通道

使用指定的滤波器(插值类型)调整图像大小

参数
pSrc[IN] 源图像指针(CUDA 设备内存)
srcSize[IN] 源图像大小
nSrcStep[IN] 源图像行步长
srcROI[IN] 源图像感兴趣区域
pDst[OUT] 目标图像指针(CUDA 设备内存)
dstSize[IN] 目标图像大小
nDstStep[IN] 目标图像行步长
dstROI[IN] 目标图像感兴趣区域
xFactor[IN] 行缩放因子
yFactor[IN] 列缩放因子
interpolation[IN] 插值类型
返回值
NCV 状态代码

◆ nppiStSqrIntegral_8u64u_C1R()

NCVStatus nppiStSqrIntegral_8u64u_C1R ( Ncv8u * d_src,
Ncv32u srcStep,
Ncv64u * d_dst,
Ncv32u dstStep,
NcvSize32u roiSize,
Ncv8u * pBuffer,
Ncv32u bufSize,
cudaDeviceProp & devProp )

#include <opencv2/cudalegacy/NPP_staging.hpp>

为输入图像创建平方积分图像表示

参数
d_src[IN] 源图像指针(CUDA 设备内存)
srcStep[IN] 源图像行步长
d_dst[OUT] 目的平方积分图像指针 (CUDA 设备内存)
dstStep[IN] 目标图像行步长
roiSize[IN] 源图像的感兴趣区域
pBuffer[IN] 指向预分配的临时缓冲区的指针 (CUDA 设备内存)
bufSize[IN] pBuffer 的大小(以字节为单位)
devProp[IN] CUDA 设备属性结构,包含纹理对齐信息
返回值
NCV 状态代码

◆ nppiStSqrIntegral_8u64u_C1R_host()

NCVStatus nppiStSqrIntegral_8u64u_C1R_host ( Ncv8u * h_src,
Ncv32u srcStep,
Ncv64u * h_dst,
Ncv32u dstStep,
NcvSize32u roiSize )

#include <opencv2/cudalegacy/NPP_staging.hpp>

为输入图像创建平方积分图像表示。主机实现

参数
h_src[IN] 源图像指针(主机或固定内存)
srcStep[IN] 源图像行步长
h_dst[OUT] 目的平方积分图像指针 (主机或固定内存)
dstStep[IN] 目标图像行步长
roiSize[IN] 源图像的感兴趣区域
返回值
NCV 状态代码

◆ nppiStSqrIntegralGetSize_8u64u()

NCVStatus nppiStSqrIntegralGetSize_8u64u ( NcvSize32u roiSize,
Ncv32u * pBufsize,
cudaDeviceProp & devProp )

#include <opencv2/cudalegacy/NPP_staging.hpp>

计算创建平方积分图像所需的临时缓冲区的大小

参数
roiSize[IN] 输入图像的大小
pBufsize[OUT] 指向主机变量的指针,该变量返回临时缓冲区的大小(以字节为单位)
devProp[IN] CUDA 设备属性结构,包含纹理对齐信息
返回值
NCV 状态代码

◆ nppiStTranspose_128_C1R()

NCVStatus nppiStTranspose_128_C1R ( void * d_src,
Ncv32u srcStep,
void * d_dst,
Ncv32u dstStep,
NcvSize32u srcRoi )

#include <opencv2/cudalegacy/NPP_staging.hpp>

转置图像。任何类型的 128 位像素,单通道

另请参阅
nppiStTranspose_32u_C1R

◆ nppiStTranspose_128_C1R_host()

NCVStatus nppiStTranspose_128_C1R_host ( void * d_src,
Ncv32u srcStep,
void * d_dst,
Ncv32u dstStep,
NcvSize32u srcRoi )

#include <opencv2/cudalegacy/NPP_staging.hpp>

转置图像。任何类型的 128 位像素,单通道。主机实现

另请参阅
nppiStTranspose_32u_C1R_host

◆ nppiStTranspose_32f_C1R()

NCVStatus nppiStTranspose_32f_C1R ( Ncv32f * d_src,
Ncv32u srcStride,
Ncv32f * d_dst,
Ncv32u dstStride,
NcvSize32u srcRoi )

#include <opencv2/cudalegacy/NPP_staging.hpp>

转置图像。32 位浮点像素,单通道

另请参阅
nppiStTranspose_32u_C1R

◆ nppiStTranspose_32f_C1R_host()

NCVStatus nppiStTranspose_32f_C1R_host ( Ncv32f * h_src,
Ncv32u srcStride,
Ncv32f * h_dst,
Ncv32u dstStride,
NcvSize32u srcRoi )

#include <opencv2/cudalegacy/NPP_staging.hpp>

转置图像。32 位浮点像素,单通道。主机实现

另请参阅
nppiStTranspose_32u_C1R_host

◆ nppiStTranspose_32s_C1R()

NCVStatus nppiStTranspose_32s_C1R ( Ncv32s * d_src,
Ncv32u srcStride,
Ncv32s * d_dst,
Ncv32u dstStride,
NcvSize32u srcRoi )

#include <opencv2/cudalegacy/NPP_staging.hpp>

转置图像。32 位有符号像素,单通道

另请参阅
nppiStTranspose_32u_C1R

◆ nppiStTranspose_32s_C1R_host()

NCVStatus nppiStTranspose_32s_C1R_host ( Ncv32s * h_src,
Ncv32u srcStride,
Ncv32s * h_dst,
Ncv32u dstStride,
NcvSize32u srcRoi )

#include <opencv2/cudalegacy/NPP_staging.hpp>

转置图像。32 位有符号像素,单通道。主机实现

另请参阅
nppiStTranspose_32u_C1R_host

◆ nppiStTranspose_32u_C1R()

NCVStatus nppiStTranspose_32u_C1R ( Ncv32u * d_src,
Ncv32u srcStride,
Ncv32u * d_dst,
Ncv32u dstStride,
NcvSize32u srcRoi )

#include <opencv2/cudalegacy/NPP_staging.hpp>

转置图像。32 位无符号像素,单通道

参数
d_src[IN] 源图像指针(CUDA 设备内存)
srcStride[IN] 源图像行步长
d_dst[OUT] 目标图像指针(CUDA 设备内存)
dstStride[IN] 目标图像行步长
srcRoi[IN] 源图像的感兴趣区域
返回值
NCV 状态代码

◆ nppiStTranspose_32u_C1R_host()

NCVStatus nppiStTranspose_32u_C1R_host ( Ncv32u * h_src,
Ncv32u srcStride,
Ncv32u * h_dst,
Ncv32u dstStride,
NcvSize32u srcRoi )

#include <opencv2/cudalegacy/NPP_staging.hpp>

转置图像。32 位无符号像素,单通道。主机实现

参数
h_src[IN] 源图像指针(主机或固定内存)
srcStride[IN] 源图像行步长
h_dst[OUT] 目标图像指针(主机或固定内存)
dstStride[IN] 目标图像行步长
srcRoi[IN] 源图像的感兴趣区域
返回值
NCV 状态代码

◆ nppiStTranspose_64f_C1R()

NCVStatus nppiStTranspose_64f_C1R ( Ncv64f * d_src,
Ncv32u srcStride,
Ncv64f * d_dst,
Ncv32u dstStride,
NcvSize32u srcRoi )

#include <opencv2/cudalegacy/NPP_staging.hpp>

转置图像。64 位浮点像素,单通道

另请参阅
nppiStTranspose_32u_C1R

◆ nppiStTranspose_64f_C1R_host()

NCVStatus nppiStTranspose_64f_C1R_host ( Ncv64f * h_src,
Ncv32u srcStride,
Ncv64f * h_dst,
Ncv32u dstStride,
NcvSize32u srcRoi )

#include <opencv2/cudalegacy/NPP_staging.hpp>

图像转置。64位浮点数像素,单通道。主机实现

另请参阅
nppiStTranspose_32u_C1R_host

◆ nppiStTranspose_64s_C1R()

NCVStatus nppiStTranspose_64s_C1R ( Ncv64s * d_src,
Ncv32u srcStride,
Ncv64s * d_dst,
Ncv32u dstStride,
NcvSize32u srcRoi )

#include <opencv2/cudalegacy/NPP_staging.hpp>

图像转置。64位有符号像素,单通道

另请参阅
nppiStTranspose_32u_C1R

◆ nppiStTranspose_64s_C1R_host()

NCVStatus nppiStTranspose_64s_C1R_host ( Ncv64s * h_src,
Ncv32u srcStride,
Ncv64s * h_dst,
Ncv32u dstStride,
NcvSize32u srcRoi )

#include <opencv2/cudalegacy/NPP_staging.hpp>

图像转置。64位有符号像素,单通道。主机实现

另请参阅
nppiStTranspose_32u_C1R_host

◆ nppiStTranspose_64u_C1R()

NCVStatus nppiStTranspose_64u_C1R ( Ncv64u * d_src,
Ncv32u srcStride,
Ncv64u * d_dst,
Ncv32u dstStride,
NcvSize32u srcRoi )

#include <opencv2/cudalegacy/NPP_staging.hpp>

图像转置。64位无符号像素,单通道

另请参阅
nppiStTranspose_32u_C1R

◆ nppiStTranspose_64u_C1R_host()

NCVStatus nppiStTranspose_64u_C1R_host ( Ncv64u * h_src,
Ncv32u srcStride,
Ncv64u * h_dst,
Ncv32u dstStride,
NcvSize32u srcRoi )

#include <opencv2/cudalegacy/NPP_staging.hpp>

图像转置。64位无符号像素,单通道。主机实现

另请参阅
nppiStTranspose_32u_C1R_host

◆ nppiStVectorWarp_PSF1x1_32f_C1()

NCVStatus nppiStVectorWarp_PSF1x1_32f_C1 ( const Ncv32f * pSrc,
NcvSize32u srcSize,
Ncv32u nSrcStep,
const Ncv32f * pU,
const Ncv32f * pV,
Ncv32u nVFStep,
Ncv32f timeScale,
Ncv32f * pDst )

#include <opencv2/cudalegacy/NPP_staging.hpp>

使用提供的二维矢量场和1x1点扩散函数扭曲图像。32位浮点图像,单通道

在扭曲过程中,源图像的像素可能会落在目标图像像素之间。PSF(点扩散函数)描述了源图像像素如何影响目标像素。对于1x1 PSF,只有具有最大交集的单个像素受到影响(类似于最近邻插值)。

目标图像大小和行步长必须与源图像大小和行步长相同

参数
pSrc[IN] 源图像指针(CUDA 设备内存)
srcSize[IN] 源图像大小
nSrcStep[IN] 源图像行步长
pU[IN] 指向水平位移场的指针(CUDA 设备内存)
pV[IN] 指向垂直位移场的指针(CUDA 设备内存)
nVFStep[IN] 位移场行步长
timeScale[IN] 用于扭曲的位移场缩放值
pDst[OUT] 目标图像指针(CUDA 设备内存)
返回值
NCV 状态代码

◆ nppiStVectorWarp_PSF2x2_32f_C1()

NCVStatus nppiStVectorWarp_PSF2x2_32f_C1 ( const Ncv32f * pSrc,
NcvSize32u srcSize,
Ncv32u nSrcStep,
const Ncv32f * pU,
const Ncv32f * pV,
Ncv32u nVFStep,
Ncv32f * pBuffer,
Ncv32f timeScale,
Ncv32f * pDst )

#include <opencv2/cudalegacy/NPP_staging.hpp>

使用提供的二维矢量场和2x2点扩散函数扭曲图像。32位浮点图像,单通道

在扭曲过程中,源图像的像素可能会落在目标图像像素之间。PSF(点扩散函数)描述了源图像像素如何影响目标像素。对于2x2 PSF,所有四个相交像素都将受到影响。

目标图像大小和行步长必须与源图像大小和行步长相同

参数
pSrc[IN] 源图像指针(CUDA 设备内存)
srcSize[IN] 源图像大小
nSrcStep[IN] 源图像行步长
pU[IN] 指向水平位移场的指针(CUDA 设备内存)
pV[IN] 指向垂直位移场的指针(CUDA 设备内存)
nVFStep[IN] 位移场行步长
pBuffer
timeScale[IN] 用于扭曲的位移场缩放值
pDst[OUT] 目标图像指针(CUDA 设备内存)
返回值
NCV 状态代码

◆ nppiStVectorWarpGetBufferSize()

NCVStatus nppiStVectorWarpGetBufferSize ( NcvSize32u srcSize,
Ncv32u nSrcStep,
Ncv32u * hpSize )

#include <opencv2/cudalegacy/NPP_staging.hpp>

矢量图像扭曲所需缓冲区的大小。

参数
srcSize[IN] 源图像大小
nSrcStep[IN] 源图像行步长
hpSize[OUT] 用于存储计算大小的位置(主机内存)
返回值
NCV 状态代码