How can I find out the number of results in a FLANN radiusSearch

asked 2012-08-23 14:57:55 -0600

enfo gravatar image


I need a FLANN Index with a single KD Tree, which seems only possible by using the cvflann::Index instead of the cv::flann::Index Class.

However, there the radiusSearch method does not support std::vector parameters for the indices and distance parameter but instead takes cvflann::Matrix parameters. How can I find out how many matching results there actually were for a query? cvflann::Matrix seems to simply fill preallocated memory with the found results, but does not actually tell you how many results there were.

edit retag flag offensive close merge delete