OpenCV  2.4.13.3
Open Source Computer Vision
cv::KDTree::Node Struct Reference

#include <core.hpp>

Public Member Functions

 Node ()
 
 Node (int _idx, int _left, int _right, float _boundary)
 

Public Attributes

int idx
 split dimension; >=0 for nodes (dim), < 0 for leaves (index of the point) More...
 
int left
 node indices of the left and the right branches More...
 
int right
 
float boundary
 go to the left if query_vec[node.idx]<=node.boundary, otherwise go to the right More...
 

Detailed Description

The node of the search tree.

Constructor & Destructor Documentation

§ Node() [1/2]

cv::KDTree::Node::Node ( )
inline

§ Node() [2/2]

cv::KDTree::Node::Node ( int  _idx,
int  _left,
int  _right,
float  _boundary 
)
inline

Member Data Documentation

§ boundary

float cv::KDTree::Node::boundary

go to the left if query_vec[node.idx]<=node.boundary, otherwise go to the right

§ idx

int cv::KDTree::Node::idx

split dimension; >=0 for nodes (dim), < 0 for leaves (index of the point)

§ left

int cv::KDTree::Node::left

node indices of the left and the right branches

§ right

int cv::KDTree::Node::right

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