# Unable to use segment smoothing algorithms except joint smoothing when using imported segments from "partial\_lung\_label\_map" create by chest imaging platform

**URL:** <https://discourse.slicer.org/t/unable-to-use-segment-smoothing-algorithms-except-joint-smoothing-when-using-imported-segments-from-partial-lung-label-map-create-by-chest-imaging-platform/13295>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [September 2, 2020, 12:25pm UTC](https://discourse.slicer.org/t/unable-to-use-segment-smoothing-algorithms-except-joint-smoothing-when-using-imported-segments-from-partial-lung-label-map-create-by-chest-imaging-platform/13295 "2020-09-02T12:25:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishnu\_vardhan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vishnu_vardhan/32/7960_2.png) [@vishnu\_vardhan](https://discourse.slicer.org/u/vishnu_vardhan)\
**Post date:** [September 2, 2020, 12:25pm UTC](https://discourse.slicer.org/t/unable-to-use-segment-smoothing-algorithms-except-joint-smoothing-when-using-imported-segments-from-partial-lung-label-map-create-by-chest-imaging-platform/13295/1 "2020-09-02T12:25:18Z")

</div>

Operating system: Mac OS  
Slicer version: Slicer-4.11.0-2020-08-31-macosx-amd64  
Expected behavior: All smoothing algorithms should be working  
Actual behavior: As soon as any smoothing algorithm except joint smoothing is applied, the segment disappears

---

<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:** [September 2, 2020, 12:28pm UTC](https://discourse.slicer.org/t/unable-to-use-segment-smoothing-algorithms-except-joint-smoothing-when-using-imported-segments-from-partial-lung-label-map-create-by-chest-imaging-platform/13295/2 "2020-09-02T12:28:10Z")

</div>

Thanks for reporting this. Could you upload somewhere the application log (menu: Help / Report a bug) and preferably also a sample segmentation file, and post the link here?

---

<div class="post-metadata">

**Author:** ![vishnu\_vardhan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vishnu_vardhan/32/7960_2.png) [@vishnu\_vardhan](https://discourse.slicer.org/u/vishnu_vardhan)\
**Post date:** [September 2, 2020, 4:05pm UTC](https://discourse.slicer.org/t/unable-to-use-segment-smoothing-algorithms-except-joint-smoothing-when-using-imported-segments-from-partial-lung-label-map-create-by-chest-imaging-platform/13295/3 "2020-09-02T16:05:21Z")

</div>

[https://fromsmash.com/HRAmtRiUKf-dt](https://fromsmash.com/HRAmtRiUKf-dt)

this is link to error log and .mrb bundle with an example

---

<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:** [September 2, 2020, 4:52pm UTC](https://discourse.slicer.org/t/unable-to-use-segment-smoothing-algorithms-except-joint-smoothing-when-using-imported-segments-from-partial-lung-label-map-create-by-chest-imaging-platform/13295/4 "2020-09-02T16:52:02Z")

</div>

Thank you, I was able to reproduce the problem with this scene. Probably it is due to the unexpected scalar type or range.

@Sunderlandkyl could you investigate it further/fix it?

---

<div class="post-metadata">

**Author:** ![vishnu\_vardhan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vishnu_vardhan/32/7960_2.png) [@vishnu\_vardhan](https://discourse.slicer.org/u/vishnu_vardhan)\
**Post date:** [September 2, 2020, 5:08pm UTC](https://discourse.slicer.org/t/unable-to-use-segment-smoothing-algorithms-except-joint-smoothing-when-using-imported-segments-from-partial-lung-label-map-create-by-chest-imaging-platform/13295/5 "2020-09-02T17:08:33Z")

</div>

This doesn’t happen with the stable release by the way.

---

<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:** [September 3, 2020, 12:38pm UTC](https://discourse.slicer.org/t/unable-to-use-segment-smoothing-algorithms-except-joint-smoothing-when-using-imported-segments-from-partial-lung-label-map-create-by-chest-imaging-platform/13295/6 "2020-09-03T12:38:44Z")

</div>

@Sunderlandkyl fixed this issue yesterday (it was due to the unexpected scalar type of the input labelmap). Smoothing effect should work well in Slicer Preview Release you download today or later.

---

<div class="post-metadata">

**Author:** ![vishnu\_vardhan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vishnu_vardhan/32/7960_2.png) [@vishnu\_vardhan](https://discourse.slicer.org/u/vishnu_vardhan)\
**Post date:** [September 3, 2020, 3:01pm UTC](https://discourse.slicer.org/t/unable-to-use-segment-smoothing-algorithms-except-joint-smoothing-when-using-imported-segments-from-partial-lung-label-map-create-by-chest-imaging-platform/13295/7 "2020-09-03T15:01:34Z")

</div>

Sure thing.  
Will check it out.  
Thank you
