# Empty voxels upon joint smoothing

**URL:** <https://discourse.slicer.org/t/empty-voxels-upon-joint-smoothing/41194>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [January 21, 2025, 3:38pm UTC](https://discourse.slicer.org/t/empty-voxels-upon-joint-smoothing/41194 "2025-01-21T15:38:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![coco](https://avatars.discourse-cdn.com/v4/letter/c/8797f3/32.png) [@coco](https://discourse.slicer.org/u/coco)\
**Post date:** [January 21, 2025, 3:38pm UTC](https://discourse.slicer.org/t/empty-voxels-upon-joint-smoothing/41194/1 "2025-01-21T15:38:50Z")

</div>

Dear all,  
We have brain samples that we segment using a seeding/grow from seeds approach followed by a joint smoothing. This last step results in a couple of empty voxels as you can see on the picture below:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/5/b520c22a8af0256996d0910ec52b2d513c991d59.jpeg)  
the red circles some of these empty voxels. is there a way to fill them randomly by one adjacent segment ?  
thanks for your help and thoughts  
s

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 21, 2025, 6:51pm UTC](https://discourse.slicer.org/t/empty-voxels-upon-joint-smoothing/41194/2 "2025-01-21T18:51:51Z")

</div>

Probably running Grow from seeds would work (if those are the only unlabled ones in the segmentation)

---

<div class="post-metadata">

**Author:** ![coco](https://avatars.discourse-cdn.com/v4/letter/c/8797f3/32.png) [@coco](https://discourse.slicer.org/u/coco)\
**Post date:** [January 22, 2025, 8:41am UTC](https://discourse.slicer.org/t/empty-voxels-upon-joint-smoothing/41194/3 "2025-01-22T08:41:02Z")

</div>

Obviously ! worked like a charm of course

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [January 22, 2025, 9:55am UTC](https://discourse.slicer.org/t/empty-voxels-upon-joint-smoothing/41194/4 "2025-01-22T09:55:37Z")

</div>

As far as I remembered this shouldn’t have occurred. The [documentation](https://slicer.readthedocs.io/en/latest/user_guide/modules/segmenteditor.html) also backs my memory, it says: “smoothes multiple segments at once, preserving watertight interface between them”. Should we investigate this issue, or is it something known?

@coco Was the original segmentation watertight to begin with?

---

<div class="post-metadata">

**Author:** ![coco](https://avatars.discourse-cdn.com/v4/letter/c/8797f3/32.png) [@coco](https://discourse.slicer.org/u/coco)\
**Post date:** [January 22, 2025, 10:08am UTC](https://discourse.slicer.org/t/empty-voxels-upon-joint-smoothing/41194/5 "2025-01-22T10:08:41Z")

</div>

We do a grow from seeds so in principle yes, every pixel is then assigned to a segment.  
Just in case it is relevant, I will just add that we had a few voxels inside the structures that were masked (so can’t be assigned anyway) but the empty voxels are not those ones that ended up unassigned to a segment. I don’t think the masked pixels were anywhere near the ones that ended up non assigned. This is another matter we solved separatly but perhaps it is linked ?

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [January 22, 2025, 10:18am UTC](https://discourse.slicer.org/t/empty-voxels-upon-joint-smoothing/41194/6 "2025-01-22T10:18:17Z")

</div>

I am not sure. Is is possible for you to share the segmentation before doing the joint smoothing? Preferably in an MRB scene.

Btw which Slicer version do you use? If 5.6.2, can you please try the latest preview? 5.8 is cooking right now, so the latest preview is practically the new 5.8. Thanks!

---

<div class="post-metadata">

**Author:** ![coco](https://avatars.discourse-cdn.com/v4/letter/c/8797f3/32.png) [@coco](https://discourse.slicer.org/u/coco)\
**Post date:** [January 22, 2025, 4:05pm UTC](https://discourse.slicer.org/t/empty-voxels-upon-joint-smoothing/41194/7 "2025-01-22T16:05:21Z")

</div>

> [@cpinter](#):
>
> If 5.6.2, can you please try the latest preview? 5.8 is cooking right now, so the latest preview is practically the new 5.8. Thanks!

Yes, I use 5.6.2, and can try 5.8. will keep posted. I should have a file to share soon as well,  
many thanks to you  
s
