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

cvUserdata

时间:2015-06-26 09:26:54      阅读:114      评论:0      收藏:0      [点我收藏+]

标签:cvuserdata   opencv源码分析   _cvhaartraining.h   



/* Passed to callback functions */
typedef struct CvUserdata   //首先定义结构体
{
    CvHaarTrainingData* trainingData;
    CvIntHaarFeatures* haarFeatures;
} CvUserdata;

CV_INLINE
CvUserdata cvUserdata( CvHaarTrainingData* trainingData,     //定义函数
                       CvIntHaarFeatures* haarFeatures );

CV_INLINE
CvUserdata cvUserdata( CvHaarTrainingData* trainingData,
                       CvIntHaarFeatures* haarFeatures )
{
    CvUserdata userdata;

    userdata.trainingData = trainingData;                 //进行参数的传递
    userdata.haarFeatures = haarFeatures;

    return userdata;
}

cvUserdata

标签:cvuserdata   opencv源码分析   _cvhaartraining.h   

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

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