65 inline Node():left(0),right(0),point(0),median(0.0){}
124 buildTree(list,0,&root);
133 buildTree(list,0,&root);
void buildTree(std::vector< math::DynMatrix< icl64f > * > &list)
builds a kd-tree
Definition: KDTree.h:122
undocument this line if you encounter any issues!
Definition: Any.h:37
Class interface for un-copyable classes.
Definition: Uncopyable.h:64
#define ICLMath_API
Definition: CompatMacros.h:173
void buildTree(std::vector< math::DynMatrix< icl64f > > &list)
builds a kd-tree
Definition: KDTree.h:131
KDTree()
Constructor.
Definition: KDTree.h:113
Simple KD-Tree implementation.
Definition: KDTree.h:51
Node * left
left node
Definition: KDTree.h:56
~Node()
Destructor.
Definition: KDTree.h:68
Node()
Constructor.
Definition: KDTree.h:65
depth
determines the pixel type of an image (8Bit-int or 32Bit-float)
Definition: Types.h:60
Node root
the root node of the tree
Definition: KDTree.h:82
Node * right
right node
Definition: KDTree.h:58
double median
median of dimension
Definition: KDTree.h:62
Keeps data of node.
Definition: KDTree.h:54
DynMatrix< icl64f > * point
point in leafnode, else null
Definition: KDTree.h:60
void print(const core::Img< T > &image)
print the images parameters to std::out