# SlicerRT Defining Margins

**URL:** <https://discourse.slicer.org/t/slicerrt-defining-margins/20776>\
**Category:** Support\
**Tags:** slicerrt, radiomics\
**Created:** [November 24, 2021, 4:20pm UTC](https://discourse.slicer.org/t/slicerrt-defining-margins/20776 "2021-11-24T16:20:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maharshi\_Panchal](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/maharshi_panchal/32/13236_2.png) [@Maharshi\_Panchal](https://discourse.slicer.org/u/Maharshi_Panchal)\
**Post date:** [November 24, 2021, 4:20pm UTC](https://discourse.slicer.org/t/slicerrt-defining-margins/20776/1 "2021-11-24T16:20:24Z")

</div>

Hello,

Our team has been working to improve the delineation of tumors to guide better radiation planning. We have been looking at the 3DSlicer extension “SlicerRT” you created as a method of defining tumor margins, but were having trouble navigating the modules.

We reviewed the documentation and a module called “Segment Morphology” stood out to us as it allows the user to add and remove tumor margins. However, it seems this module is no longer a part of the extension. Has the module has since been updated, or if its features have been split up into other modules?

Thank you for your time, and we look forward to hearing back from you soon.

---

<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:** [November 25, 2021, 2:39pm UTC](https://discourse.slicer.org/t/slicerrt-defining-margins/20776/2 "2021-11-25T14:39:22Z")

</div>

Copying my answer to your question to me on LinkedIn:

“That module has become deprecated with the release of the new Segment Editor module in 3D Slicer core. Please download the latest preview version and see the “Logical operators” and “Margin” effects in said module.”

I understand that you want a quick answer but please in the future wait a bit before you post the same question to multiple places. Thank you.

---

<div class="post-metadata">

**Author:** ![Maharshi\_Panchal](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/maharshi_panchal/32/13236_2.png) [@Maharshi\_Panchal](https://discourse.slicer.org/u/Maharshi_Panchal)\
**Post date:** [November 25, 2021, 11:42pm UTC](https://discourse.slicer.org/t/slicerrt-defining-margins/20776/3 "2021-11-25T23:42:47Z")

</div>

Hello Mr Pinter,

Sorry for posting in multiple places, I wasn’t sure how long my question would pend on here and thought it would be quicker to reach out over LinkedIn. My apologies!

I’ve downloaded the preview version and installed SlicerRT on this version as well. However, I’m still unable to access the “Segment Morphology” module. Our team is looking for a way to manually define tumor margins for delineation. For example, manually drawing on slices and then having that volume extend to cover a 3D region.

I tried playing around with the “Margin” effect in Segment Editor as well, but haven’t found a way to use it for our specific purposes. Do you have any advice on what my next steps should be?

Thank you for your time, we really appreciate your help!

Best,  
Maharshi

---

<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:** [November 26, 2021, 12:01am UTC](https://discourse.slicer.org/t/slicerrt-defining-margins/20776/4 "2021-11-26T00:01:56Z")

</div>

> [@Maharshi\_Panchal](#):
>
> I tried playing around with the “Margin” effect in Segment Editor as well, but haven’t found a way to use it for our specific purposes.

Can you describe what your specific purpose is?

When you tried the Margin effect, what did you do? what did you expect to happen? what happened instead?

---

<div class="post-metadata">

**Author:** ![Maharshi\_Panchal](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/maharshi_panchal/32/13236_2.png) [@Maharshi\_Panchal](https://discourse.slicer.org/u/Maharshi_Panchal)\
**Post date:** [December 3, 2021, 9:47pm UTC](https://discourse.slicer.org/t/slicerrt-defining-margins/20776/5 "2021-12-03T21:47:04Z")

</div>

Our goal is to have a radiation oncologist define tumor margins on CT scans loaded into Slicer. With the margin effect, I was hoping to find a way to manually annotate the scan and create a 3D “blob” that defines the margins of the tumor.

We have tried using the “draw” effect, but this annotation doesn’t allow us to create a 3D margin.

Any suggestions?  
Thank you.

---

<div class="post-metadata">

**Author:** ![KSC\_IA](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ksc_ia/32/18357_2.png) [@KSC\_IA](https://discourse.slicer.org/u/KSC_IA)\
**Post date:** [February 10, 2023, 11:53am UTC](https://discourse.slicer.org/t/slicerrt-defining-margins/20776/6 "2023-02-10T11:53:44Z")

</div>

Hi @Maharshi_Panchal

I understand your problem. 3DSlicer works a little differently compared to Treatment Planning Systems (TPS). To do what you want to do, follow the following steps:

1. Make a segmentation in Segment Editor (ensure that you scroll down and check that in ‘Modify other segments’ - ‘Allow Overlap’ is selected) - For the purpose of this example, name it ‘Segment\_1’.
2. Add another segmentation (Segment\_2) and copy ‘Segment\_1’ using Logical Operators using the ‘Copy’ function
3. Now you can add a margin of your choice using the ‘Margin’ function on Segment\_2.

This is a different workflow from most TPS’s, where we use a ‘create margin from…’ function to add a margin to an existing segmentation (we call them contours, but that’s just semantics).

FYI @Maharshi_Panchal …I can confirm that the margin addition function is a rolling-ball, isotropic margin,

Hope that helps!
