Commit 6b9a117ba3f11694f49923b2d904b31afdfd3bce
1 parent
cc9e43b7
Minor slidingwindow polish
Showing
1 changed file
with
1 additions
and
5 deletions
openbr/plugins/imgproc/slidingwindow.cpp
| @@ -156,11 +156,7 @@ class SlidingWindowTransform : public MetaTransform | @@ -156,11 +156,7 @@ class SlidingWindowTransform : public MetaTransform | ||
| 156 | if (result == 1) { | 156 | if (result == 1) { |
| 157 | rects.append(Rect(cvRound(x/widthScale), cvRound(y/heightScale), detectionSize.width, detectionSize.height)); | 157 | rects.append(Rect(cvRound(x/widthScale), cvRound(y/heightScale), detectionSize.width, detectionSize.height)); |
| 158 | confidences.append(confidence); | 158 | confidences.append(confidence); |
| 159 | - } | ||
| 160 | - | ||
| 161 | - // TODO: Add non ROC mode | ||
| 162 | - | ||
| 163 | - if (result == 0) | 159 | + } else |
| 164 | x += step; | 160 | x += step; |
| 165 | } | 161 | } |
| 166 | } | 162 | } |