# Segmentation scheme

**URL:** <https://discourse.slicer.org/t/segmentation-scheme/24612>\
**Category:** Support\
**Tags:** build, feature, segmentation, dicom, 3d-model\
**Created:** [August 3, 2022, 6:16am UTC](https://discourse.slicer.org/t/segmentation-scheme/24612 "2022-08-03T06:16:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![radiodid](https://avatars.discourse-cdn.com/v4/letter/r/9e8a1a/32.png) [@radiodid](https://discourse.slicer.org/u/radiodid)\
**Post date:** [August 3, 2022, 6:16am UTC](https://discourse.slicer.org/t/segmentation-scheme/24612/1 "2022-08-03T06:16:57Z")

</div>

I need to perform the same segmentation example on a huge number of images. Is there a way to create a common sample that I could use every time for different images?

Sorry if this is somewhere on the forum, but I couldn’t find it

---

<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:** [August 3, 2022, 1:47pm UTC](https://discourse.slicer.org/t/segmentation-scheme/24612/2 "2022-08-03T13:47:30Z")

</div>

If you mean you want to use a consistent set of names/colors for the segmentations, then just create an empty segmentation with the names you want and save it as a .seg.nrrd. Reload it for each new volume you want to segment.

---

<div class="post-metadata">

**Author:** ![sannpeterson](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sannpeterson/32/10892_2.png) [@sannpeterson](https://discourse.slicer.org/u/sannpeterson)\
**Post date:** [August 4, 2022, 1:36am UTC](https://discourse.slicer.org/t/segmentation-scheme/24612/3 "2022-08-04T01:36:45Z")

</div>

What do you use as the master volume when creating an empty segmentation?

---

<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:** [August 4, 2022, 1:43pm UTC](https://discourse.slicer.org/t/segmentation-scheme/24612/4 "2022-08-04T13:43:46Z")

</div>

You don’t need a master volume if all you want to do is create the list of names/colors. You can set the master volume and when you load each dataset (you may need to also set the geometry before segmenting).

---

<div class="post-metadata">

**Author:** ![sannpeterson](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sannpeterson/32/10892_2.png) [@sannpeterson](https://discourse.slicer.org/u/sannpeterson)\
**Post date:** [August 10, 2022, 9:48pm UTC](https://discourse.slicer.org/t/segmentation-scheme/24612/5 "2022-08-10T21:48:36Z")

</div>

I can’t figure out how to create a list of labels and colors without having to set a master volume. Do you mind walking me through the step? I would greatly appreciate it!

---

<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:** [August 11, 2022, 3:07pm UTC](https://discourse.slicer.org/t/segmentation-scheme/24612/6 "2022-08-11T15:07:29Z")

</div>

Sorry, I wasn’t really clear. What I meant was that you don’t need to save the master volume you can just save the empty segmentation file with the segments set up with names and colors. You do need to have a master volume for reference because it’s used to define the geometry of the segmentation (although you can change it later if you need to).

---

<div class="post-metadata">

**Author:** ![radiodid](https://avatars.discourse-cdn.com/v4/letter/r/9e8a1a/32.png) [@radiodid](https://discourse.slicer.org/u/radiodid)\
**Post date:** [August 11, 2022, 3:48pm UTC](https://discourse.slicer.org/t/segmentation-scheme/24612/7 "2022-08-11T15:48:29Z")

</div>

Please tell me how can I save it in the master volume or edit it later in the master volume?

---

<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:** [August 11, 2022, 5:15pm UTC](https://discourse.slicer.org/t/segmentation-scheme/24612/8 "2022-08-11T17:15:41Z")

</div>

What I mean is that you can load up an example volume of the type you want to segment and use it as the master volume to create a segmentation. You can set the names, colors, and other properties of the segments you want in your scheme. Then save the segmentation as a .seg.nrrd file that you can then load along with each volume you want to segment. If that’s not helping perhaps I’m not understanding your question.

---

<div class="post-metadata">

**Author:** ![sannpeterson](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sannpeterson/32/10892_2.png) [@sannpeterson](https://discourse.slicer.org/u/sannpeterson)\
**Post date:** [August 12, 2022, 2:33am UTC](https://discourse.slicer.org/t/segmentation-scheme/24612/9 "2022-08-12T02:33:58Z")

</div>

Thanks so much! You have no idea how much time you have saved me 😃
