OpenCV
4.1.0
Open Source Computer Vision
|
Modules | |
NPPST Core | |
NPPST Image Processing | |
NPPST Signal Processing | |
Namespaces | |
namespace | NcvCTprep |
Macros | |
#define | CLAMP(x, a, b) ( (x) > (b) ? (b) : ( (x) < (a) ? (a) : (x) ) ) |
#define | CLAMP_0_255(x) CLAMP(x,0,255) |
#define | CLAMP_BOTTOM(x, a) (((x) < (a)) ? (a) : (x)) |
#define | CLAMP_TOP(x, a) (((x) > (a)) ? (a) : (x)) |
#define | HAAR_STDDEV_BORDER 1 |
#define | NCV_CT_ASSERT(X) |
#define | NCV_CT_PREP_PASTE(a, b) NCV_CT_PREP_PASTE_AUX(a, b) |
Concatenation macro. | |
#define | NCV_CT_PREP_PASTE_AUX(a, b) a##b |
Concatenation indirection macro. | |
#define | NCV_RESET_SKIP_COND(x) __ncv_skip_cond = x |
#define | NCV_SET_SKIP_COND(x) bool __ncv_skip_cond = x |
#define | NCV_SKIP_COND_BEGIN if (!__ncv_skip_cond) { |
#define | NCV_SKIP_COND_END } |
#define | ncvAssertCUDALastErrorReturn(errCode) |
#define | ncvAssertCUDAReturn(cudacall, errCode) |
#define | ncvAssertPrintCheck(pred, msg) |
#define | ncvAssertPrintReturn(pred, msg, err) |
#define | ncvAssertReturn(pred, err) |
#define | ncvAssertReturnNcvStat(ncvOp) |
#define | ncvSafeMatAlloc(name, type, alloc, width, height, err) |
#define | OBJDET_MASK_ELEMENT_INVALID_32U 0xFFFFFFFF |
#define | RECT_SIMILARITY_PROPORTION 0.2f |
#define | SQR(x) ((x)*(x)) |
#define | SUB_BEGIN(type, name) struct { __inline type name |
#define | SUB_CALL(name) name.name |
#define | SUB_END(name) } name; |
Typedefs | |
typedef short | Ncv16s |
typedef unsigned short | Ncv16u |
typedef float | Ncv32f |
typedef Ncv32f | Ncv32f_a |
typedef int | Ncv32s |
typedef unsigned int | Ncv32u |
typedef Ncv32u | Ncv32u_a |
typedef double | Ncv64f |
typedef long long | Ncv64s |
typedef unsigned long long | Ncv64u |
typedef signed char | Ncv8s |
typedef unsigned char | Ncv8u |
typedef bool | NcvBool |
typedef void | NCVDebugOutputHandler (const cv::String &msg) |
typedef Ncv32u | NCVStatus |
typedef struct _NcvTimer * | NcvTimer |
Functions | |
virtual | INCVMemAllocator::~INCVMemAllocator ()=0 |
Ncv32u | alignUp (Ncv32u what, Ncv32u alignment) |
void | cv::cuda::calcOpticalFlowBM (const GpuMat &prev, const GpuMat &curr, Size block_size, Size shift_size, Size max_range, bool use_previous, GpuMat &velx, GpuMat &vely, GpuMat &buf, Stream &stream=Stream::Null()) |
Calculates optical flow for 2 images using block matching algorithm */. | |
*brief Compute optical flow **Based on method by Brox et al *[2004] param[in] desc model and solver parameters *param[in] gpu_mem_allocator GPU memory allocator *param[in] frame0 source frame *param[in] frame1 frame to track *param[out] u flow horizontal | component (along\b x axis)*\param[out] v flow vertical component(along\b y axis)*\param stream *\return computation status **/NCVStatus NCVBroxOpticalFlow(const NCVBroxOpticalFlowDescriptor desc |
void | cv::cuda::connectivityMask (const GpuMat &image, GpuMat &mask, const cv::Scalar &lo, const cv::Scalar &hi, Stream &stream=Stream::Null()) |
compute mask for Generalized Flood fill componetns labeling. | |
Ptr < cuda::BackgroundSubtractorFGD > | cv::cuda::createBackgroundSubtractorFGD (const FGDParams ¶ms=FGDParams()) |
Creates FGD Background Subtractor. | |
Ptr < cuda::BackgroundSubtractorGMG > | cv::cuda::createBackgroundSubtractorGMG (int initializationFrames=120, double decisionThreshold=0.8) |
Creates GMG Background Subtractor. | |
Ptr< ImagePyramid > | cv::cuda::createImagePyramid (InputArray img, int nLayers=-1, Stream &stream=Stream::Null()) |
void | cv::cuda::createOpticalFlowNeedleMap (const GpuMat &u, const GpuMat &v, GpuMat &vertex, GpuMat &colors) |
void | cv::cuda::graphcut (GpuMat &terminals, GpuMat &leftTransp, GpuMat &rightTransp, GpuMat &top, GpuMat &bottom, GpuMat &labels, GpuMat &buf, Stream &stream=Stream::Null()) |
performs labeling via graph cuts of a 2D regular 4-connected graph. | |
void | cv::cuda::graphcut (GpuMat &terminals, GpuMat &leftTransp, GpuMat &rightTransp, GpuMat &top, GpuMat &topLeft, GpuMat &topRight, GpuMat &bottom, GpuMat &bottomLeft, GpuMat &bottomRight, GpuMat &labels, GpuMat &buf, Stream &stream=Stream::Null()) |
performs labeling via graph cuts of a 2D regular 8-connected graph. | |
void | cv::cuda::interpolateFrames (const GpuMat &frame0, const GpuMat &frame1, const GpuMat &fu, const GpuMat &fv, const GpuMat &bu, const GpuMat &bv, float pos, GpuMat &newFrame, GpuMat &buf, Stream &stream=Stream::Null()) |
Interpolates frames (images) using provided optical flow (displacement field). | |
void | cv::cuda::labelComponents (const GpuMat &mask, GpuMat &components, int flags=0, Stream &stream=Stream::Null()) |
performs connected componnents labeling. | |
NCVStatus | memSegCopyHelper (void *dst, NCVMemoryType dstType, const void *src, NCVMemoryType srcType, size_t sz, cudaStream_t cuStream) |
NCVStatus | memSegCopyHelper2D (void *dst, Ncv32u dstPitch, NCVMemoryType dstType, const void *src, Ncv32u srcPitch, NCVMemoryType srcType, Ncv32u widthbytes, Ncv32u height, cudaStream_t cuStream) |
NCV_CT_ASSERT (sizeof(HaarFeature64)==8) | |
NCV_CT_ASSERT (sizeof(HaarFeatureDescriptor32)==4) | |
NCV_CT_ASSERT (sizeof(HaarClassifierNodeDescriptor32)==4) | |
NCV_CT_ASSERT (sizeof(HaarClassifierNode128)==16) | |
NCV_CT_ASSERT (sizeof(HaarStage64)==8) | |
NCVStatus | ncvApplyHaarClassifierCascade_device (NCVMatrix< Ncv32u > &d_integralImage, NCVMatrix< Ncv32f > &d_weights, NCVMatrixAlloc< Ncv32u > &d_pixelMask, Ncv32u &numDetections, HaarClassifierCascadeDescriptor &haar, NCVVector< HaarStage64 > &h_HaarStages, NCVVector< HaarStage64 > &d_HaarStages, NCVVector< HaarClassifierNode128 > &d_HaarNodes, NCVVector< HaarFeature64 > &d_HaarFeatures, NcvBool bMaskElements, NcvSize32u anchorsRoi, Ncv32u pixelStep, Ncv32f scaleArea, INCVMemAllocator &gpuAllocator, INCVMemAllocator &cpuAllocator, cudaDeviceProp &devProp, cudaStream_t cuStream) |
NCVStatus | ncvApplyHaarClassifierCascade_host (NCVMatrix< Ncv32u > &h_integralImage, NCVMatrix< Ncv32f > &h_weights, NCVMatrixAlloc< Ncv32u > &h_pixelMask, Ncv32u &numDetections, HaarClassifierCascadeDescriptor &haar, NCVVector< HaarStage64 > &h_HaarStages, NCVVector< HaarClassifierNode128 > &h_HaarNodes, NCVVector< HaarFeature64 > &h_HaarFeatures, NcvBool bMaskElements, NcvSize32u anchorsRoi, Ncv32u pixelStep, Ncv32f scaleArea) |
void | ncvDebugOutput (const cv::String &msg) |
NCVStatus | ncvDetectObjectsMultiScale_device (NCVMatrix< Ncv8u > &d_srcImg, NcvSize32u srcRoi, NCVVector< NcvRect32u > &d_dstRects, Ncv32u &dstNumRects, HaarClassifierCascadeDescriptor &haar, NCVVector< HaarStage64 > &h_HaarStages, NCVVector< HaarStage64 > &d_HaarStages, NCVVector< HaarClassifierNode128 > &d_HaarNodes, NCVVector< HaarFeature64 > &d_HaarFeatures, NcvSize32u minObjSize, Ncv32u minNeighbors, Ncv32f scaleStep, Ncv32u pixelStep, Ncv32u flags, INCVMemAllocator &gpuAllocator, INCVMemAllocator &cpuAllocator, cudaDeviceProp &devProp, cudaStream_t cuStream) |
NCVStatus | ncvDrawRects_32u_device (Ncv32u *d_dst, Ncv32u dstStride, Ncv32u dstWidth, Ncv32u dstHeight, NcvRect32u *d_rects, Ncv32u numRects, Ncv32u color, cudaStream_t cuStream) |
NCVStatus | ncvDrawRects_32u_host (Ncv32u *h_dst, Ncv32u dstStride, Ncv32u dstWidth, Ncv32u dstHeight, NcvRect32u *h_rects, Ncv32u numRects, Ncv32u color) |
NCVStatus | ncvDrawRects_8u_device (Ncv8u *d_dst, Ncv32u dstStride, Ncv32u dstWidth, Ncv32u dstHeight, NcvRect32u *d_rects, Ncv32u numRects, Ncv8u color, cudaStream_t cuStream) |
NCVStatus | ncvDrawRects_8u_host (Ncv8u *h_dst, Ncv32u dstStride, Ncv32u dstWidth, Ncv32u dstHeight, NcvRect32u *h_rects, Ncv32u numRects, Ncv8u color) |
double | ncvEndQueryTimerMs (NcvTimer t) |
double | ncvEndQueryTimerUs (NcvTimer t) |
NCVStatus | ncvGroupRectangles_host (NCVVector< NcvRect32u > &hypotheses, Ncv32u &numHypotheses, Ncv32u minNeighbors, Ncv32f intersectEps, NCVVector< Ncv32u > *hypothesesWeights) |
NCVStatus | ncvGrowDetectionsVector_device (NCVVector< Ncv32u > &pixelMask, Ncv32u numPixelMaskDetections, NCVVector< NcvRect32u > &hypotheses, Ncv32u &totalDetections, Ncv32u totalMaxDetections, Ncv32u rectWidth, Ncv32u rectHeight, Ncv32f curScale, cudaStream_t cuStream) |
NCVStatus | ncvGrowDetectionsVector_host (NCVVector< Ncv32u > &pixelMask, Ncv32u numPixelMaskDetections, NCVVector< NcvRect32u > &hypotheses, Ncv32u &totalDetections, Ncv32u totalMaxDetections, Ncv32u rectWidth, Ncv32u rectHeight, Ncv32f curScale) |
NCVStatus | ncvHaarGetClassifierSize (const cv::String &filename, Ncv32u &numStages, Ncv32u &numNodes, Ncv32u &numFeatures) |
NCVStatus | ncvHaarLoadFromFile_host (const cv::String &filename, HaarClassifierCascadeDescriptor &haar, NCVVector< HaarStage64 > &h_HaarStages, NCVVector< HaarClassifierNode128 > &h_HaarNodes, NCVVector< HaarFeature64 > &h_HaarFeatures) |
NCVStatus | ncvHaarStoreNVBIN_host (const cv::String &filename, HaarClassifierCascadeDescriptor haar, NCVVector< HaarStage64 > &h_HaarStages, NCVVector< HaarClassifierNode128 > &h_HaarNodes, NCVVector< HaarFeature64 > &h_HaarFeatures) |
void | ncvSetDebugOutputHandler (NCVDebugOutputHandler *func) |
NcvTimer | ncvStartTimer (void) |
void | cv::cuda::projectPoints (const GpuMat &src, const Mat &rvec, const Mat &tvec, const Mat &camera_mat, const Mat &dist_coef, GpuMat &dst, Stream &stream=Stream::Null()) |
void | cv::cuda::solvePnPRansac (const Mat &object, const Mat &image, const Mat &camera_mat, const Mat &dist_coef, Mat &rvec, Mat &tvec, bool use_extrinsic_guess=false, int num_iters=100, float max_dist=8.0, int min_inlier_count=100, std::vector< int > *inliers=NULL) |
Finds the object pose from 3D-2D point correspondences. | |
void | cv::cuda::transformPoints (const GpuMat &src, const Mat &rvec, const Mat &tvec, GpuMat &dst, Stream &stream=Stream::Null()) |
Variables | |
*brief Compute optical flow **Based on method by Brox et al *[2004] param[in] desc model and solver parameters *param[in] gpu_mem_allocator GPU memory allocator *param[in] frame0 source frame *param[in] frame1 frame to track *param[out] u flow horizontal INCVMemAllocator const NCVMatrix< Ncv32f > & | frame0 |
*brief Compute optical flow **Based on method by Brox et al *[2004] param[in] desc model and solver parameters *param[in] gpu_mem_allocator GPU memory allocator *param[in] frame0 source frame *param[in] frame1 frame to track *param[out] u flow horizontal INCVMemAllocator const NCVMatrix< Ncv32f > const NCVMatrix< Ncv32f > & | frame1 |
*brief Compute optical flow **Based on method by Brox et al *[2004] param[in] desc model and solver parameters *param[in] gpu_mem_allocator GPU memory allocator *param[in] frame0 source frame *param[in] frame1 frame to track *param[out] u flow horizontal INCVMemAllocator & | gpu_mem_allocator |
const Ncv32u | K_LOG2_WARP_SIZE = 5 |
const Ncv32u | K_WARP_SIZE = 32 |
*brief Compute optical flow **Based on method by Brox et al *[2004] param[in] desc model and solver parameters *param[in] gpu_mem_allocator GPU memory allocator *param[in] frame0 source frame *param[in] frame1 frame to track *param[out] u flow horizontal INCVMemAllocator const NCVMatrix< Ncv32f > const NCVMatrix< Ncv32f > NCVMatrix < Ncv32f > NCVMatrix< Ncv32f > cudaStream_t | stream |
*brief Compute optical flow **Based on method by Brox et al *[2004] param[in] desc model and solver parameters *param[in] gpu_mem_allocator GPU memory allocator *param[in] frame0 source frame *param[in] frame1 frame to track *param[out] u flow horizontal INCVMemAllocator const NCVMatrix< Ncv32f > const NCVMatrix< Ncv32f > NCVMatrix < Ncv32f > & | u |
*brief Compute optical flow **Based on method by Brox et al *[2004] param[in] desc model and solver parameters *param[in] gpu_mem_allocator GPU memory allocator *param[in] frame0 source frame *param[in] frame1 frame to track *param[out] u flow horizontal INCVMemAllocator const NCVMatrix< Ncv32f > const NCVMatrix< Ncv32f > NCVMatrix < Ncv32f > NCVMatrix< Ncv32f > & | v |
#define CLAMP | ( | x, | |
a, | |||
b | |||
) | ( (x) > (b) ? (b) : ( (x) < (a) ? (a) : (x) ) ) |
#define CLAMP_0_255 | ( | x | ) | CLAMP(x,0,255) |
#define CLAMP_BOTTOM | ( | x, | |
a | |||
) | (((x) < (a)) ? (a) : (x)) |
#define CLAMP_TOP | ( | x, | |
a | |||
) | (((x) > (a)) ? (a) : (x)) |
#define HAAR_STDDEV_BORDER 1 |
#define NCV_CT_ASSERT | ( | X | ) |
Performs compile-time assertion of a condition on the file scope
#define NCV_CT_PREP_PASTE | ( | a, | |
b | |||
) | NCV_CT_PREP_PASTE_AUX(a, b) |
Concatenation macro.
#define NCV_CT_PREP_PASTE_AUX | ( | a, | |
b | |||
) | a##b |
Concatenation indirection macro.
#define NCV_RESET_SKIP_COND | ( | x | ) | __ncv_skip_cond = x |
#define NCV_SET_SKIP_COND | ( | x | ) | bool __ncv_skip_cond = x |
#define NCV_SKIP_COND_BEGIN if (!__ncv_skip_cond) { |
#define NCV_SKIP_COND_END } |
#define ncvAssertCUDALastErrorReturn | ( | errCode | ) |
#define ncvAssertCUDAReturn | ( | cudacall, | |
errCode | |||
) |
#define ncvAssertPrintCheck | ( | pred, | |
msg | |||
) |
#define ncvAssertPrintReturn | ( | pred, | |
msg, | |||
err | |||
) |
#define ncvAssertReturn | ( | pred, | |
err | |||
) |
#define ncvAssertReturnNcvStat | ( | ncvOp | ) |
#define ncvSafeMatAlloc | ( | name, | |
type, | |||
alloc, | |||
width, | |||
height, | |||
err | |||
) |
#define OBJDET_MASK_ELEMENT_INVALID_32U 0xFFFFFFFF |
#define RECT_SIMILARITY_PROPORTION 0.2f |
#define SQR | ( | x | ) | ((x)*(x)) |
#define SUB_BEGIN | ( | type, | |
name | |||
) | struct { __inline type name |
#define SUB_CALL | ( | name | ) | name.name |
#define SUB_END | ( | name | ) | } name; |
typedef short Ncv16s |
typedef unsigned short Ncv16u |
typedef float Ncv32f |
typedef int Ncv32s |
typedef unsigned int Ncv32u |
typedef double Ncv64f |
typedef long long Ncv64s |
typedef unsigned long long Ncv64u |
typedef signed char Ncv8s |
typedef unsigned char Ncv8u |
typedef bool NcvBool |
typedef void NCVDebugOutputHandler(const cv::String &msg) |
typedef struct _NcvTimer* NcvTimer |
anonymous enum |
Return-codes for status notification, errors and warnings
anonymous enum |
enum NCVMemoryType |
|
inlinepure virtual |
void cv::cuda::calcOpticalFlowBM | ( | const GpuMat & | prev, |
const GpuMat & | curr, | ||
Size | block_size, | ||
Size | shift_size, | ||
Size | max_range, | ||
bool | use_previous, | ||
GpuMat & | velx, | ||
GpuMat & | vely, | ||
GpuMat & | buf, | ||
Stream & | stream = Stream::Null() |
||
) |
Calculates optical flow for 2 images using block matching algorithm */.
* brief Compute optical flow* * Based on method by Brox et al* [2004] param [in] desc model and solver parameters* param [in] gpu_mem_allocator GPU memory allocator* param [in] frame0 source frame* param [in] frame1 frame to track* param [out] u flow horizontal component | ( | along\b x | axis | ) | const |
void cv::cuda::connectivityMask | ( | const GpuMat & | image, |
GpuMat & | mask, | ||
const cv::Scalar & | lo, | ||
const cv::Scalar & | hi, | ||
Stream & | stream = Stream::Null() |
||
) |
compute mask for Generalized Flood fill componetns labeling.
Ptr<cuda::BackgroundSubtractorFGD> cv::cuda::createBackgroundSubtractorFGD | ( | const FGDParams & | params = FGDParams() | ) |
Ptr<cuda::BackgroundSubtractorGMG> cv::cuda::createBackgroundSubtractorGMG | ( | int | initializationFrames = 120 , |
double | decisionThreshold = 0.8 |
||
) |
Creates GMG Background Subtractor.
initializationFrames | Number of frames of video to use to initialize histograms. |
decisionThreshold | Value above which pixel is determined to be FG. |
Ptr<ImagePyramid> cv::cuda::createImagePyramid | ( | InputArray | img, |
int | nLayers = -1 , |
||
Stream & | stream = Stream::Null() |
||
) |
void cv::cuda::createOpticalFlowNeedleMap | ( | const GpuMat & | u, |
const GpuMat & | v, | ||
GpuMat & | vertex, | ||
GpuMat & | colors | ||
) |
void cv::cuda::graphcut | ( | GpuMat & | terminals, |
GpuMat & | leftTransp, | ||
GpuMat & | rightTransp, | ||
GpuMat & | top, | ||
GpuMat & | bottom, | ||
GpuMat & | labels, | ||
GpuMat & | buf, | ||
Stream & | stream = Stream::Null() |
||
) |
performs labeling via graph cuts of a 2D regular 4-connected graph.
void cv::cuda::graphcut | ( | GpuMat & | terminals, |
GpuMat & | leftTransp, | ||
GpuMat & | rightTransp, | ||
GpuMat & | top, | ||
GpuMat & | topLeft, | ||
GpuMat & | topRight, | ||
GpuMat & | bottom, | ||
GpuMat & | bottomLeft, | ||
GpuMat & | bottomRight, | ||
GpuMat & | labels, | ||
GpuMat & | buf, | ||
Stream & | stream = Stream::Null() |
||
) |
performs labeling via graph cuts of a 2D regular 8-connected graph.
void cv::cuda::interpolateFrames | ( | const GpuMat & | frame0, |
const GpuMat & | frame1, | ||
const GpuMat & | fu, | ||
const GpuMat & | fv, | ||
const GpuMat & | bu, | ||
const GpuMat & | bv, | ||
float | pos, | ||
GpuMat & | newFrame, | ||
GpuMat & | buf, | ||
Stream & | stream = Stream::Null() |
||
) |
Interpolates frames (images) using provided optical flow (displacement field).
frame0 | First frame (32-bit floating point images, single channel). |
frame1 | Second frame. Must have the same type and size as frame0 . |
fu | Forward horizontal displacement. |
fv | Forward vertical displacement. |
bu | Backward horizontal displacement. |
bv | Backward vertical displacement. |
pos | New frame position. |
newFrame | Output image. |
buf | Temporary buffer, will have width x 6*height size, CV_32FC1 type and contain 6 GpuMat: occlusion masks for first frame, occlusion masks for second, interpolated forward horizontal flow, interpolated forward vertical flow, interpolated backward horizontal flow, interpolated backward vertical flow. |
stream | Stream for the asynchronous version. |
void cv::cuda::labelComponents | ( | const GpuMat & | mask, |
GpuMat & | components, | ||
int | flags = 0 , |
||
Stream & | stream = Stream::Null() |
||
) |
performs connected componnents labeling.
NCVStatus memSegCopyHelper | ( | void * | dst, |
NCVMemoryType | dstType, | ||
const void * | src, | ||
NCVMemoryType | srcType, | ||
size_t | sz, | ||
cudaStream_t | cuStream | ||
) |
Copy dispatchers
NCVStatus memSegCopyHelper2D | ( | void * | dst, |
Ncv32u | dstPitch, | ||
NCVMemoryType | dstType, | ||
const void * | src, | ||
Ncv32u | srcPitch, | ||
NCVMemoryType | srcType, | ||
Ncv32u | widthbytes, | ||
Ncv32u | height, | ||
cudaStream_t | cuStream | ||
) |
NCV_CT_ASSERT | ( | sizeof(HaarFeature64) | = =8 | ) |
NCV_CT_ASSERT | ( | sizeof(HaarFeatureDescriptor32) | = =4 | ) |
NCV_CT_ASSERT | ( | sizeof(HaarClassifierNodeDescriptor32) | = =4 | ) |
NCV_CT_ASSERT | ( | sizeof(HaarClassifierNode128) | = =16 | ) |
NCV_CT_ASSERT | ( | sizeof(HaarStage64) | = =8 | ) |
NCVStatus ncvApplyHaarClassifierCascade_device | ( | NCVMatrix< Ncv32u > & | d_integralImage, |
NCVMatrix< Ncv32f > & | d_weights, | ||
NCVMatrixAlloc< Ncv32u > & | d_pixelMask, | ||
Ncv32u & | numDetections, | ||
HaarClassifierCascadeDescriptor & | haar, | ||
NCVVector< HaarStage64 > & | h_HaarStages, | ||
NCVVector< HaarStage64 > & | d_HaarStages, | ||
NCVVector< HaarClassifierNode128 > & | d_HaarNodes, | ||
NCVVector< HaarFeature64 > & | d_HaarFeatures, | ||
NcvBool | bMaskElements, | ||
NcvSize32u | anchorsRoi, | ||
Ncv32u | pixelStep, | ||
Ncv32f | scaleArea, | ||
INCVMemAllocator & | gpuAllocator, | ||
INCVMemAllocator & | cpuAllocator, | ||
cudaDeviceProp & | devProp, | ||
cudaStream_t | cuStream | ||
) |
NCVStatus ncvApplyHaarClassifierCascade_host | ( | NCVMatrix< Ncv32u > & | h_integralImage, |
NCVMatrix< Ncv32f > & | h_weights, | ||
NCVMatrixAlloc< Ncv32u > & | h_pixelMask, | ||
Ncv32u & | numDetections, | ||
HaarClassifierCascadeDescriptor & | haar, | ||
NCVVector< HaarStage64 > & | h_HaarStages, | ||
NCVVector< HaarClassifierNode128 > & | h_HaarNodes, | ||
NCVVector< HaarFeature64 > & | h_HaarFeatures, | ||
NcvBool | bMaskElements, | ||
NcvSize32u | anchorsRoi, | ||
Ncv32u | pixelStep, | ||
Ncv32f | scaleArea | ||
) |
void ncvDebugOutput | ( | const cv::String & | msg | ) |
NCVStatus ncvDetectObjectsMultiScale_device | ( | NCVMatrix< Ncv8u > & | d_srcImg, |
NcvSize32u | srcRoi, | ||
NCVVector< NcvRect32u > & | d_dstRects, | ||
Ncv32u & | dstNumRects, | ||
HaarClassifierCascadeDescriptor & | haar, | ||
NCVVector< HaarStage64 > & | h_HaarStages, | ||
NCVVector< HaarStage64 > & | d_HaarStages, | ||
NCVVector< HaarClassifierNode128 > & | d_HaarNodes, | ||
NCVVector< HaarFeature64 > & | d_HaarFeatures, | ||
NcvSize32u | minObjSize, | ||
Ncv32u | minNeighbors, | ||
Ncv32f | scaleStep, | ||
Ncv32u | pixelStep, | ||
Ncv32u | flags, | ||
INCVMemAllocator & | gpuAllocator, | ||
INCVMemAllocator & | cpuAllocator, | ||
cudaDeviceProp & | devProp, | ||
cudaStream_t | cuStream | ||
) |
NCVStatus ncvDrawRects_32u_device | ( | Ncv32u * | d_dst, |
Ncv32u | dstStride, | ||
Ncv32u | dstWidth, | ||
Ncv32u | dstHeight, | ||
NcvRect32u * | d_rects, | ||
Ncv32u | numRects, | ||
Ncv32u | color, | ||
cudaStream_t | cuStream | ||
) |
NCVStatus ncvDrawRects_32u_host | ( | Ncv32u * | h_dst, |
Ncv32u | dstStride, | ||
Ncv32u | dstWidth, | ||
Ncv32u | dstHeight, | ||
NcvRect32u * | h_rects, | ||
Ncv32u | numRects, | ||
Ncv32u | color | ||
) |
NCVStatus ncvDrawRects_8u_device | ( | Ncv8u * | d_dst, |
Ncv32u | dstStride, | ||
Ncv32u | dstWidth, | ||
Ncv32u | dstHeight, | ||
NcvRect32u * | d_rects, | ||
Ncv32u | numRects, | ||
Ncv8u | color, | ||
cudaStream_t | cuStream | ||
) |
NCVStatus ncvDrawRects_8u_host | ( | Ncv8u * | h_dst, |
Ncv32u | dstStride, | ||
Ncv32u | dstWidth, | ||
Ncv32u | dstHeight, | ||
NcvRect32u * | h_rects, | ||
Ncv32u | numRects, | ||
Ncv8u | color | ||
) |
double ncvEndQueryTimerMs | ( | NcvTimer | t | ) |
double ncvEndQueryTimerUs | ( | NcvTimer | t | ) |
NCVStatus ncvGroupRectangles_host | ( | NCVVector< NcvRect32u > & | hypotheses, |
Ncv32u & | numHypotheses, | ||
Ncv32u | minNeighbors, | ||
Ncv32f | intersectEps, | ||
NCVVector< Ncv32u > * | hypothesesWeights | ||
) |
Operations with rectangles
NCVStatus ncvGrowDetectionsVector_device | ( | NCVVector< Ncv32u > & | pixelMask, |
Ncv32u | numPixelMaskDetections, | ||
NCVVector< NcvRect32u > & | hypotheses, | ||
Ncv32u & | totalDetections, | ||
Ncv32u | totalMaxDetections, | ||
Ncv32u | rectWidth, | ||
Ncv32u | rectHeight, | ||
Ncv32f | curScale, | ||
cudaStream_t | cuStream | ||
) |
NCVStatus ncvGrowDetectionsVector_host | ( | NCVVector< Ncv32u > & | pixelMask, |
Ncv32u | numPixelMaskDetections, | ||
NCVVector< NcvRect32u > & | hypotheses, | ||
Ncv32u & | totalDetections, | ||
Ncv32u | totalMaxDetections, | ||
Ncv32u | rectWidth, | ||
Ncv32u | rectHeight, | ||
Ncv32f | curScale | ||
) |
NCVStatus ncvHaarGetClassifierSize | ( | const cv::String & | filename, |
Ncv32u & | numStages, | ||
Ncv32u & | numNodes, | ||
Ncv32u & | numFeatures | ||
) |
NCVStatus ncvHaarLoadFromFile_host | ( | const cv::String & | filename, |
HaarClassifierCascadeDescriptor & | haar, | ||
NCVVector< HaarStage64 > & | h_HaarStages, | ||
NCVVector< HaarClassifierNode128 > & | h_HaarNodes, | ||
NCVVector< HaarFeature64 > & | h_HaarFeatures | ||
) |
NCVStatus ncvHaarStoreNVBIN_host | ( | const cv::String & | filename, |
HaarClassifierCascadeDescriptor | haar, | ||
NCVVector< HaarStage64 > & | h_HaarStages, | ||
NCVVector< HaarClassifierNode128 > & | h_HaarNodes, | ||
NCVVector< HaarFeature64 > & | h_HaarFeatures | ||
) |
void ncvSetDebugOutputHandler | ( | NCVDebugOutputHandler * | func | ) |
NcvTimer ncvStartTimer | ( | void | ) |
void cv::cuda::projectPoints | ( | const GpuMat & | src, |
const Mat & | rvec, | ||
const Mat & | tvec, | ||
const Mat & | camera_mat, | ||
const Mat & | dist_coef, | ||
GpuMat & | dst, | ||
Stream & | stream = Stream::Null() |
||
) |
void cv::cuda::solvePnPRansac | ( | const Mat & | object, |
const Mat & | image, | ||
const Mat & | camera_mat, | ||
const Mat & | dist_coef, | ||
Mat & | rvec, | ||
Mat & | tvec, | ||
bool | use_extrinsic_guess = false , |
||
int | num_iters = 100 , |
||
float | max_dist = 8.0 , |
||
int | min_inlier_count = 100 , |
||
std::vector< int > * | inliers = NULL |
||
) |
Finds the object pose from 3D-2D point correspondences.
object | Single-row matrix of object points. |
image | Single-row matrix of image points. |
camera_mat | 3x3 matrix of intrinsic camera parameters. |
dist_coef | Distortion coefficients. See undistortPoints for details. |
rvec | Output 3D rotation vector. |
tvec | Output 3D translation vector. |
use_extrinsic_guess | Flag to indicate that the function must use rvec and tvec as an initial transformation guess. It is not supported for now. |
num_iters | Maximum number of RANSAC iterations. |
max_dist | Euclidean distance threshold to detect whether point is inlier or not. |
min_inlier_count | Flag to indicate that the function must stop if greater or equal number of inliers is achieved. It is not supported for now. |
inliers | Output vector of inlier indices. |
void cv::cuda::transformPoints | ( | const GpuMat & | src, |
const Mat & | rvec, | ||
const Mat & | tvec, | ||
GpuMat & | dst, | ||
Stream & | stream = Stream::Null() |
||
) |
* brief Compute optical flow* * Based on method by Brox et al* [2004] param [in] desc model and solver parameters* param [in] gpu_mem_allocator GPU memory allocator* param [in] frame0 source frame* param [in] frame1 frame to track* param [out] u flow horizontal INCVMemAllocator const NCVMatrix<Ncv32f>& frame0 |
* brief Compute optical flow* * Based on method by Brox et al* [2004] param [in] desc model and solver parameters* param [in] gpu_mem_allocator GPU memory allocator* param [in] frame0 source frame* param [in] frame1 frame to track* param [out] u flow horizontal INCVMemAllocator const NCVMatrix<Ncv32f> const NCVMatrix<Ncv32f>& frame1 |
* brief Compute optical flow* * Based on method by Brox et al* [2004] param [in] desc model and solver parameters* param [in] gpu_mem_allocator GPU memory allocator* param [in] frame0 source frame* param [in] frame1 frame to track* param [out] u flow horizontal INCVMemAllocator& gpu_mem_allocator |
const Ncv32u K_LOG2_WARP_SIZE = 5 |
const Ncv32u K_WARP_SIZE = 32 |
* brief Compute optical flow* * Based on method by Brox et al* [2004] param [in] desc model and solver parameters* param [in] gpu_mem_allocator GPU memory allocator* param [in] frame0 source frame* param [in] frame1 frame to track* param [out] u flow horizontal INCVMemAllocator const NCVMatrix<Ncv32f> const NCVMatrix<Ncv32f> NCVMatrix<Ncv32f> NCVMatrix<Ncv32f> cudaStream_t stream |
* brief Compute optical flow* * Based on method by Brox et al* [2004] param [in] desc model and solver parameters* param [in] gpu_mem_allocator GPU memory allocator* param [in] frame0 source frame* param [in] frame1 frame to track* param [out] u flow horizontal INCVMemAllocator const NCVMatrix<Ncv32f> const NCVMatrix<Ncv32f> NCVMatrix<Ncv32f>& u |
* brief Compute optical flow* * Based on method by Brox et al* [2004] param [in] desc model and solver parameters* param [in] gpu_mem_allocator GPU memory allocator* param [in] frame0 source frame* param [in] frame1 frame to track* param [out] u flow horizontal INCVMemAllocator const NCVMatrix<Ncv32f> const NCVMatrix<Ncv32f> NCVMatrix<Ncv32f> NCVMatrix<Ncv32f>& v |