error C2664: 'cv::flann::Index::radiusSearch' : cannot convert parameter 5 from 'cv::flann::SearchParams' to 'int'

asked 2013-01-18 02:50:58 -0500

ytchen gravatar image

updated 2013-01-18 02:52:18 -0500

Hello all,

I got this message when I attempt to use MATLAB to link to OpenCV 2.4.3 through the mex function. The part of the code that generate this error message is as follows:

cv::flann::Index flann_index( *test, cv::flann::KDTreeIndexParams(4));

flann_index.radiusSearch( query->row(i), id, dis, 100.0, cv::flann::SearchParams(32));

I skip some lines of code and just list the key ones. Could anyone help me to solve this problem?

Thanks a lot!

edit retag flag offensive close merge delete