Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you probably should check if the descriptors are valid before matching, i.e:

if ( descriptors_1.empty() )
   cvError(0,"MatchFinder","1st descriptor empty",__FILE__,__LINE__);    
if ( descriptors_2.empty() )
   cvError(0,"MatchFinder","2nd descriptor empty",__FILE__,__LINE__);

there might be situations in real life, where it can't find features in both images, so you probably should check if the descriptors are valid before matching, i.e:

if ( descriptors_1.empty() )
   cvError(0,"MatchFinder","1st descriptor empty",__FILE__,__LINE__);    
if ( descriptors_2.empty() )
   cvError(0,"MatchFinder","2nd descriptor empty",__FILE__,__LINE__);