# Smoothing only in one direction

**URL:** <https://discourse.slicer.org/t/smoothing-only-in-one-direction/2327>\
**Category:** Support\
**Created:** [March 15, 2018, 2:34pm UTC](https://discourse.slicer.org/t/smoothing-only-in-one-direction/2327 "2018-03-15T14:34:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alessandronavacchia](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@alessandronavacchia](https://discourse.slicer.org/u/alessandronavacchia)\
**Post date:** [March 15, 2018, 2:34pm UTC](https://discourse.slicer.org/t/smoothing-only-in-one-direction/2327/1 "2018-03-15T14:34:16Z")

</div>

Hi all,

I am trying to smooth a segmented volume with either a Median or Gaussian method. I segmented mostly in slices perpendicular to one axis because of the better resolution. When I smooth with large Kernel sizes or Standard deviations the geometry ends up changing too much, and when I smooth with smaller values I keep seeing the “slice effect” in the 3d volume (see figure below):

 ![smoothing](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/4/8412f6dc7098d42ac29ae74ebcb5b1655ed48a47.png)

So I was wondering if there is any way to smooth with larger Kernel size of Standard deviation only in one direction (perpendicular to the sagittal plane in this case)? Have you ever encountered the same issue? Do you have alternative solutions?

Thanks!

Alessandro

---

<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:** [March 15, 2018, 2:36pm UTC](https://discourse.slicer.org/t/smoothing-only-in-one-direction/2327/2 "2018-03-15T14:36:42Z")

</div>

This shows that your input volume had highly anisotropic spacing. You should not attempt to smooth it, but instead use Crop volume module on the input volume (before segmentation) to resample using isotropic spacing option.

---

<div class="post-metadata">

**Author:** ![alessandronavacchia](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@alessandronavacchia](https://discourse.slicer.org/u/alessandronavacchia)\
**Post date:** [March 16, 2018, 2:14pm UTC](https://discourse.slicer.org/t/smoothing-only-in-one-direction/2327/3 "2018-03-16T14:14:20Z")

</div>

Thanks Andras, that fixed it!

Alessandro
