matcher func of FlannBasedMatcher would raise exception or be a bug [closed]

asked 2015-04-02 10:38:24 -0600

jean gravatar image

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 );

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by jean
close date 2015-04-12 05:28:06.461443

Comments

.rows being 0 means an empty image, what do you expect the matcher to do? Yes; raise an exception. So no, not a bug.

boaz001 gravatar imageboaz001 ( 2015-04-03 03:27:14 -0600 )edit