@@ -55,8 +55,7 @@ namespace cv
5555 measurements.assign (meas.begin () + beg, meas.begin () + end);
5656 offset.assign (mpc, Point2i (0 , 0 ));
5757 }
58-
59- // Calculate measure locations from 15x15 grid on minSize patches
58+ // Calculate measure locations from 15x15 grid on minSize patches
6059 void TLDEnsembleClassifier::stepPrefSuff (std::vector<Vec4b>& arr, int pos, int len, int gridSize)
6160 {
6261#if 0
@@ -92,7 +91,7 @@ namespace cv
9291 }
9392#endif
9493 }
95-
94+
9695 // Calculate offsets for classifier
9796 void TLDEnsembleClassifier::prepareClassifier (int rowstep)
9897 {
@@ -106,7 +105,7 @@ namespace cv
106105 }
107106 }
108107 }
109-
108+
110109 // Integrate patch into the Ensemble Classifier model
111110 void TLDEnsembleClassifier::integrate (const Mat_<uchar>& patch, bool isPositive)
112111 {
@@ -137,7 +136,7 @@ namespace cv
137136 return posNum / (posNum + negNum);
138137 }
139138
140- // Calculate the 13-bit fern index
139+ // Calculate the 13-bit fern index
141140 int TLDEnsembleClassifier::codeFast (const uchar* data) const
142141 {
143142 int position = 0 ;
@@ -188,7 +187,7 @@ namespace cv
188187 stepPrefSuff (measurements, 2 , size.height , gridSize);
189188 stepPrefSuff (measurements, 3 , size.height , gridSize);
190189
191- // Compile fern classifiers
190+ // Compile fern classifiers
192191 for (int i = 0 , howMany = (int )measurements.size () / measurePerClassifier; i < howMany; i++)
193192 classifiers.push_back (TLDEnsembleClassifier (measurements, i * measurePerClassifier, (i + 1 ) * measurePerClassifier));
194193
0 commit comments