CustusX  22.04-rc3
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, bool sortByZindex=true)
 
void selectGenerations (int maxGeneration)
 
void findBronchoscopeRotation ()
 
void calculateBronchoscopeRotation (BranchPtr branch)
 
void smoothOrientations ()
 
void smoothRadius ()
 
BranchPtr findBranchWithLargestRadius ()
 
void interpolateBranchPositions (double resolution)
 
void smoothBranchPositions (int controlPointDistance)
 
void excludeClosePositionsInCTCenterline (double minPointDistance)
 
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 28 of file cxBranchList.h.

Constructor & Destructor Documentation

cx::BranchList::BranchList ( )

Definition at line 25 of file cxBranchList.cpp.

cx::BranchList::~BranchList ( )
virtual

Definition at line 31 of file cxBranchList.cpp.

Member Function Documentation

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

Definition at line 37 of file cxBranchList.cpp.

void cx::BranchList::calculateBronchoscopeRotation ( BranchPtr  branch)

Definition at line 97 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 492 of file cxBranchList.cpp.

void cx::BranchList::deleteAllBranches ( )

Definition at line 57 of file cxBranchList.cpp.

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

Definition at line 42 of file cxBranchList.cpp.

void cx::BranchList::excludeClosePositionsInCTCenterline ( double  minPointDistance)

Definition at line 453 of file cxBranchList.cpp.

void cx::BranchList::findBranchesInCenterline ( Eigen::MatrixXd  positions_r,
bool  sortByZindex = true 
)

Definition at line 327 of file cxBranchList.cpp.

BranchPtr cx::BranchList::findBranchWithLargestRadius ( )

Definition at line 221 of file cxBranchList.cpp.

void cx::BranchList::findBronchoscopeRotation ( )

Definition at line 90 of file cxBranchList.cpp.

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

Definition at line 62 of file cxBranchList.cpp.

void cx::BranchList::interpolateBranchPositions ( double  resolution)

Definition at line 238 of file cxBranchList.cpp.

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

Definition at line 419 of file cxBranchList.cpp.

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

Definition at line 67 of file cxBranchList.cpp.

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

Definition at line 284 of file cxBranchList.cpp.

void cx::BranchList::smoothOrientations ( )

Definition at line 190 of file cxBranchList.cpp.

void cx::BranchList::smoothRadius ( )

Definition at line 206 of file cxBranchList.cpp.


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