kmean_tree Namespace Reference


Classes

struct  descriptor_t
class  mean_t
class  node_t
struct  descr_file_packet

Typedefs

typedef std::vector
< descriptor_t * > 
descriptor_array

Functions

node_tbuild_from_data (const char *filename, int max_level, int min_elem, int stop)
 build a tree from descriptors saved in a file
node_tload (sqlite3 *db)
 load a tree from a sqlite3 database
node_tload (const char *filename)
 load a tree from a file

Variables

static const unsigned nb_branches = 4
static const unsigned descriptor_size = 256

Typedef Documentation

Definition at line 49 of file kmeantree.h.


Function Documentation

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().


Variable Documentation

const unsigned kmean_tree::descriptor_size = 256 [static]

const unsigned kmean_tree::nb_branches = 4 [static]


Generated on Tue Mar 30 15:53:30 2010 for Polyora by  doxygen 1.5.9