@@ -55,8 +55,7 @@ namespace cv
55
55
measurements.assign (meas.begin () + beg, meas.begin () + end);
56
56
offset.assign (mpc, Point2i (0 , 0 ));
57
57
}
58
-
59
- // Calculate measure locations from 15x15 grid on minSize patches
58
+ // Calculate measure locations from 15x15 grid on minSize patches
60
59
void TLDEnsembleClassifier::stepPrefSuff (std::vector<Vec4b>& arr, int pos, int len, int gridSize)
61
60
{
62
61
#if 0
@@ -92,7 +91,7 @@ namespace cv
92
91
}
93
92
#endif
94
93
}
95
-
94
+
96
95
// Calculate offsets for classifier
97
96
void TLDEnsembleClassifier::prepareClassifier (int rowstep)
98
97
{
@@ -106,7 +105,7 @@ namespace cv
106
105
}
107
106
}
108
107
}
109
-
108
+
110
109
// Integrate patch into the Ensemble Classifier model
111
110
void TLDEnsembleClassifier::integrate (const Mat_<uchar>& patch, bool isPositive)
112
111
{
@@ -137,7 +136,7 @@ namespace cv
137
136
return posNum / (posNum + negNum);
138
137
}
139
138
140
- // Calculate the 13-bit fern index
139
+ // Calculate the 13-bit fern index
141
140
int TLDEnsembleClassifier::codeFast (const uchar* data) const
142
141
{
143
142
int position = 0 ;
@@ -188,7 +187,7 @@ namespace cv
188
187
stepPrefSuff (measurements, 2 , size.height , gridSize);
189
188
stepPrefSuff (measurements, 3 , size.height , gridSize);
190
189
191
- // Compile fern classifiers
190
+ // Compile fern classifiers
192
191
for (int i = 0 , howMany = (int )measurements.size () / measurePerClassifier; i < howMany; i++)
193
192
classifiers.push_back (TLDEnsembleClassifier (measurements, i * measurePerClassifier, (i + 1 ) * measurePerClassifier));
194
193
0 commit comments