Commit 5ece0d8da5c63416c0b024aa3d80cbeafb7d13d3
1 parent
39f5a23e
Minor fixes
Showing
2 changed files
with
2 additions
and
4 deletions
openbr/plugins/classification/boostedforest.cpp
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 | } | ... | ... |