# Creating a 3d printable model of lung airways using CT data

**URL:** <https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675>\
**Category:** Support\
**Created:** [January 1, 2020, 11:14am UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675 "2020-01-01T11:14:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shahid\_Khan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shahid_khan/32/5459_2.png) [@Shahid\_Khan](https://discourse.slicer.org/u/Shahid_Khan)\
**Post date:** [January 1, 2020, 11:14am UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/1 "2020-01-01T11:14:57Z")

</div>

Hey. I am currently trying to make a 3d printable model of the human bronchial airway using CT data. If anyone can tell me the process for it?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [January 1, 2020, 3:52pm UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/2 "2020-01-01T15:52:45Z")

</div>

You may be able to segment airways using Threshold effect then cut off irrelevant parts using Scissors effect.

If a single global threshold cannot capture everything then you can put seeds inside airways and outside and use “Grow from seeds” effect to create a complete segmentation. The advantage of this approach is that you can add further seeds until you get a segmentation with sufficient details.

If you have trouble obtaining good segmentation then post screenshots highlighting the issues.

---

<div class="post-metadata">

**Author:** ![Shahid\_Khan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shahid_khan/32/5459_2.png) [@Shahid\_Khan](https://discourse.slicer.org/u/Shahid_Khan)\
**Post date:** [January 2, 2020, 4:27am UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/3 "2020-01-02T04:27:39Z")

</div>

Also, from where we can get detailed CT dicom data of lungs online? I need airways atleast till 7th generation (G7). Please help

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [January 2, 2020, 4:55am UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/4 "2020-01-02T04:55:22Z")

</div>

[TCIA](https://www.cancerimagingarchive.net/) contains lots of lung images (with ground truth segmentations available in [Medical Decathlon](http://medicaldecathlon.com/)). However, it is always the best to ask data from your clinical collaborators - they can also validate quality of your processed data and results, keep your focus on the right clinical priorities, etc.

---

<div class="post-metadata">

**Author:** ![Shahid\_Khan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shahid_khan/32/5459_2.png) [@Shahid\_Khan](https://discourse.slicer.org/u/Shahid_Khan)\
**Post date:** [January 2, 2020, 5:47am UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/5 "2020-01-02T05:47:10Z")

</div>

We have sample CT chest data available in 3d slicer but it is not in DICOM format. I downloaded an extension named ‘Airway Segmentation CLI’ for segment airways using non-dicom data. I have some doubts on how to use that module. Please help

 ![Screenshot (1)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/d/edf807fcda0fae1df613b9a42862c88444fe061b.png)

---

<div class="post-metadata">

**Author:** ![Amine](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/amine/32/4844_2.png) [@Amine](https://discourse.slicer.org/u/Amine)\
**Post date:** [January 2, 2020, 8:48am UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/6 "2020-01-02T08:48:35Z")

</div>

I recommend using the other airway segmentation module, not the CLI (it is easier), it will create a model from the label map as well

---

<div class="post-metadata">

**Author:** ![Shahid\_Khan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shahid_khan/32/5459_2.png) [@Shahid\_Khan](https://discourse.slicer.org/u/Shahid_Khan)\
**Post date:** [January 2, 2020, 9:31am UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/7 "2020-01-02T09:31:11Z")

</div>

When I am doing with that using sample CT chest data available in 3-D slicer, this is what it is showing with other airway segmentation extension-

 ![Screenshot (120)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/3/531e3300100e659a24d52397155aa181f9254d6e.png)

---

<div class="post-metadata">

**Author:** ![Amine](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/amine/32/4844_2.png) [@Amine](https://discourse.slicer.org/u/Amine)\
**Post date:** [January 2, 2020, 12:12pm UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/8 "2020-01-02T12:12:52Z")

</div>

It is a bug when using non dicom images as they don’t have certain tags, you can use [this fix](https://github.com/amineaza/Slicer/blob/master/AirwaySegmentation.py) to bypass it and make it work , simply replace the file located in Slicer\_install\_dir\lib\Slicer-4.10\qt-scripted-modules\AirwaySegmentation.py with that one after backing up the original.

---

<div class="post-metadata">

**Author:** ![Shahid\_Khan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shahid_khan/32/5459_2.png) [@Shahid\_Khan](https://discourse.slicer.org/u/Shahid_Khan)\
**Post date:** [January 3, 2020, 4:07am UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/9 "2020-01-03T04:07:19Z")

</div>

‘AirwaySegmentation.py’ is not showing in the folder you mentioned. I have downloaded the extension in the 3-D slicer.

 ![Screenshot (122)](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/6/c6883814b09cb579bede5a9311c77d510a5e2e73.png)

---

<div class="post-metadata">

**Author:** ![Sameer123](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sameer123/32/68165_2.png) [@Sameer123](https://discourse.slicer.org/u/Sameer123)\
**Post date:** [October 1, 2023, 5:04pm UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/10 "2023-10-01T17:04:48Z")

</div>

Sir have you created your lung airways model?

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [October 2, 2023, 1:26pm UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/11 "2023-10-02T13:26:29Z")

</div>

You may want to try to use the “airway segmentation” in Lung CT Analyzer → Lung CT Segmenter module.

---

<div class="post-metadata">

**Author:** ![Sameer123](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sameer123/32/68165_2.png) [@Sameer123](https://discourse.slicer.org/u/Sameer123)\
**Post date:** [October 2, 2023, 5:47pm UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/12 "2023-10-02T17:47:41Z")

</div>

Sir this module is not available in 3D slicer 5.3.0 version.

Thanks & Regards:  
Sameer Verma,  
Ph.D. (Research Scholar),  
National Institute of Technology, Rourkela  
Odisha (India)-769008.  
Phone: +917042554240

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [October 3, 2023, 4:44am UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/13 "2023-10-03T04:44:46Z")

</div>

I can not test it now, but you could switch to 5.4.0 where it is available.

---

<div class="post-metadata">

**Author:** ![Eserval](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/eserval/32/14650_2.png) [@Eserval](https://discourse.slicer.org/u/Eserval)\
**Post date:** [October 3, 2023, 1:35pm UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/14 "2023-10-03T13:35:27Z")

</div>

Hello everyone,

I’d like to suggest a workflow that has proven effective for me:

1. Use the Lung CT segmenter to quickly and precisely isolate the airway.
2. Remove all other segmentations such as PA, PV, Thoracic cavity, left lung, right lung, etc.
3. Create a new segmentation, which I refer to as “Tracheal Wall”, and duplicate the airway using logical operators.
4. Apply the margin effect to expand your Tracheal Wall by 0.5 cm.
5. Subtract the original airway segmentation from the Tracheal Wall using logical operations. This will result in a hollowed airway.
6. Export a STL file using the Segmentation module

While you can opt to use the hollow effect directly, I’ve found that it doesn’t produce a satisfactory “air space” in the more distal bronchus.

I`ve been using it for some airway surgery planing

[https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/2/e215455b76c1d3e5c373fee6528b951da942af0a.mp4](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/2/e215455b76c1d3e5c373fee6528b951da942af0a.mp4)

And also some realistic printed models for segmentectomy robotic surgery training

 ![20230808_174120](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/0/10709da213a6cdd36da924d486403de86dc343db.jpeg)

It works well for me… I hope this is helpful

---

<div class="post-metadata">

**Author:** ![Sameer123](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sameer123/32/68165_2.png) [@Sameer123](https://discourse.slicer.org/u/Sameer123)\
**Post date:** [November 2, 2023, 6:17am UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/15 "2023-11-02T06:17:07Z")

</div>

Sir I have downloaded the slicer 5.4.0 version but could not able to generate lung airways model upto 6th generation. Can you please help?

Thanks & Regards:  
Sameer Verma,  
Ph.D. (Research Scholar),  
National Institute of Technology, Rourkela  
Odisha (India)-769008.  
Phone: +917042554240

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [November 2, 2023, 7:03am UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/16 "2023-11-02T07:03:13Z")

</div>

The details of airway segmentation very much depend on the starting material you are working with. Please use thin sliced CT (1 mm) for good results.

---

<div class="post-metadata">

**Author:** ![Sameer123](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sameer123/32/68165_2.png) [@Sameer123](https://discourse.slicer.org/u/Sameer123)\
**Post date:** [November 2, 2023, 7:10am UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/17 "2023-11-02T07:10:05Z")

</div>

Sir can you please provide some open source links to download CT scan dicom file for lungs airways (thin sliced).

Thanks & Regards:  
Sameer Verma,  
Ph.D. (Research Scholar),  
National Institute of Technology, Rourkela  
Odisha (India)-769008.  
Phone: +917042554240

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [November 2, 2023, 11:25am UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/18 "2023-11-02T11:25:32Z")

</div>

We could probably share the lung023 volume from the Monailabel training dataset if that is ok @diazandr3s is there an official link to that data?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/7/57841927e465affbc30080986456a7be9453f217.jpeg)

In the meantime you can use:

[https://drive.google.com/drive/folders/1h\_UQLL71yrXwqkUtNZ4a6NtvEobAuPyR?usp=sharing](https://drive.google.com/drive/folders/1h_UQLL71yrXwqkUtNZ4a6NtvEobAuPyR?usp=sharing)

---

<div class="post-metadata">

**Author:** ![diazandr3s](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/diazandr3s/32/9973_2.png) [@diazandr3s](https://discourse.slicer.org/u/diazandr3s)\
**Post date:** [November 2, 2023, 11:52am UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/19 "2023-11-02T11:52:42Z")

</div>

As @lassoan already posted [here](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/4), either TCIA or [Medical Segmentation](http://medicaldecathlon.com/) Decathlon (MSD) datasets are available to download.

MSD datasets are not in DICOM format though.

For lung airway segmentation, you could use [MONAI Label](https://github.com/Project-MONAI/MONAILabel/tree/main) to create your AI model.

---

<div class="post-metadata">

**Author:** ![Sameer123](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sameer123/32/68165_2.png) [@Sameer123](https://discourse.slicer.org/u/Sameer123)\
**Post date:** [November 4, 2023, 6:47am UTC](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675/20 "2023-11-04T06:47:02Z")

</div>

Thank you so much sir for providing the google drive link it worked for me in generating airways model.  
Can you please tell how I can import this 3D slicer file into the Ansys fluent software for the computational simulation purpose.

[Next page](https://discourse.slicer.org/t/creating-a-3d-printable-model-of-lung-airways-using-ct-data/9675.md?page=2)
