@@ -189,9 +189,6 @@ class TrackerInvoker : public cv::ParallelLoopBody
189189 int buffIdx = 0 ;
190190 cv::Mat GMc0, GMc1, GMc2, GMc3;
191191 cv::Vec2f Mc0, Mc1, Mc2, Mc3;
192- int noIteration = 0 ;
193- int noReusedIteration = 0 ;
194- int noSolvedIteration = 0 ;
195192 for ( j = 0 ; j < criteria.maxCount ; j++ )
196193 {
197194 cv::Point2f delta (0 ,0 );
@@ -536,7 +533,6 @@ class TrackerInvoker : public cv::ParallelLoopBody
536533 {
537534 nextPts[ptidx] = backUpNextPt;
538535 }
539- noIteration++;
540536 break ;
541537 }
542538
@@ -612,13 +608,10 @@ class TrackerInvoker : public cv::ParallelLoopBody
612608 delta.y = inextPt.y + b - nextPt.y ;
613609 } // isIn1 != isIn2
614610 }
615- if ( hasSolved == false )
616- noIteration++;
617611 }
618612 else
619613 {
620614 hasSolved = false ;
621- noReusedIteration++;
622615 }
623616 if ( hasSolved == false )
624617 {
@@ -635,7 +628,6 @@ class TrackerInvoker : public cv::ParallelLoopBody
635628 {
636629 nextPt += delta;
637630 nextPts[ptidx] = nextPt - halfWin;
638- noSolvedIteration++;
639631 break ;
640632 }
641633
@@ -832,9 +824,6 @@ class TrackerInvoker : public cv::ParallelLoopBody
832824 int buffIdx = 0 ;
833825 cv::Mat GMc0, GMc1, GMc2, GMc3;
834826 cv::Vec4f Mc0, Mc1, Mc2, Mc3;
835- int noIteration = 0 ;
836- int noReusedIteration = 0 ;
837- int noSolvedIteration = 0 ;
838827 for ( j = 0 ; j < criteria.maxCount ; j++ )
839828 {
840829 cv::Point2f delta (0 ,0 );
@@ -859,7 +848,6 @@ class TrackerInvoker : public cv::ParallelLoopBody
859848 nextPts[ptidx] = backUpNextPt;
860849 gainVecs[ptidx] = backUpGain;
861850 }
862- noIteration++;
863851 break ;
864852 }
865853
@@ -1287,7 +1275,6 @@ class TrackerInvoker : public cv::ParallelLoopBody
12871275 nextPts[ptidx] = backUpNextPt;
12881276 gainVecs[ptidx] = backUpGain;
12891277 }
1290- noIteration++;
12911278 break ;
12921279 }
12931280
@@ -1399,13 +1386,10 @@ class TrackerInvoker : public cv::ParallelLoopBody
13991386
14001387 } // isIn1 != isIn2
14011388 }
1402- if ( hasSolved == false )
1403- noIteration++;
14041389 }
14051390 else
14061391 {
14071392 hasSolved = false ;
1408- noReusedIteration++;
14091393 }
14101394 if ( hasSolved == false )
14111395 {
@@ -1430,7 +1414,6 @@ class TrackerInvoker : public cv::ParallelLoopBody
14301414 nextPt += delta;
14311415 nextPts[ptidx] = nextPt - halfWin;
14321416 gainVecs[ptidx]= gainVec + deltaGain;
1433- noSolvedIteration++;
14341417 break ;
14351418 }
14361419
@@ -1998,9 +1981,6 @@ namespace radial {
19981981 int j;
19991982 cv::Mat GMc0, GMc1, GMc2, GMc3;
20001983 cv::Vec4f Mc0, Mc1, Mc2, Mc3;
2001- int noIteration = 0 ;
2002- int noReusedIteration = 0 ;
2003- int noSolvedIteration = 0 ;
20041984 for (j = 0 ; j < criteria.maxCount ; j++)
20051985 {
20061986 cv::Point2f delta (0 , 0 );
@@ -2025,7 +2005,6 @@ namespace radial {
20252005 nextPts[ptidx] = backUpNextPt;
20262006 gainVecs[ptidx] = backUpGain;
20272007 }
2028- noIteration++;
20292008 break ;
20302009 }
20312010
@@ -2291,7 +2270,6 @@ namespace radial {
22912270 nextPts[ptidx] = backUpNextPt;
22922271 gainVecs[ptidx] = backUpGain;
22932272 }
2294- noIteration++;
22952273 break ;
22962274 }
22972275
@@ -2403,13 +2381,10 @@ namespace radial {
24032381
24042382 } // isIn1 != isIn2
24052383 }
2406- if (hasSolved == false )
2407- noIteration++;
24082384 }
24092385 else
24102386 {
24112387 hasSolved = false ;
2412- noReusedIteration++;
24132388 }
24142389 if (hasSolved == false )
24152390 {
@@ -2434,7 +2409,6 @@ namespace radial {
24342409 nextPt += delta;
24352410 nextPts[ptidx] = nextPt - halfWin;
24362411 gainVecs[ptidx] = gainVec + deltaGain;
2437- noSolvedIteration++;
24382412 break ;
24392413 }
24402414
0 commit comments