Skip to content

Python module to extract the skeleton from a bronchial tree mesh

Notifications You must be signed in to change notification settings

ferxinii/bronch-skele

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bronch-skele

Python module to extract the skeleton from a bronchial tree mesh, as well as information regarding generation, lobe, intrabronchial distance matrix, and terminal information ready for the Bubble Model. The file main.py contains an example on how to run the module.

Input mesh Extracted skeleton

Lobe information on nodes Connectivity graph

Input

  • An .stl mesh representing a bronchial tree structure.
  • A .txt file with the coordinates of the terminals of the mesh to keep.
  • The position (x,y,z) of a point close to the trachea inlet.
  • The positons (x,y,z) of at least one point close to the terminal of each lobe to keep. It might be necessary to give more than 1 terminal per lobe. This information is propagated upwards to label all nodes of the skeleton according to lobe.
  • Optionally, to produce terminal data for BM, the path to folders containing the .stl files of the secondary lung lobules, lung lobes and left and right lung.

Output

  • Two versions of the skeleton: smooth (passing inside the mesh, containing geometrical information) and simple (only containing bifurcations and terminals, only topological connectivity information). This is given in various formats: .csv, .vtk, .graphml.
  • Distance matrix between terminals through the bronchial tree.
  • Information of the terminals almost ready to input into the Bubble Model.

About

Python module to extract the skeleton from a bronchial tree mesh

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages