@@ -83,7 +83,9 @@ class TrackerMedianFlowImpl : public TrackerMedianFlow{
83
83
Rect2d vote (const std::vector<Point2f>& oldPoints,const std::vector<Point2f>& newPoints,const Rect2d& oldRect,Point2f& mD );
84
84
float dist (Point2f p1,Point2f p2);
85
85
std::string type2str (int type);
86
+ #if 0
86
87
void computeStatistics(std::vector<float>& data,int size=-1);
88
+ #endif
87
89
void check_FB (const std::vector<Mat>& oldImagePyr,const std::vector<Mat>& newImagePyr,
88
90
const std::vector<Point2f>& oldPoints,const std::vector<Point2f>& newPoints,std::vector<bool >& status);
89
91
void check_NCC (const Mat& oldImage,const Mat& newImage,
@@ -337,6 +339,7 @@ Rect2d TrackerMedianFlowImpl::vote(const std::vector<Point2f>& oldPoints,const s
337
339
return newRect;
338
340
}
339
341
342
+ #if 0
340
343
void TrackerMedianFlowImpl::computeStatistics(std::vector<float>& data,int size){
341
344
int binnum=10;
342
345
if(size==-1){
@@ -351,6 +354,7 @@ void TrackerMedianFlowImpl::computeStatistics(std::vector<float>& data,int size)
351
354
dprintf(("[%4f,%4f] -- %4d\n",mini+(maxi-mini)/binnum*i,mini+(maxi-mini)/binnum*(i+1),bins[i]));
352
355
}
353
356
}
357
+ #endif
354
358
355
359
void TrackerMedianFlowImpl::check_FB (const std::vector<Mat>& oldImagePyr, const std::vector<Mat>& newImagePyr,
356
360
const std::vector<Point2f>& oldPoints, const std::vector<Point2f>& newPoints, std::vector<bool >& status){
0 commit comments