From 9830541889020ef17b5342624222a435737004c9 Mon Sep 17 00:00:00 2001 From: Austin Van Blanton Date: Wed, 31 Jul 2013 10:54:13 -0400 Subject: [PATCH] HoG should add each descriptor to dst --- openbr/plugins/keypoint.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openbr/plugins/keypoint.cpp b/openbr/plugins/keypoint.cpp index 45053ba..18f234c 100644 --- a/openbr/plugins/keypoint.cpp +++ b/openbr/plugins/keypoint.cpp @@ -194,9 +194,11 @@ class HoGDescriptorTransform : public UntrainableTransform std::vector locations; Size winStride = Size(0,0); Size padding = Size(0,0); - hog.compute(src, descriptorVals, winStride, padding, locations); - Mat HoGFeats = Mat(descriptorVals, true); - dst += HoGFeats; + foreach (const Mat &rect, src) { + hog.compute(rect, descriptorVals, winStride, padding, locations); + Mat HoGFeats(descriptorVals, true); + dst += HoGFeats; + } } }; -- libgit2 0.21.4