Classes | |
struct | descriptor_t |
class | mean_t |
class | node_t |
struct | descr_file_packet |
Typedefs | |
typedef std::vector < descriptor_t * > | descriptor_array |
Functions | |
node_t * | build_from_data (const char *filename, int max_level, int min_elem, int stop) |
build a tree from descriptors saved in a file | |
node_t * | load (sqlite3 *db) |
load a tree from a sqlite3 database | |
node_t * | load (const char *filename) |
load a tree from a file | |
Variables | |
static const unsigned | nb_branches = 4 |
static const unsigned | descriptor_size = 256 |
typedef std::vector<descriptor_t *> kmean_tree::descriptor_array |
Definition at line 49 of file kmeantree.h.
node_t * kmean_tree::build_from_data | ( | const char * | filename, | |
int | max_level, | |||
int | min_elem, | |||
int | stop | |||
) |
build a tree from descriptors saved in a file
Definition at line 494 of file kmeantree.cpp.
References kmean_tree::node_t::assign_leaf_ids(), kmean_tree::node_t::data, descriptor_size, and kmean_tree::node_t::recursive_split().
Referenced by main().
node_t * kmean_tree::load | ( | const char * | filename | ) |
load a tree from a file
Definition at line 460 of file kmeantree.cpp.
References kmean_tree::node_t::load().
node_t * kmean_tree::load | ( | sqlite3 * | db | ) |
load a tree from a sqlite3 database
Definition at line 382 of file kmeantree.cpp.
References kmean_tree::node_t::clusters, kmean_tree::node_t::id, kmean_tree::node_t::mean, and nb_branches.
Referenced by kpt_tracker::load_tree(), and main().
const unsigned kmean_tree::descriptor_size = 256 [static] |
Definition at line 37 of file kmeantree.h.
Referenced by kmean_tree::mean_t::accumulate(), patch_tagger::descriptor::array(), build_from_data(), kmean_tree::mean_t::distance(), kmean_tree::mean_t::mean_t(), kmean_tree::node_t::run_kmean(), and write_descriptor().
const unsigned kmean_tree::nb_branches = 4 [static] |
Definition at line 31 of file kmeantree.h.
Referenced by kmean_tree::node_t::assign_leaf_ids(), kmean_tree::node_t::cmp_scores(), kmean_tree::node_t::count_leafs(), kmean_tree::node_t::is_leaf(), kmean_tree::node_t::load(), load(), kmean_tree::node_t::node_t(), kmean_tree::node_t::print_summary(), kmean_tree::node_t::recursive_split(), kmean_tree::node_t::run_and_split(), kmean_tree::node_t::run_kmean(), kmean_tree::node_t::save(), and save_node_images().