Skip to content

ilovehotcakes/VLAD-in-OpenCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VLAD in OpenCV

Introduction

This is an OpenCV implementation of VLAD in C++ based on Hervé Jégou, Matthijs Douze, Cordelia Schmid, and Patrick Pérez’s work (2010). VLAD is a CBIR system that retreives image from a large database while maintaining efficiency, accuracy, and low memory usage. The paper utilizes techniques like Bag-of-words, Fisher Kernel, PCA, kNN search. It is a very good paper and I would recommend anyone to read it.

You can either run the program using your dataset to generate your own codebook, or you can use the provided, pre-trained codebook and dataset to get you started.

Reference

Jegou, H., Perronnin, F., Douze, M., Sanchez, J., Perez, P., & Schmid, C. (2012). Aggregating Local Image Descriptors into Compact Codes. IEEE Transactions on Pattern Analysis and Machine Intelligence, 34(9), 1704-1716.

Requirements

Files

  • vlad.cpp - Using generated codebook to compute VLAD descriptor

  • vlad_trainer.cpp - Used generate codebook

  • main.cpp - Driver

  • property_sheets folder - Contains the property sheets when working in Visual Studios for OpenCV properties

  • codebooks folder - Contains the codebook I generated

  • results folder - Contains the output images from my tests

Usage

  • Use the build script to build the program. Depending on the version of your OpenCV and the config, you might need to point to the correct OpenCV file in the build script

  • Modify the list.txt to decide which files to compute

  • Use main as the driver to generate a new codebook, and use the codebook to generate the VLAD descriptor.

To-Do

  • Build comparison function

  • Build search engine

  • Documentation

  • Add result images

  • Add code samples

  • Add testing dataset

Contributor

Jason Chen @ [email protected]

About

An OpenCV implementation of VLAD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published