aihot  2017-04-27 23:51:15  OpenCV |   查看评论   
    vector<float> sigmaPositive;  
  •     vector<float> muNegative;  
  •     vector<float> sigmaNegative;  
  •     float learnRate;   //学习速率,控制分类器参数更新的步长  
  •     vector<Rect> detectBox;  //需要检测的box  
  •     Mat detectFeatureValue;  
  •     RNG rng;  //随机数  
  •   
  • private:  
  •     void HaarFeature(Rect& _objectBox, int _numFeature);  
  •     void sampleRect(Mat& _image, Rect& _objectBox, float _rInner, float _rOuter, int _maxSampleNum, vector<Rect>& _sampleBox);  
  •     void sampleRect(Mat& _image, Rect& _objectBox, float _srw, vector<Rect>& _sampleBox);  
  •     void getFeatureValue(Mat& _imageIntegral, vector<Rect>& _sampleBox, Mat& _sampleFeatureValue);  
  •     void classifierUpdate(Mat& _sampleFeatureValue, vector<float>& _mu, vector<float>& _sigma, float _learnRate);  
  •     void radioClassifier(vector<float>& _muPos, vector<float>& _sigmaPos, vector<float>& _muNeg, vector<float>& _sigmaNeg,  
  •                         Mat& _sampleFeatureValue, float& _radioMax, int& _radioMaxIndex);  
  • public:  
  •     void processFrame(Mat& _frame, Rect& _objectBox);  
  •     void init(Mat& _frame, Rect& _objectBox);  
  • };  
  •  

    CompressiveTracker.cpp

    1. #include "CompressiveTracker.h"  
    2. #include <math.h>  
    3. #include <iostream>  
    4. using namespace cv;  
    5. using namespace std;  
    6.   
    7. //------------------------------------------------  
    8. //构造函数,初始化各参数  
    9. CompressiveTracker::CompressiveTracker(void)  
     

    除特别注明外,本站所有文章均为 赢咖4注册 原创,转载请注明出处来自压缩跟踪Compressive Tracking源码理解

    留言与评论(共有 0 条评论)
       
    验证码:
    [lianlun]1[/lianlun]