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?
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,437 times
Last updated: Apr 26 '13