25 #ifndef WHIERARCHICALTREEVOXELS_H
26 #define WHIERARCHICALTREEVOXELS_H
36 #include "WHierarchicalTree.h"
67 void addLeaf(
size_t voxelnum );
76 void addCluster(
size_t cluster1,
size_t cluster2,
float customData );
107 std::vector< size_t >
findXClusters(
size_t root,
size_t number );
Class implements a hierarchical tree and provides helper functions for selection and navigation.
std::vector< size_t > getVoxelsForCluster(size_t cluster)
getter
std::vector< size_t > findXClusters(size_t root, size_t number)
finds a number of clusters, the algorithm travers down the tree and will always split the cluster wit...
~WHierarchicalTreeVoxels()
destructor
std::vector< size_t > findClustersForBranchLength(float value, size_t minSize=100)
finds the clusters for a given similarity value
void addLeaf()
A leaf is at the very bottom of the tree, it represents a single fiber or voxel, for several purposes...
std::vector< size_t > m_voxelnums
stores the voxel id of each leaf node
size_t getVoxelNum(size_t leaf)
getter
WHierarchicalTreeVoxels()
standard constructor
std::vector< size_t > findClustersForValue(float value)
finds the clusters for a given similarity value
void addCluster(size_t cluster1, size_t cluster2, float customData)
adds a cluster to the set, it combines 2 already existing clusters
base class for hierarchical tree implementations