VLFeat K-means: how to use in c++ [closed]

asked 2017-01-25 10:00:08 -0500

RossFe92 gravatar image

updated 2017-02-15 12:22:25 -0500

I've read of VLFeat, which has an implementation of the algorithm of k-mean, which is faster than that of OpenCV, but do not understand how to readjust this code (in c++ and OpenCV) to use VLFeat.

Mat rawFeaturesData; // mat with images dataset features  
Mat labels, centers;
int bin_size = 1000;
kmeans(rawFeatureData, bin_size, labels, TermCriteria( TermCriteria::COUNT+TermCriteria::EPS, 100, 1.0),
       3, KMEANS_PP_CENTERS, centers);

Could someone tell me how to do? Thank you.

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by LBerger
close date 2017-02-15 15:10:20.759197



a bit off-topic, no ?

berak gravatar imageberak ( 2017-01-25 10:25:38 -0500 )edit