A generic implementation of the vocabulary tree image retrieval approach of Nister and Stewenius. Can be used with any feature and distance metric.
vocabulary_tree is ...