Ask Your Question

Revision history [back]

use KMeansIndexParams clustering descriptors and question

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=cv::flann::Index(all_descriptors,cv::flann::KMeansIndexParams(16,11,cvflann::FLANN_CENTERS_KMEANSPP,0.2);

image description)

use KMeansIndexParams clustering descriptors and question

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=cv::flann::Index(all_descriptors,cv::flann::KMeansIndexParams(16,11,cvflann::FLANN_CENTERS_KMEANSPP,0.2);line108:tree=new cv::flann::Index(all_descriptors,cv::flann::KMeansIndexParams(32,11,cvflann::FLANN_CENTERS_KMEANSPP,0.2);

image description)image description

click to hide/show revision 3
None

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

berak gravatar image

use KMeansIndexParams clustering descriptors and question

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

cv::flann::Index(all_descriptors,cv::flann::KMeansIndexParams(32,11,cvflann::FLANN_CENTERS_KMEANSPP,0.2);

image description