From 69731d5a965b6b12bb8a7d26bad171492be2816b Mon Sep 17 00:00:00 2001 From: Austin Van Blanton Date: Mon, 26 Aug 2013 13:52:53 -0400 Subject: [PATCH] Skip keypoint description if there are no keypoints --- openbr/plugins/keypoint.cpp | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/openbr/plugins/keypoint.cpp b/openbr/plugins/keypoint.cpp index ca9710b..60d5f29 100644 --- a/openbr/plugins/keypoint.cpp +++ b/openbr/plugins/keypoint.cpp @@ -97,6 +97,7 @@ class KeyPointDescriptorTransform : public UntrainableTransform else foreach (const QPointF &landmark, src.file.points()) keyPoints.push_back(KeyPoint(landmark.x(), landmark.y(), size)); + if (keyPoints.empty()) return; descriptorExtractor->compute(src, keyPoints, dst); } }; -- libgit2 0.21.4