Main MRPT website > C++ reference
MRPT logo
Public Member Functions | Public Attributes
mrpt::vision::CFeatureListKDTree Class Reference

Detailed Description

Helper class: KD-tree search class for vector<KeyPoint>: Call mark_as_outdated() to force rebuilding the kd-tree after modifying the linked feature list.

Template Parameters:
FEATCan be cv::KeyPoint or mrpt::vision::TSimpleFeature

#include <mrpt/vision/TSimpleFeature.h>

Inheritance diagram for mrpt::vision::CFeatureListKDTree:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void mark_as_outdated ()
 CFeatureListKDTree (const std::vector< FEAT > &data)
Methods that MUST be implemented by children classes of KDTreeCapable
size_t kdtree_get_point_count () const
 Must return the number of data points.
float kdtree_get_pt (const size_t idx, int dim) const
 Returns the dim'th component of the idx'th point in the class:
float kdtree_distance (const float *p1, const size_t idx_p2, size_t size) const
 Returns the distance between the vector "p1[0:size-1]" and the data point with index "idx_p2" stored in the class:
template<typename BBOX >
bool kdtree_get_bbox (BBOX &bb) const

Public Attributes

const std::vector< FEAT > & m_data

Constructor & Destructor Documentation

mrpt::vision::CFeatureListKDTree::CFeatureListKDTree ( const std::vector< FEAT > &  data) [inline]

Definition at line 236 of file TSimpleFeature.h.


Member Function Documentation

float mrpt::vision::CFeatureListKDTree::kdtree_distance ( const float *  p1,
const size_t  idx_p2,
size_t  size 
) const [inline]

Returns the distance between the vector "p1[0:size-1]" and the data point with index "idx_p2" stored in the class:

Definition at line 253 of file TSimpleFeature.h.

References ASSERTDEB_, and m_data.

template<typename BBOX >
bool mrpt::vision::CFeatureListKDTree::kdtree_get_bbox ( BBOX &  bb) const [inline]

Definition at line 266 of file TSimpleFeature.h.

size_t mrpt::vision::CFeatureListKDTree::kdtree_get_point_count ( ) const [inline]

Must return the number of data points.

Definition at line 243 of file TSimpleFeature.h.

References m_data.

float mrpt::vision::CFeatureListKDTree::kdtree_get_pt ( const size_t  idx,
int  dim 
) const [inline]

Returns the dim'th component of the idx'th point in the class:

Definition at line 246 of file TSimpleFeature.h.

References ASSERTDEB_, and m_data.

void mrpt::vision::CFeatureListKDTree::mark_as_outdated ( ) [inline]

Member Data Documentation

Definition at line 235 of file TSimpleFeature.h.

Referenced by kdtree_get_point_count(), kdtree_get_pt(), and kdtree_distance().




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Sun Oct 16 12:16:33 UTC 2011