# Exclude pleural effusion from CT lung segmentation (CT lung analyzer)

**URL:** <https://discourse.slicer.org/t/exclude-pleural-effusion-from-ct-lung-segmentation-ct-lung-analyzer/30506>\
**Category:** Support\
**Tags:** segmentation, lungctanalyzer, lung\
**Created:** [July 11, 2023, 1:25am UTC](https://discourse.slicer.org/t/exclude-pleural-effusion-from-ct-lung-segmentation-ct-lung-analyzer/30506 "2023-07-11T01:25:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikiN](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@mikiN](https://discourse.slicer.org/u/mikiN)\
**Post date:** [July 11, 2023, 1:25am UTC](https://discourse.slicer.org/t/exclude-pleural-effusion-from-ct-lung-segmentation-ct-lung-analyzer/30506/1 "2023-07-11T01:25:29Z")

</div>

Ask a question about lung segmentation.  
I am performing segmentation for chest CT using lungmask, but inevitably pleural effusion is also segmented together. I am now erasing the pleural fluid with an eraser for each thin-slice one by one. However, that is very time-consuming and difficult.  
Is there a better way to do this?

---

<div class="post-metadata">

**Author:** ![mikiN](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@mikiN](https://discourse.slicer.org/u/mikiN)\
**Post date:** [July 11, 2023, 1:26am UTC](https://discourse.slicer.org/t/exclude-pleural-effusion-from-ct-lung-segmentation-ct-lung-analyzer/30506/2 "2023-07-11T01:26:24Z")

</div>

I use “R231CovidWeb”.

---

<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:** [July 11, 2023, 5:27am UTC](https://discourse.slicer.org/t/exclude-pleural-effusion-from-ct-lung-segmentation-ct-lung-analyzer/30506/3 "2023-07-11T05:27:49Z")

</div>

Try TotalSegmenter in the AI options of lung segmentation, I have seen detecting it pleural fluid fairly well, if you still got problems drop us a note here.

---

<div class="post-metadata">

**Author:** ![mikiN](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@mikiN](https://discourse.slicer.org/u/mikiN)\
**Post date:** [September 6, 2023, 12:36pm UTC](https://discourse.slicer.org/t/exclude-pleural-effusion-from-ct-lung-segmentation-ct-lung-analyzer/30506/4 "2023-09-06T12:36:55Z")

</div>

I get an error like this. I am in trouble, please help…

 ![スクリーンショット 2023-09-06 213811](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/d/8d6d2ae1477ec640185633c92105514b6be15a45.png)

---

<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:** [September 6, 2023, 1:29pm UTC](https://discourse.slicer.org/t/exclude-pleural-effusion-from-ct-lung-segmentation-ct-lung-analyzer/30506/5 "2023-09-06T13:29:19Z")

</div>

This is due to the fact that TotalSegmentator is not properly installed on your system.  
Please download and install the Totalsegmenator extension.  
Restart Slicer.  
Test the extension.  
If problems persist you may need to install the TotalSegmentator weights via a VPN.
