Commit 5ece0d8da5c63416c0b024aa3d80cbeafb7d13d3

Authored by Scott Klum
1 parent 39f5a23e

Minor fixes

openbr/plugins/classification/boostedforest.cpp
@@ -147,7 +147,6 @@ class BoostedForestClassifier : public Classifier @@ -147,7 +147,6 @@ class BoostedForestClassifier : public Classifier
147 node = val <= node->threshold ? node->left : node->right; 147 node = val <= node->threshold ? node->left : node->right;
148 } 148 }
149 } 149 }
150 - qDebug("value: %f", node->value);  
151 sum += node->value; 150 sum += node->value;
152 } 151 }
153 152
openbr/plugins/imgproc/slidingwindow.cpp
@@ -35,7 +35,7 @@ namespace br @@ -35,7 +35,7 @@ namespace br
35 * \author Jordan Cheney \cite JordanCheney 35 * \author Jordan Cheney \cite JordanCheney
36 */ 36 */
37 37
38 -class SlidingWindowTransform : public Transform 38 +class SlidingWindowTransform : public MetaTransform
39 { 39 {
40 Q_OBJECT 40 Q_OBJECT
41 41
@@ -118,14 +118,13 @@ class SlidingWindowTransform : public Transform @@ -118,14 +118,13 @@ class SlidingWindowTransform : public Transform
118 Mat window = scaledImage(Rect(Point(x, y), classifier->windowSize())).clone(); 118 Mat window = scaledImage(Rect(Point(x, y), classifier->windowSize())).clone();
119 119
120 float result = classifier->classify(window); 120 float result = classifier->classify(window);
121 - qDebug("result: %f", result);  
122 if (result > 0) { 121 if (result > 0) {
123 rects.push_back(Rect(cvRound(x*factor), cvRound(y*factor), windowSize.width, windowSize.height)); 122 rects.push_back(Rect(cvRound(x*factor), cvRound(y*factor), windowSize.width, windowSize.height));
124 rejectLevels.push_back(1); 123 rejectLevels.push_back(1);
125 levelWeights.push_back(result); 124 levelWeights.push_back(result);
126 } 125 }
127 if (result == 0) 126 if (result == 0)
128 - x = yStep; 127 + x += yStep;
129 } 128 }
130 } 129 }
131 } 130 }