C++/OpenCV - How to index pictures for image retrieval? (and find the best image) -


i use bow flann in order index pictures inside database.(for cbir project)

what did :

  1. loop on ma database in order compute descriptors of each pictures.
  2. clustering descriptors using k-mean
  3. extraction of bowdescriptors (visual words) in order have big histogram features
  4. use flann index compute index in each pictures

code:

// create flann lsh index cv::flann::index flannindex(this->descdescriptorbow, cv::flann::lshindexparams(12, 20, 2), cvflann::flann_dist_hamming);  cv::mat results, dists;  int k=2; // find 2 nearest neighbors  // search (nearest neighbor) flannindex.knnsearch(responsehist, results, dists, k, cv::flann::searchparams() ); 

descriptorbow contains bowfeatures of database. responsehist constains bowfeature of picture want eval.

now, have in order see best matching picture ?

can me ?


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -