Ask Your Question

Revision history [back]

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

Hi,

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.