cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE > Class Template Reference

#include <composite_index.h>

Inheritance diagram for cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void buildIndex ()
 CompositeIndex (const Matrix< ELEM_TYPE > &inputData, const CompositeIndexParams &params=CompositeIndexParams())
void findNeighbors (ResultSet< ELEM_TYPE > &result, const ELEM_TYPE *vec, const SearchParams &searchParams)
const IndexParams * getParameters () const
flann_algorithm_t getType () const
void loadIndex (FILE *stream)
void saveIndex (FILE *stream)
size_t size () const
int usedMemory () const
size_t veclen () const
virtual ~CompositeIndex ()

Private Attributes

const Matrix< ELEM_TYPE > dataset
const IndexParams & index_params
KDTreeIndex< ELEM_TYPE,
DIST_TYPE > * 
kdtree
KMeansIndex< ELEM_TYPE,
DIST_TYPE > * 
kmeans

Detailed Description

template<typename ELEM_TYPE, typename DIST_TYPE = typename DistType<ELEM_TYPE>::type>
class cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >

Definition at line 73 of file composite_index.h.


Constructor & Destructor Documentation

template<typename ELEM_TYPE, typename DIST_TYPE = typename DistType<ELEM_TYPE>::type>
cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::CompositeIndex ( const Matrix< ELEM_TYPE > &  inputData,
const CompositeIndexParams params = CompositeIndexParams() 
) [inline]

Definition at line 85 of file composite_index.h.

template<typename ELEM_TYPE, typename DIST_TYPE = typename DistType<ELEM_TYPE>::type>
virtual cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::~CompositeIndex (  )  [inline, virtual]

Definition at line 96 of file composite_index.h.


Member Function Documentation

template<typename ELEM_TYPE, typename DIST_TYPE = typename DistType<ELEM_TYPE>::type>
void cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::buildIndex (  )  [inline, virtual]

Method responsible with building the index.

Implements cvflann::NNIndex< ELEM_TYPE >.

Definition at line 125 of file composite_index.h.

template<typename ELEM_TYPE, typename DIST_TYPE = typename DistType<ELEM_TYPE>::type>
void cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::findNeighbors ( ResultSet< ELEM_TYPE > &  result,
const ELEM_TYPE *  vec,
const SearchParams &  searchParams 
) [inline, virtual]

Method that searches for nearest-neighbors

Implements cvflann::NNIndex< ELEM_TYPE >.

Definition at line 147 of file composite_index.h.

template<typename ELEM_TYPE, typename DIST_TYPE = typename DistType<ELEM_TYPE>::type>
const IndexParams* cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::getParameters (  )  const [inline, virtual]

Returns the parameters used for the index

Implements cvflann::NNIndex< ELEM_TYPE >.

Definition at line 153 of file composite_index.h.

template<typename ELEM_TYPE, typename DIST_TYPE = typename DistType<ELEM_TYPE>::type>
flann_algorithm_t cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::getType (  )  const [inline, virtual]

Algorithm name

Implements cvflann::NNIndex< ELEM_TYPE >.

Definition at line 103 of file composite_index.h.

template<typename ELEM_TYPE, typename DIST_TYPE = typename DistType<ELEM_TYPE>::type>
void cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::loadIndex ( FILE *  stream  )  [inline, virtual]

Loads the index from a stream

Implements cvflann::NNIndex< ELEM_TYPE >.

Definition at line 141 of file composite_index.h.

template<typename ELEM_TYPE, typename DIST_TYPE = typename DistType<ELEM_TYPE>::type>
void cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::saveIndex ( FILE *  stream  )  [inline, virtual]

Saves the index to a stream

Implements cvflann::NNIndex< ELEM_TYPE >.

Definition at line 134 of file composite_index.h.

template<typename ELEM_TYPE, typename DIST_TYPE = typename DistType<ELEM_TYPE>::type>
size_t cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::size (  )  const [inline, virtual]

Number of features in this index.

Implements cvflann::NNIndex< ELEM_TYPE >.

Definition at line 109 of file composite_index.h.

template<typename ELEM_TYPE, typename DIST_TYPE = typename DistType<ELEM_TYPE>::type>
int cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::usedMemory (  )  const [inline, virtual]

The amount of memory (in bytes) this index uses.

Implements cvflann::NNIndex< ELEM_TYPE >.

Definition at line 120 of file composite_index.h.

template<typename ELEM_TYPE, typename DIST_TYPE = typename DistType<ELEM_TYPE>::type>
size_t cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::veclen (  )  const [inline, virtual]

The length of each vector in this index.

Implements cvflann::NNIndex< ELEM_TYPE >.

Definition at line 114 of file composite_index.h.


Member Data Documentation

template<typename ELEM_TYPE, typename DIST_TYPE = typename DistType<ELEM_TYPE>::type>
const Matrix<ELEM_TYPE> cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::dataset [private]

Definition at line 78 of file composite_index.h.

template<typename ELEM_TYPE, typename DIST_TYPE = typename DistType<ELEM_TYPE>::type>
const IndexParams& cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::index_params [private]

Definition at line 80 of file composite_index.h.

template<typename ELEM_TYPE, typename DIST_TYPE = typename DistType<ELEM_TYPE>::type>
KDTreeIndex<ELEM_TYPE, DIST_TYPE>* cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::kdtree [private]

Definition at line 76 of file composite_index.h.

template<typename ELEM_TYPE, typename DIST_TYPE = typename DistType<ELEM_TYPE>::type>
KMeansIndex<ELEM_TYPE, DIST_TYPE>* cvflann::CompositeIndex< ELEM_TYPE, DIST_TYPE >::kmeans [private]

Definition at line 75 of file composite_index.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


opencv2
Author(s): Gary Bradski and many others. See web page for a full contributor list. ROS package maintained by James Bowman.
autogenerated on Fri Jan 11 10:00:49 2013