OpenCV  4.0.0-beta
Open Source Computer Vision
Classes | Macros | Typedefs | Enumerations | Functions
NCVHaarObjectDetection.hpp File Reference
#include "opencv2/cudalegacy/NCV.hpp"

Classes

struct  HaarClassifierCascadeDescriptor
 
struct  HaarClassifierNode128
 
struct  HaarClassifierNodeDescriptor32
 
struct  HaarFeature64
 
struct  HaarFeatureDescriptor32
 
struct  HaarStage64
 

Macros

#define HAAR_STDDEV_BORDER   1
 
#define HaarFeature64_CreateCheck_MaxRectField   0xFF
 
#define HaarFeatureDescriptor32_CreateCheck_MaxFeatureOffset   0x00FFFFFF
 
#define HaarFeatureDescriptor32_CreateCheck_MaxNumFeatures   0x1F
 
#define HaarFeatureDescriptor32_Interpret_MaskFlagLeftNodeLeaf   0x40000000
 
#define HaarFeatureDescriptor32_Interpret_MaskFlagRightNodeLeaf   0x20000000
 
#define HaarFeatureDescriptor32_Interpret_MaskFlagTilted   0x80000000
 
#define HaarFeatureDescriptor32_NumFeatures_Shift   24
 
#define HaarStage64_Interpret_MaskRootNodeOffset   0xFFFF0000
 
#define HaarStage64_Interpret_MaskRootNodes   0x0000FFFF
 
#define HaarStage64_Interpret_ShiftRootNodeOffset   16
 
#define OBJDET_MASK_ELEMENT_INVALID_32U   0xFFFFFFFF
 
#define RECT_SIMILARITY_PROPORTION   0.2f
 

Typedefs

typedef Ncv32f Ncv32f_a
 
typedef Ncv32u Ncv32u_a
 

Enumerations

enum  {
  NCVPipeObjDet_Default = 0x000,
  NCVPipeObjDet_UseFairImageScaling = 0x001,
  NCVPipeObjDet_FindLargestObject = 0x002,
  NCVPipeObjDet_VisualizeInPlace = 0x004
}
 

Functions

 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)
 
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 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)
 

Macro Definition Documentation

§ HaarFeature64_CreateCheck_MaxRectField

#define HaarFeature64_CreateCheck_MaxRectField   0xFF

§ HaarFeatureDescriptor32_CreateCheck_MaxFeatureOffset

#define HaarFeatureDescriptor32_CreateCheck_MaxFeatureOffset   0x00FFFFFF

§ HaarFeatureDescriptor32_CreateCheck_MaxNumFeatures

#define HaarFeatureDescriptor32_CreateCheck_MaxNumFeatures   0x1F

§ HaarFeatureDescriptor32_Interpret_MaskFlagLeftNodeLeaf

#define HaarFeatureDescriptor32_Interpret_MaskFlagLeftNodeLeaf   0x40000000

§ HaarFeatureDescriptor32_Interpret_MaskFlagRightNodeLeaf

#define HaarFeatureDescriptor32_Interpret_MaskFlagRightNodeLeaf   0x20000000

§ HaarFeatureDescriptor32_Interpret_MaskFlagTilted

#define HaarFeatureDescriptor32_Interpret_MaskFlagTilted   0x80000000

§ HaarFeatureDescriptor32_NumFeatures_Shift

#define HaarFeatureDescriptor32_NumFeatures_Shift   24

§ HaarStage64_Interpret_MaskRootNodeOffset

#define HaarStage64_Interpret_MaskRootNodeOffset   0xFFFF0000

§ HaarStage64_Interpret_MaskRootNodes

#define HaarStage64_Interpret_MaskRootNodes   0x0000FFFF

§ HaarStage64_Interpret_ShiftRootNodeOffset

#define HaarStage64_Interpret_ShiftRootNodeOffset   16