# Margin effect has a bug?

**URL:** <https://discourse.slicer.org/t/margin-effect-has-a-bug/41569>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [February 7, 2025, 10:06pm UTC](https://discourse.slicer.org/t/margin-effect-has-a-bug/41569 "2025-02-07T22:06:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cui](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@cui](https://discourse.slicer.org/u/cui)\
**Post date:** [February 7, 2025, 10:06pm UTC](https://discourse.slicer.org/t/margin-effect-has-a-bug/41569/1 "2025-02-07T22:06:10Z")

</div>

![666430d163e78d149135c2ae0dfd7fc](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/5/6595b6c4b19d4a6259a700d76e004c2c79839749.jpeg)  
Why can’t i click the “apply” button???

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [February 7, 2025, 10:08pm UTC](https://discourse.slicer.org/t/margin-effect-has-a-bug/41569/2 "2025-02-07T22:08:49Z")

</div>

No there is no bug.  
It says **Not feasible at current resolution**. You need to change your margin size to a value appropriate for the resolution of your dataset.

---

<div class="post-metadata">

**Author:** ![cui](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@cui](https://discourse.slicer.org/u/cui)\
**Post date:** [February 8, 2025, 6:14am UTC](https://discourse.slicer.org/t/margin-effect-has-a-bug/41569/3 "2025-02-08T06:14:52Z")

</div>

Thank you! My computer shows that the margin size needs to be set to 8mm  
or more before the Apply button can be clicked.  
If i want to increase the margin size by 3mm,how should i process my image?Does it need to be resampled?

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [February 8, 2025, 5:58pm UTC](https://discourse.slicer.org/t/margin-effect-has-a-bug/41569/4 "2025-02-08T17:58:24Z")

</div>

You cannot use a margin size that’s less than the resolution of your data (since the minimum number you can dilate or erode is a single voxel). You can check the resolution of your data from the `Volumes` module. Based on what you are observing it is probably 7 or 8mm.

If you are certain units and spacing of your dataset is correct, then yes you will have to resample your data to higher resolution to be able to do 3mm erosion on this dataset.

---

<div class="post-metadata">

**Author:** ![cui](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@cui](https://discourse.slicer.org/u/cui)\
**Post date:** [February 9, 2025, 9:17am UTC](https://discourse.slicer.org/t/margin-effect-has-a-bug/41569/5 "2025-02-09T09:17:26Z")

</div>

Thank you! Your suggestions is very important for me.
