Commit 768f1515794253bd028f00afc0c4b76ad6bb91fb
1 parent
f998d276
Fix some things for HoG
Showing
1 changed file
with
2 additions
and
1 deletions
openbr/plugins/keypoint.cpp
| ... | ... | @@ -15,6 +15,7 @@ |
| 15 | 15 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
| 16 | 16 | |
| 17 | 17 | #include <opencv2/features2d/features2d.hpp> |
| 18 | +#include <opencv2/objdetect/objdetect.hpp> | |
| 18 | 19 | #include <opencv2/nonfree/nonfree.hpp> |
| 19 | 20 | #include "openbr_internal.h" |
| 20 | 21 | #include "openbr/core/opencvutils.h" |
| ... | ... | @@ -194,7 +195,7 @@ class HoGDescriptorTransform : public UntrainableTransform |
| 194 | 195 | Size winStride = Size(0,0); |
| 195 | 196 | Size padding = Size(0,0); |
| 196 | 197 | hog.compute(src, descriptorVals, winStride, padding, locations); |
| 197 | - Mat HoGFeats = Mat<float>(descriptorVals, true); | |
| 198 | + Mat HoGFeats = Mat(descriptorVals, true); | |
| 198 | 199 | dst += HoGFeats; |
| 199 | 200 | } |
| 200 | 201 | }; | ... | ... |