Clustering binary descriptors
Is there a way to cluster binary descriptors in opencv? Kmeans and knn accepts float data. Can I convert binary descriptors to float while keeping the information consistent?
Is there a way to cluster binary descriptors in opencv? Kmeans and knn accepts float data. Can I convert binary descriptors to float while keeping the information consistent?
Which clustering method did you mean? Your question is a little bit vague.
flann
can handle binary features well, but the centers which you'll get will be in float (the same would probably happen if you modify the OpenCV-kmeans).
Or do you actually just need the nearest neighbor for binary features? Then you can use the BruteForceMatcher
-class in conjunction with Hammin
g-distance or flann
with Hamming
or LSH
.
Afaik, sth like k-medoids (where the output-centers are discrete features) is currently not implemented in OpenCV, neither is agglomerative hierarchical clustering. I am also waiting that this will be part of OpenCV sometime...
Asked: 2013-04-26 04:44:33 -0600
Seen: 1,414 times
Last updated: Apr 26 '13
MNIST and Local Binary Patterns
Change distance function for kmeans clustering
hierarchical Clustering VS Kmeans Clustering
How can you use K-Means clustering to posterize an image using c++?
KMeans Clustering for vector<Point2f> Data Structure
Is there any way to initialize the centroids in k-means?
How to apply K means in a mask of an image instead the whole one
How to get good matches from the ORB feature detection algorithm?