libvot  0.1.3
A C++11 multithread library for image retrieval
Namespaces | Macros | Functions
vot_pipeline.cpp File Reference

vocabulary tree pipeline implementation. More...

#include <stdio.h>
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include <cassert>
#include <unordered_map>
#include <algorithm>
#include <sstream>
#include <thread>
#include <mutex>
#include <numeric>
#include "vot_pipeline.h"
#include "vocab_tree.h"
#include "utils/io_utils.h"
#include "utils/data_types.h"
#include "utils/data_structures.h"

Namespaces

 vot
 namespace vot contains libvot functions and classes.
 

Macros

#define MAX_ARRAY_SIZE   8388608
 

Functions

std::vector< size_t > vot::RandomSample (size_t total, size_t sample_num)
 
bool vot::BuildVocabTree (const char *sift_list, const char *output_filename, int depth=6, int branch_num=8, SiftType sift_type=E3D_SIFT, int thread_num=1)
 BuildVocabTree: build a vocabulary tree using a set of sift files. More...
 
bool vot::BuildImageDatabase (const char *sift_list, const char *input_tree, const char *output_filename, SiftType sift_type=E3D_SIFT, size_t start_id=0, int thread_num=1)
 BuildImageDatabase: build a image database with pre-trained vocabulary tree. More...
 
void vot::MultiQueryDatabase (vot::VocabTree *tree, std::vector< std::string > *sift_filenames, int sift_type, size_t first_index, size_t num_images, float *scores, size_t *indexed_scores, FILE *match_file, std::mutex *match_file_mutex)
 
bool vot::QueryDatabase (const char *image_db, const char *query_sift_list, const char *match_output, SiftType sift_type=E3D_SIFT, int thread_num=1)
 QueryDatabase: query the image database with a sift list file. More...
 
bool vot::FilterMatchList (const char *sift_list, const char *match_list, const char *output, size_t num_matches)
 FilterMatchList: filter output match file and output TOP-k rank lists. More...
 

Detailed Description

vocabulary tree pipeline implementation.

This file contains the complete pipeline of vocabulary tree.

Macro Definition Documentation

#define MAX_ARRAY_SIZE   8388608