use KMeansIndexParams clustering descriptors and question

asked 2020-03-11 08:25:57 -0600

updated 2020-03-11 09:41:47 -0600

berak gravatar image

Configuration: Opencv2.4.10+Ubuntu14.04+QT5.8

I want to use cv::flann::KmeansIndexParams to cluster the descriptors.The storage of all descriptors is all_descriptors,as follow:

all_descriptors=cv::Mat(total_descriptors_count,descriptor_length,CV_32FC1);

When I used KMeansIndexParams clustering it,the code just stopped there,I think there must be something wrong,but I can't find the solution.

line108:tree=new cv::flann::Index(all_descriptors,cv::flann::KMeansIndexParams(32,11,cvflann::FLANN_CENTERS_KMEANSPP,0.2);

image description

edit retag flag offensive close merge delete

Comments

Opencv2.4.10 obsolete

LBerger gravatar imageLBerger ( 2020-03-11 08:33:59 -0600 )edit

I'll try to install a newer version Opencv. Thanks!

YYmicang gravatar imageYYmicang ( 2020-03-13 00:39:38 -0600 )edit