cv::KDTree Class Reference

#include <cxcore.hpp>

List of all members.

Classes

struct  Node

Public Member Functions

 KDTree ()
 KDTree (const Mat &_points, bool copyAndReorderPoints=false)
void build (const Mat &_points, bool copyAndReorderPoints=false)
int findNearest (const float *vec, int K, int Emax, int *neighborsIdx, Mat *neighbors=0, float *dist=0) const
int findNearest (const float *vec, int K, int Emax, vector< int > *neighborsIdx, Mat *neighbors=0, vector< float > *dist=0) const
void findOrthoRange (const float *minBounds, const float *maxBounds, vector< int > *neighborsIdx, Mat *neighbors=0) const
void getPoints (const int *idx, size_t nidx, Mat &pts) const
void getPoints (const Mat &idxs, Mat &pts) const
const float * getPoint (int ptidx) const
int dims () const

Public Attributes

vector< Nodenodes
Mat points
int maxDepth
int normType

Constructor & Destructor Documentation

cv::KDTree::KDTree (  )
cv::KDTree::KDTree ( const Mat _points,
bool  copyAndReorderPoints = false 
)

Member Function Documentation

void cv::KDTree::build ( const Mat _points,
bool  copyAndReorderPoints = false 
)
int cv::KDTree::findNearest ( const float *  vec,
int  K,
int  Emax,
int *  neighborsIdx,
Mat neighbors = 0,
float *  dist = 0 
) const
int cv::KDTree::findNearest ( const float *  vec,
int  K,
int  Emax,
vector< int > *  neighborsIdx,
Mat neighbors = 0,
vector< float > *  dist = 0 
) const
void cv::KDTree::findOrthoRange ( const float *  minBounds,
const float *  maxBounds,
vector< int > *  neighborsIdx,
Mat neighbors = 0 
) const
void cv::KDTree::getPoints ( const int *  idx,
size_t  nidx,
Mat pts 
) const
void cv::KDTree::getPoints ( const Mat idxs,
Mat pts 
) const
const float* cv::KDTree::getPoint ( int  ptidx ) const
int cv::KDTree::dims (  ) const

Member Data Documentation


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