# Problem with Lung lesion segmentation

**URL:** <https://discourse.slicer.org/t/problem-with-lung-lesion-segmentation/3424>\
**Category:** SlicerCIP\
**Tags:** cip\
**Created:** [July 9, 2018, 12:30pm UTC](https://discourse.slicer.org/t/problem-with-lung-lesion-segmentation/3424 "2018-07-09T12:30:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daan](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@Daan](https://discourse.slicer.org/u/Daan)\
**Post date:** [July 9, 2018, 12:30pm UTC](https://discourse.slicer.org/t/problem-with-lung-lesion-segmentation/3424/1 "2018-07-09T12:30:41Z")

</div>

Dear all,

We are using the lung lesion analyser to make segmentations of lung nodules. When we segment the nodule, we also get some kind of planes in our segmentations as can be seen in the image I have added. When we change the threshold it sometimes disappears. Unfortunately, we cannot use different thresholds.

 ![3dslicer](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/b/2b2463f3876726d1718ac8c9c83eb1e071fe3b1a.png)  
Does anybody know how to solve this issue?

With kind regards,

Daan

---

<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:** [July 10, 2018, 3:21am UTC](https://discourse.slicer.org/t/problem-with-lung-lesion-segmentation/3424/2 "2018-07-10T03:21:23Z")

</div>

Are the planes present in the images? Can you see bright lines in the images in slice views and/or see the planes in volume rendering?

If yes, then you may need to mask out these objects. You can use Mask volume effect in Segment editor module (after you installed SegmentEditorExtraEffects extension) for this.

---

<div class="post-metadata">

**Author:** ![Daan](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@Daan](https://discourse.slicer.org/u/Daan)\
**Post date:** [July 10, 2018, 7:34am UTC](https://discourse.slicer.org/t/problem-with-lung-lesion-segmentation/3424/3 "2018-07-10T07:34:54Z")

</div>

Unfortunately, the planes are not present in the images originaly, but are added when we do the segmentation. It does not matter where we do the segmentation or what we segment, the planes are added everytime.

---

<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:** [July 10, 2018, 2:48pm UTC](https://discourse.slicer.org/t/problem-with-lung-lesion-segmentation/3424/4 "2018-07-10T14:48:28Z")

</div>

@raul @jonieva Can you advise?

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [July 10, 2018, 4:14pm UTC](https://discourse.slicer.org/t/problem-with-lung-lesion-segmentation/3424/5 "2018-07-10T16:14:21Z")

</div>

I’ve experienced similar behavior of the lesion segmenter when I tried it a year ago. It created an extra segmented plane. I think I reported this to @jonieva.

A practical workaround could be to have a simple post-processing script that discards the segmented component that is not connected to the lesion, which in turn can be easily identified using the seed point.

---

<div class="post-metadata">

**Author:** ![jonieva](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jonieva](https://discourse.slicer.org/u/jonieva)\
**Post date:** [July 10, 2018, 5:08pm UTC](https://discourse.slicer.org/t/problem-with-lung-lesion-segmentation/3424/6 "2018-07-10T17:08:17Z")

</div>

Unfortunately I could not reproduce this problem so far. Do you think it would be possible to share a scan where you are having this issue?

Thanks,  
Jorge

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [July 10, 2018, 5:21pm UTC](https://discourse.slicer.org/t/problem-with-lung-lesion-segmentation/3424/7 "2018-07-10T17:21:54Z")

</div>

@jonieva I believe I experienced this issue with the example dataset available here: [http://slicer.kitware.com/midas3/download/item/245513/LIDC-IDRI-0314-CT.zip](http://slicer.kitware.com/midas3/download/item/245513/LIDC-IDRI-0314-CT.zip)

---

<div class="post-metadata">

**Author:** ![jonieva](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jonieva](https://discourse.slicer.org/u/jonieva)\
**Post date:** [July 10, 2018, 5:38pm UTC](https://discourse.slicer.org/t/problem-with-lung-lesion-segmentation/3424/8 "2018-07-10T17:38:43Z")

</div>

Thx @fedorov !

Indeed I could reproduce the problem with that scan. Let me look into it and I’ll keep you posted

---

<div class="post-metadata">

**Author:** ![jonieva](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jonieva](https://discourse.slicer.org/u/jonieva)\
**Post date:** [July 12, 2018, 2:11pm UTC](https://discourse.slicer.org/t/problem-with-lung-lesion-segmentation/3424/9 "2018-07-12T14:11:55Z")

</div>

Hi guys

Good news, we succeeded to fix this problem, it is working now in the Slicer 4.8.1 Stable Release version (you will need to reinstall the extension).

However, I just found out that the Chest\_Imaging\_Platform extension is not available in the Nightly build, despite everything looks good in CDash. I will touch base with the experts 😉

Best,

Jorge Onieva

---

<div class="post-metadata">

**Author:** ![Daan](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@Daan](https://discourse.slicer.org/u/Daan)\
**Post date:** [July 13, 2018, 8:27am UTC](https://discourse.slicer.org/t/problem-with-lung-lesion-segmentation/3424/10 "2018-07-13T08:27:12Z")

</div>

Dear jorge,

Your work has indeed solved the problem for us as well. Thank you very much for this and your quick action.

With kind regards,

Daan
