title: How to store Hierarchical K-Means tree for a large number of images, using Opencv?
body: <p>I am trying to make a program that will find similar images from a dataset of images. The steps are </p>
  
  <ul>
  <li>extract SURF descriptors for all images</li>
  <li>store the descriptors</li>
  <li>Apply knn on the stored descriptors</li>
  <li>Match the stored descriptors to the query image descriptor using kNN</li>
  </ul>
  
  <p>Now each images SURF descriptor will be stored as Hierarchical k-means tree, now do I store each tree as a separate file or is it possible to build some sort of single tree with all the images descriptors and updated as images are added to dataset. </p>
  
  <p><a href="http://www.ijest.info/docs/IJEST10-02-03-13.pdf" rel="nofollow">This is the paper I am basing the program on.</a></p>