diff --git a/openbr/plugins/classification/boostedforest.cpp b/openbr/plugins/classification/boostedforest.cpp index 5dc4dd3..2881e57 100644 --- a/openbr/plugins/classification/boostedforest.cpp +++ b/openbr/plugins/classification/boostedforest.cpp @@ -147,7 +147,6 @@ class BoostedForestClassifier : public Classifier node = val <= node->threshold ? node->left : node->right; } } - qDebug("value: %f", node->value); sum += node->value; } diff --git a/openbr/plugins/imgproc/slidingwindow.cpp b/openbr/plugins/imgproc/slidingwindow.cpp index ab2f96e..4d6edee 100644 --- a/openbr/plugins/imgproc/slidingwindow.cpp +++ b/openbr/plugins/imgproc/slidingwindow.cpp @@ -35,7 +35,7 @@ namespace br * \author Jordan Cheney \cite JordanCheney */ -class SlidingWindowTransform : public Transform +class SlidingWindowTransform : public MetaTransform { Q_OBJECT @@ -118,14 +118,13 @@ class SlidingWindowTransform : public Transform Mat window = scaledImage(Rect(Point(x, y), classifier->windowSize())).clone(); float result = classifier->classify(window); - qDebug("result: %f", result); if (result > 0) { rects.push_back(Rect(cvRound(x*factor), cvRound(y*factor), windowSize.width, windowSize.height)); rejectLevels.push_back(1); levelWeights.push_back(result); } if (result == 0) - x = yStep; + x += yStep; } } }