Functions
kdtree.h File Reference
#include "mex.h"
#include <mexutils.h>
#include <vl/kdtree.h>
Include dependency graph for toolbox/misc/kdtree.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static mxArray * new_array_from_kdforest (VlKDForest const *forest)
static VlKDForestnew_kdforest_from_array (mxArray const *forest_array, mxArray const *data_array)
void restore_parent_recursively (VlKDTree *tree, int nodeIndex, int *numNodesToVisit)
 Hepler function.

Function Documentation

static mxArray* new_array_from_kdforest ( VlKDForest const *  forest) [static]

------------------------------------------------------------------

Definition at line 64 of file toolbox/misc/kdtree.h.

static VlKDForest* new_kdforest_from_array ( mxArray const *  forest_array,
mxArray const *  data_array 
) [static]

------------------------------------------------------------------

Definition at line 192 of file toolbox/misc/kdtree.h.

void restore_parent_recursively ( VlKDTree tree,
int  nodeIndex,
int *  numNodesToVisit 
)

Hepler function.

------------------------------------------------------------------

Parameters:
treeKDForest object to process
nodeIndexindex of the KDForest node to start from
numNodesToVisittotal number of nodes to visit.

The function visits in depth first order the tree's nodes starting from the root, restoring the node parent pointers.

It also chekcs for tree consistency, aborting the MEX file in case of inconsistencies. Loops are detected by counting how many nodes have been visited so far compared to the total number of nodes in the tree.

Definition at line 27 of file toolbox/misc/kdtree.h.



libvlfeat
Author(s): Andrea Vedaldi
autogenerated on Thu Jun 6 2019 20:25:52