/* 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** );
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-10-12 02:28:26