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