Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV K-Means "translation" in VLFeat

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 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.

OpenCV K-Means "translation" VLFeat K-means: how to use in VLFeatc++

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 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.

VLFeat K-means: how to use in c++

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.