提交 6935e95c 编写于 作者: A Andrey Kamaev

Fixed crash in BruteForceMatcher::clone

上级 43628ab8
......@@ -2367,6 +2367,7 @@ Ptr<DescriptorMatcher> BruteForceMatcher<Distance>::clone( bool emptyTrainData )
BruteForceMatcher* matcher = new BruteForceMatcher(distance);
if( !emptyTrainData )
{
matcher->trainDescCollection.resize(trainDescCollection.size());
std::transform( trainDescCollection.begin(), trainDescCollection.end(),
matcher->trainDescCollection.begin(), clone_op );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册