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