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 (const std::string &file)
 Constructor, loads vocabulary from file.
 GenericTree ()
 Constructor, empty tree.
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 33 of file generic_tree.h.


Constructor & Destructor Documentation

vt::GenericTree::GenericTree (  ) 

Constructor, empty tree.

Definition at line 4 of file generic_tree.cpp.

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

Constructor, loads vocabulary from file.

Definition at line 8 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 73 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 31 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 15 of file generic_tree.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs


vocabulary_tree
Author(s): Patrick Mihelich
autogenerated on Fri Jan 11 09:14:12 2013