Public Member Functions
vt::GenericTree Class Reference

Vocabulary tree wrapper for easy integration with OpenCV features, or when the (dense) descriptor size and/or type isn't known at compile time. More...

#include <generic_tree.h>

Inheritance diagram for vt::GenericTree:
Inheritance graph
[legend]

List of all members.

Public Member Functions

size_t dimension () const
 Returns the number of elements in a feature used by this tree.
 GenericTree ()
 Constructor, empty tree.
 GenericTree (const std::string &file)
 Constructor, loads vocabulary from file.
void load (const std::string &file)
 Load vocabulary from a file.
void save (const std::string &file) const
 Save vocabulary to a file.

Detailed Description

Vocabulary tree wrapper for easy integration with OpenCV features, or when the (dense) descriptor size and/or type isn't known at compile time.

cv::Mat is used as the feature type. If the feature type is known at compile time, the VocabularyTree template may be considerably more efficient.

Definition at line 34 of file generic_tree.h.


Constructor & Destructor Documentation

Constructor, empty tree.

Definition at line 7 of file generic_tree.cpp.

vt::GenericTree::GenericTree ( const std::string &  file)

Constructor, loads vocabulary from file.

Definition at line 11 of file generic_tree.cpp.


Member Function Documentation

size_t vt::GenericTree::dimension ( ) const

Returns the number of elements in a feature used by this tree.

Definition at line 76 of file generic_tree.cpp.

void vt::GenericTree::load ( const std::string &  file)

Load vocabulary from a file.

Reimplemented from vt::VocabularyTree< cv::Mat >.

Definition at line 34 of file generic_tree.cpp.

void vt::GenericTree::save ( const std::string &  file) const

Save vocabulary to a file.

Todo:
Currently assuming float. Really need more info in the save format.

Reimplemented from vt::VocabularyTree< cv::Mat >.

Definition at line 18 of file generic_tree.cpp.


The documentation for this class was generated from the following files:


vocabulary_tree
Author(s): Patrick Mihelich
autogenerated on Thu Jan 2 2014 12:12:26