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.
| FEAT | Can be cv::KeyPoint or mrpt::vision::TSimpleFeature |
#include <mrpt/vision/TSimpleFeature.h>

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 |
| mrpt::vision::CFeatureListKDTree::CFeatureListKDTree | ( | const std::vector< FEAT > & | data | ) | [inline] |
Definition at line 236 of file TSimpleFeature.h.
| 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.
| 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] |
Definition at line 233 of file TSimpleFeature.h.
References mrpt::math::KDTreeCapable< CFeatureListKDTree< FEAT > >::kdtree_mark_as_outdated().
| const std::vector<FEAT>& mrpt::vision::CFeatureListKDTree::m_data |
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 |