ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
vocab_tree.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <string>
11 
12 namespace cloudViewer {
13 
14 int BuildVocabTree(const std::string& database_path,
15  const std::string& vocab_tree_path,
16  int num_visual_words = 256 * 256,
17  int num_checks = 256,
18  int branching = 256,
19  int num_iterations = 11,
20  int max_num_images = -1);
21 
22 int RetrieveVocabTree(const std::string& database_path,
23  const std::string& vocab_tree_path,
24  const std::string& output_index_path = "",
25  const std::string& query_image_list_path = "",
26  const std::string& database_image_list_path = "",
27  int max_num_images = -1,
28  int num_neighbors = 5,
29  int num_checks = 256,
30  int num_images_after_verification = 0,
31  int max_num_features = -1);
32 
33 } // namespace cloudViewer
Generic file read and write utility for python interface.
int RetrieveVocabTree(const std::string &database_path, const std::string &vocab_tree_path, const std::string &output_index_path, const std::string &query_image_list_path, const std::string &database_image_list_path, int max_num_images, int num_neighbors, int num_checks, int num_images_after_verification, int max_num_features)
Definition: vocab_tree.cpp:35
int BuildVocabTree(const std::string &database_path, const std::string &vocab_tree_path, int num_visual_words, int num_checks, int branching, int num_iterations, int max_num_images)
Definition: vocab_tree.cpp:15