|
vocabtree
0.0.1
|
#include "bench_config.hpp"#include <fstream>#include <config.hpp>#include <utils/filesystem.hpp>#include <utils/numerics.hpp>#include <utils/dataset.hpp>#include <utils/misc.hpp>#include <utils/vision.hpp>#include <utils/logger.hpp>#include <utils/image.hpp>#include <utils/cycletimer.hpp>#include <search/bag_of_words/bag_of_words.hpp>#include <search/inverted_index/inverted_index.hpp>#include <search/vocab_tree/vocab_tree.hpp>#include <vis/matches_page.hpp>
Go to the source code of this file.
Functions | |
| _INITIALIZE_EASYLOGGINGPP void | compute_features (Dataset &dataset) |
| void | compute_bow_features (Dataset &dataset, std::shared_ptr< BagOfWords > bow, uint32_t num_clusters) |
| std::shared_ptr< VocabTree > | train_tree (Dataset &dataset, uint32_t num_images, uint32_t split, uint32_t depth) |
| std::shared_ptr< BagOfWords > | train_bow (Dataset &dataset, uint32_t num_images, uint32_t num_clusters) |
| std::shared_ptr< InvertedIndex > | train_index (Dataset &dataset, std::shared_ptr< BagOfWords > bow) |
| void | benchmark_dataset (Dataset &dataset) |
| int | main (int argc, char *argv[]) |
| void benchmark_dataset | ( | Dataset & | dataset | ) |
Definition at line 125 of file bench_all.cxx.
References MatchesPage::add_match(), compute_bow_features(), compute_features(), filesystem::create_file_directory(), CycleTimer::currentSeconds(), ENABLE_MPI, ENABLE_MULTITHREADING, ENABLE_OPENMP, vision::geo_verify_f(), misc::get_machine_name(), Dataset::image(), vision::is_good_match(), filesystem::load_cvmat(), Dataset::location(), Dataset::num_images(), train_bow(), train_index(), train_tree(), and MatchesPage::write().
Referenced by main().
| void compute_bow_features | ( | Dataset & | dataset, |
| std::shared_ptr< BagOfWords > | bow, | ||
| uint32_t | num_clusters | ||
| ) |
Definition at line 58 of file bench_all.cxx.
References Dataset::all_images(), vision::compute_bow_feature(), vision::construct_descriptor_matcher(), filesystem::create_file_directory(), filesystem::file_exists(), filesystem::load_cvmat(), Dataset::location(), numerics::sparsify(), and filesystem::write_sparse_vector().
Referenced by benchmark_dataset().
| _INITIALIZE_EASYLOGGINGPP void compute_features | ( | Dataset & | dataset | ) |
Definition at line 28 of file bench_all.cxx.
References vision::compute_sparse_sift_feature(), filesystem::create_file_directory(), filesystem::file_exists(), Dataset::image(), Dataset::location(), Dataset::num_images(), and filesystem::write_cvmat().
Referenced by benchmark_dataset(), and main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 376 of file bench_all.cxx.
References benchmark_dataset(), s_holidays_data_dir, s_holidays_database_location, s_oxford_data_dir, s_oxford_database_location, s_oxfordmini_data_dir, and s_oxfordmini_database_location.
| std::shared_ptr<BagOfWords> train_bow | ( | Dataset & | dataset, |
| uint32_t | num_images, | ||
| uint32_t | num_clusters | ||
| ) |
Definition at line 104 of file bench_all.cxx.
References Dataset::location(), Dataset::random_images(), BagOfWords::save(), and BagOfWords::train().
Referenced by benchmark_dataset().
| std::shared_ptr<InvertedIndex> train_index | ( | Dataset & | dataset, |
| std::shared_ptr< BagOfWords > | bow | ||
| ) |
Definition at line 116 of file bench_all.cxx.
References Dataset::all_images(), and InvertedIndex::train().
Referenced by benchmark_dataset().
| std::shared_ptr<VocabTree> train_tree | ( | Dataset & | dataset, |
| uint32_t | num_images, | ||
| uint32_t | split, | ||
| uint32_t | depth | ||
| ) |
Definition at line 91 of file bench_all.cxx.
References Dataset::location(), Dataset::random_images(), VocabTree::save(), VocabTree::split, and VocabTree::train().
Referenced by benchmark_dataset().