descrs.release();
try {
detector->detectAndCompute(mat, noArray(), keypts, descrs);
- } catch(std::exception e) { printf(_("detector exception: %s\n"), e.what()); }
+ } catch(std::exception &e) { printf(_("detector exception: %s\n"), e.what()); }
}
void FindObjMain::match()
pairs.clear();
try {
matcher->knnMatch(obj_descrs, scn_descrs, pairs, 2);
- } catch(std::exception e) { printf(_("match execption: %s\n"), e.what()); }
+ } catch(std::exception &e) { printf(_("match execption: %s\n"), e.what()); }
}
Ptr<DescriptorMatcher> FindObjMain::flann_kdtree_matcher()
}
#endif
-
void FindObjMain::process_match()
{
if( config.algorithm == NO_ALGORITHM ) return;