Match descriptors with cluster centers [closed]
Hi I am new to opencv, right now. i want to do the images comparison. For example, i have 4 images as my database. Firstly, i get all the descriptors and cluster them into several groups. After that, i have a query image which is one image, i also get the descriptors. Right now, i want to match the query image descriptors with the existing cluster centers and group them. But i can not find any functions for doing that. Thanks for helping
I don't know if you can match your descriptor without writting your own code but if you use descriptor defined in opencv ( ORB, SIFT....) you can found matcher algorithm and a sample in samples\cpp\tutorial_code\features2D\AKAZE_match.cpp Blob features include center so may be you can use blob data for your descriptor.
@Kevvin: What you are doing is called bag of (visual) words. OpenCV provides you interfaces for that, see http://docs.opencv.org/modules/featur...