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

有关cascade的结构体

时间:2015-07-02 15:45:01      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:cvcascadehaarclassif   cvtreecascadenode   cvtreecascadeclassif   cv_int_haar_classifi   


/* internal cascade classifier */
typedef struct CvCascadeHaarClassifier
{
    CV_INT_HAAR_CLASSIFIER_FIELDS()

    int count;
    CvIntHaarClassifier** classifier;
} CvCascadeHaarClassifier;


/* internal tree cascade classifier node */
typedef struct CvTreeCascadeNode
{
    CvStageHaarClassifier* stage;

    struct CvTreeCascadeNode* next;
    struct CvTreeCascadeNode* child;
    struct CvTreeCascadeNode* parent;

    struct CvTreeCascadeNode* next_same_level;
    struct CvTreeCascadeNode* child_eval;
    int idx;
    int leaf;
} CvTreeCascadeNode;

/* internal tree cascade classifier */
typedef struct CvTreeCascadeClassifier
{
    CV_INT_HAAR_CLASSIFIER_FIELDS()

    CvTreeCascadeNode* root;      /* root of the tree */
    CvTreeCascadeNode* root_eval; /* root node for the filtering */

    int next_idx;
} CvTreeCascadeClassifier;

其中CV_INT_HAAR_CLASSIFIER_FIELDS()的内容为:

#define CV_INT_HAAR_CLASSIFIER_FIELDS()                                     float (*eval)( CvIntHaarClassifier*, sum_type*, sum_type*, float );     void  (*save)( CvIntHaarClassifier*, FILE* file );                      void  (*release)( CvIntHaarClassifier** );


版权声明:本文为博主原创文章,未经博主允许不得转载。

有关cascade的结构体

标签:cvcascadehaarclassif   cvtreecascadenode   cvtreecascadeclassif   cv_int_haar_classifi   

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

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