Skip to content

Commit 27ced2c

Browse files
committed
tracing: disable unused code
1 parent fe7842e commit 27ced2c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/tracking/src/trackerMedianFlow.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ class TrackerMedianFlowImpl : public TrackerMedianFlow{
8383
Rect2d vote(const std::vector<Point2f>& oldPoints,const std::vector<Point2f>& newPoints,const Rect2d& oldRect,Point2f& mD);
8484
float dist(Point2f p1,Point2f p2);
8585
std::string type2str(int type);
86+
#if 0
8687
void computeStatistics(std::vector<float>& data,int size=-1);
88+
#endif
8789
void check_FB(const std::vector<Mat>& oldImagePyr,const std::vector<Mat>& newImagePyr,
8890
const std::vector<Point2f>& oldPoints,const std::vector<Point2f>& newPoints,std::vector<bool>& status);
8991
void check_NCC(const Mat& oldImage,const Mat& newImage,
@@ -337,6 +339,7 @@ Rect2d TrackerMedianFlowImpl::vote(const std::vector<Point2f>& oldPoints,const s
337339
return newRect;
338340
}
339341

342+
#if 0
340343
void TrackerMedianFlowImpl::computeStatistics(std::vector<float>& data,int size){
341344
int binnum=10;
342345
if(size==-1){
@@ -351,6 +354,7 @@ void TrackerMedianFlowImpl::computeStatistics(std::vector<float>& data,int size)
351354
dprintf(("[%4f,%4f] -- %4d\n",mini+(maxi-mini)/binnum*i,mini+(maxi-mini)/binnum*(i+1),bins[i]));
352355
}
353356
}
357+
#endif
354358

355359
void TrackerMedianFlowImpl::check_FB(const std::vector<Mat>& oldImagePyr, const std::vector<Mat>& newImagePyr,
356360
const std::vector<Point2f>& oldPoints, const std::vector<Point2f>& newPoints, std::vector<bool>& status){

0 commit comments

Comments
 (0)