From fa6400843e14e49b663d5102668603e53670f21c Mon Sep 17 00:00:00 2001 From: Maria Dimashova Date: Fri, 29 Apr 2011 16:42:38 +0000 Subject: [PATCH] fixed #982 --- modules/features2d/src/matchers.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/features2d/src/matchers.cpp b/modules/features2d/src/matchers.cpp index b4adb26d91..6c1e9fb0ad 100755 --- a/modules/features2d/src/matchers.cpp +++ b/modules/features2d/src/matchers.cpp @@ -658,7 +658,11 @@ void GenericDescriptorMatcher::KeyPointCollection::add( const vector& _imag void GenericDescriptorMatcher::KeyPointCollection::clear() { + pointCount = 0; + + images.clear(); keypoints.clear(); + startIndices.clear(); } size_t GenericDescriptorMatcher::KeyPointCollection::keypointCount() const