Commit e7ef84b2 authored by Maria Dimashova's avatar Maria Dimashova

fixed #932

parent fa640084
...@@ -914,7 +914,8 @@ void OneWayDescriptorMatcher::clear() ...@@ -914,7 +914,8 @@ void OneWayDescriptorMatcher::clear()
GenericDescriptorMatcher::clear(); GenericDescriptorMatcher::clear();
prevTrainCount = 0; prevTrainCount = 0;
base->clear(); if( !base.empty() )
base->clear();
} }
void OneWayDescriptorMatcher::train() void OneWayDescriptorMatcher::train()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment