首页 > 代码库 > CV_HAAR_FEATURE_DESC_MAX和CV_HAAR_FEATURE_MAX
CV_HAAR_FEATURE_DESC_MAX和CV_HAAR_FEATURE_MAX
#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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。