码迷,mamicode.com
首页 > 其他好文 > 详细

CV_HAAR_FEATURE_DESC_MAX和CV_HAAR_FEATURE_MAX

时间:2015-06-25 15:35:50      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:cv_haar_feature_desc   cv_haar_feature_max   opencv源码分析   

#define CV_HAAR_FEATURE_MAX      3             //预定义的一个宏,在程序中表示一个haar特征由至多三个矩形组成
#define CV_HAAR_FEATURE_DESC_MAX 20            //预定义的一个宏,描述haar特征的一个类型

typedef int    sum_type;
typedef double sqsum_type;
typedef short  idx_type;

#define CV_SUM_MAT_TYPE CV_32SC1
#define CV_SQSUM_MAT_TYPE CV_64FC1
#define CV_IDX_MAT_TYPE CV_16SC1

#define CV_STUMP_TRAIN_PORTION 100

#define CV_THRESHOLD_EPS (0.00001F)

typedef struct CvTHaarFeature
{
    char desc[CV_HAAR_FEATURE_DESC_MAX];
    int  tilted;
    struct
    {
        CvRect r;
        float weight;
    } rect[CV_HAAR_FEATURE_MAX];
} CvTHaarFeature;

typedef struct CvFastHaarFeature
{
    int tilted;
    struct
    {
        int p0, p1, p2, p3;
        float weight;
    } rect[CV_HAAR_FEATURE_MAX];
} CvFastHaarFeature;

typedef struct CvIntHaarFeatures
{
    CvSize winsize;
    int count;
    CvTHaarFeature* feature;
    CvFastHaarFeature* fastfeature;
} CvIntHaarFeatures;

CV_HAAR_FEATURE_DESC_MAX和CV_HAAR_FEATURE_MAX

标签:cv_haar_feature_desc   cv_haar_feature_max   opencv源码分析   

原文地址:http://blog.csdn.net/ding977921830/article/details/46636329

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!