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__);
2 | No.2 Revision |
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__);