Fraxinus  18.10
An IGT application
cx::BranchList Class Reference

#include <cxBranchList.h>

Public Member Functions

 BranchList ()
 
virtual ~BranchList ()
 
void addBranch (BranchPtr b)
 
void deleteBranch (BranchPtr b)
 
void deleteAllBranches ()
 
std::vector< BranchPtrgetBranches ()
 
void findBranchesInCenterline (Eigen::MatrixXd positions_r)
 
void selectGenerations (int maxGeneration)
 
void calculateOrientations ()
 
void smoothOrientations ()
 
void interpolateBranchPositions (int interpolationFactor)
 
void smoothBranchPositions (int controlPointDistance)
 
BranchListPtr removePositionsForLocalRegistration (Eigen::MatrixXd trackingPositions, double maxDistance)
 
vtkPolyDataPtr createVtkPolyDataFromBranches (bool fullyConnected=false, bool straightBranches=false) const
 BranchList::createVtkPolyDataFromBranches Return a VtkPolyData object created from the branches in this object. More...
 

Detailed Description

Definition at line 26 of file cxBranchList.h.

Constructor & Destructor Documentation

cx::BranchList::BranchList ( )

Definition at line 24 of file cxBranchList.cpp.

cx::BranchList::~BranchList ( )
virtual

Definition at line 30 of file cxBranchList.cpp.

Member Function Documentation

void cx::BranchList::addBranch ( BranchPtr  b)

Definition at line 36 of file cxBranchList.cpp.

void cx::BranchList::calculateOrientations ( )

Definition at line 87 of file cxBranchList.cpp.

vtkPolyDataPtr cx::BranchList::createVtkPolyDataFromBranches ( bool  fullyConnected = false,
bool  straightBranches = false 
) const

BranchList::createVtkPolyDataFromBranches Return a VtkPolyData object created from the branches in this object.

Parameters
fullyConnectedThe original version of this code created an object where there might be gaps between the end of parent and child branches. This parameter lets you make connections between the branches to fill these gaps. Note however, that this option gives strange results on many of the real centerlines tried. Not sure where the problem is. It works on the dummy centerline used in the unit test.
straightBranchesBy using this parameter, you will include only the first and last points from a branch. Hence you will get straight branches in your polydata.
Returns
a vtkpolydata object of your branch tree.

Definition at line 348 of file cxBranchList.cpp.

void cx::BranchList::deleteAllBranches ( )

Definition at line 53 of file cxBranchList.cpp.

void cx::BranchList::deleteBranch ( BranchPtr  b)

Definition at line 41 of file cxBranchList.cpp.

void cx::BranchList::findBranchesInCenterline ( Eigen::MatrixXd  positions_r)

Definition at line 203 of file cxBranchList.cpp.

std::vector< BranchPtr > cx::BranchList::getBranches ( )

Definition at line 58 of file cxBranchList.cpp.

void cx::BranchList::interpolateBranchPositions ( int  interpolationFactor)

Definition at line 116 of file cxBranchList.cpp.

BranchListPtr cx::BranchList::removePositionsForLocalRegistration ( Eigen::MatrixXd  trackingPositions,
double  maxDistance 
)

Definition at line 294 of file cxBranchList.cpp.

void cx::BranchList::selectGenerations ( int  maxGeneration)

Definition at line 63 of file cxBranchList.cpp.

void cx::BranchList::smoothBranchPositions ( int  controlPointDistance)

Definition at line 160 of file cxBranchList.cpp.

void cx::BranchList::smoothOrientations ( )

Definition at line 100 of file cxBranchList.cpp.


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