matcher func of FlannBasedMatcher would raise exception or be a bug [closed]
My developement environmen is vc.net 2012 and opencv 2411.In following code if value of descriptors_2.rows equal 0 It will raise exception.I wonder whether it was a bug?
FlannBasedMatcher matcher;
std::vector< DMatch > matches;
matcher.match( descriptors_1, descriptors_2, matches );
.rows
being0
means an empty image, what do you expect the matcher to do? Yes; raise an exception. So no, not a bug.