# Smoothing multiple segments at once

**URL:** <https://discourse.slicer.org/t/smoothing-multiple-segments-at-once/15108>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [December 17, 2020, 1:03pm UTC](https://discourse.slicer.org/t/smoothing-multiple-segments-at-once/15108 "2020-12-17T13:03:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hannnonk](https://avatars.discourse-cdn.com/v4/letter/h/b5a626/32.png) [@Hannnonk](https://discourse.slicer.org/u/Hannnonk)\
**Post date:** [December 17, 2020, 1:03pm UTC](https://discourse.slicer.org/t/smoothing-multiple-segments-at-once/15108/1 "2020-12-17T13:03:03Z")

</div>

Doing a segmentation of jejunum. When I include the whole jejunum in one segment it “melts together”:

 ![jejunum melt](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/5/55735fd792943e15e594bd0c6632b236d3a3aa69.jpeg)

So then I do it as separate segments. Works better but I get “seams” between segments.\

 ![jejunum borders](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/5/55855faba5f43ed6c71f62a4467cbb0d2fbcc751.jpeg)

I overlap the segments by a bit and it makes it better …but still there… not a deal breaker but curious if anyone has any ideas to make the jejunum look like one continuous tube

---

<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:** [December 17, 2020, 10:32pm UTC](https://discourse.slicer.org/t/smoothing-multiple-segments-at-once/15108/2 "2020-12-17T22:32:11Z")

</div>

You can smooth out these tiny seams using [Smoothing brush](https://discourse.slicer.org/t/new-segment-editing-feature-smoothing-brush/14577) locally, without affecting any other parts of the segmentation.

---

<div class="post-metadata">

**Author:** ![Hannnonk](https://avatars.discourse-cdn.com/v4/letter/h/b5a626/32.png) [@Hannnonk](https://discourse.slicer.org/u/Hannnonk)\
**Post date:** [June 18, 2021, 12:35pm UTC](https://discourse.slicer.org/t/smoothing-multiple-segments-at-once/15108/3 "2021-06-18T12:35:31Z")

</div>

I can not make this work. When I try to smoothen the junction between two segments the brush only affects the selected segment?  
thanks  
KH

---

<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:** [June 18, 2021, 1:08pm UTC](https://discourse.slicer.org/t/smoothing-multiple-segments-at-once/15108/4 "2021-06-18T13:08:24Z")

</div>

Joint smoothing method is not available for the smoothing brush (when you attempt to do it you should see the _“Smoothing brush is not available for joint smoothing method”_ message).

Instead, if you want to apply joint smoothing in a certain region only, you need to use masking settings:

1. Specify the region that will be smoothed

- Create a new segment, set its name to `Mask`
- Switch to Paint effect
- Allow overlap between segments: in Masking settings (at the bottom) set `Modify other segments` → `Allow overlap`
- Paint the region you want to smooth (you can enable `Sphere brush` option to paint a larger region more quickly)

1. Apply joint smoothing restricted to the region designated by the “Mask” segment

- Switch to Smoothing effect
- Hide the `Mask` segment (this will exclude it from the smoothing, as joint smoothing will be only applied to visible segments)
- Restrict the effect to the designated region: set `Masking` / `Editable area` → `Inside Mask`
- Select `Smoothing method` → `Joint smoothing` and click `Apply`
