# Segmentation resolution

**URL:** <https://discourse.slicer.org/t/segmentation-resolution/1394>\
**Category:** Support\
**Created:** [November 7, 2017, 3:16pm UTC](https://discourse.slicer.org/t/segmentation-resolution/1394 "2017-11-07T15:16:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndFor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andfor/32/822_2.png) [@AndFor](https://discourse.slicer.org/u/AndFor)\
**Post date:** [November 7, 2017, 3:16pm UTC](https://discourse.slicer.org/t/segmentation-resolution/1394/1 "2017-11-07T15:16:53Z")

</div>

Hello  
Can I select the pixel resolution of my segmentation?

is it the same as native image resolution?

thanks

---

<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 7, 2017, 3:32pm UTC](https://discourse.slicer.org/t/segmentation-resolution/1394/2 "2017-11-07T15:32:32Z")

</div>

Binary labelmap representation has the same resolution as the master volume that you select first.

---

<div class="post-metadata">

**Author:** ![AndFor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andfor/32/822_2.png) [@AndFor](https://discourse.slicer.org/u/AndFor)\
**Post date:** [November 7, 2017, 3:52pm UTC](https://discourse.slicer.org/t/segmentation-resolution/1394/3 "2017-11-07T15:52:23Z")

</div>

the 3d result is good, but the segmentation path appear with large pixel

 ![segment](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/c/3cadc408656f44baf404461ae86847ef9721adbd.png)

---

<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 7, 2017, 4:19pm UTC](https://discourse.slicer.org/t/segmentation-resolution/1394/4 "2017-11-07T16:19:01Z")

</div>

Before you start segmenting your volume, use “Crop volume” module to crop it to the minimum necessary size, enable isotropic voxel size (check `Isotropic spacing`), and reduce voxel size (e.g., set `Spacing scale` to 0.5). Use this cropped and resampled volume as master volume for segmentation.

---

<div class="post-metadata">

**Author:** ![AndFor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andfor/32/822_2.png) [@AndFor](https://discourse.slicer.org/u/AndFor)\
**Post date:** [November 7, 2017, 4:29pm UTC](https://discourse.slicer.org/t/segmentation-resolution/1394/5 "2017-11-07T16:29:23Z")

</div>

🙂

 ![Capture](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/a/ea6d446a7b0a04281b3725edfdd052c3eeeff259.png)

---

<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 7, 2017, 6:59pm UTC](https://discourse.slicer.org/t/segmentation-resolution/1394/6 "2017-11-07T18:59:31Z")

</div>

I see a cropping ROI but it seems that you haven’t actually cropped the volume. Was that intentional? If you use a smaller ROI then you can have much finer resolution volume (so you can segment small, thin structures very nicely) without having a large volume. Also note that you can smooth the segment (using Smoothing effect) and/or you can apply smoothing during labelmap-\>3D surface conversion (using `Show 3D` button’s `Set surface smoothing` option).

---

<div class="post-metadata">

**Author:** ![AndFor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andfor/32/822_2.png) [@AndFor](https://discourse.slicer.org/u/AndFor)\
**Post date:** [November 8, 2017, 9:58am UTC](https://discourse.slicer.org/t/segmentation-resolution/1394/7 "2017-11-08T09:58:53Z")

</div>

Yes it is true

re-done

 ![Capture1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/d/1d2a6f4e9ac4cdc14a687dbc1adde96ecf1b38fd.png)

---

<div class="post-metadata">

**Author:** ![AndFor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andfor/32/822_2.png) [@AndFor](https://discourse.slicer.org/u/AndFor)\
**Post date:** [November 8, 2017, 12:57pm UTC](https://discourse.slicer.org/t/segmentation-resolution/1394/8 "2017-11-08T12:57:41Z")

</div>

an off topic question: if I want to use this selection, BUT INVERTED, to create a mask in all volume (then to mask all that is outside of this selection)… can i dublicate the selection? and invert it?

---

<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 8, 2017, 2:34pm UTC](https://discourse.slicer.org/t/segmentation-resolution/1394/9 "2017-11-08T14:34:23Z")

</div>

You can use `Logical operators` effect to copy and invert segments.

---

<div class="post-metadata">

**Author:** ![AndFor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andfor/32/822_2.png) [@AndFor](https://discourse.slicer.org/u/AndFor)\
**Post date:** [November 8, 2017, 5:23pm UTC](https://discourse.slicer.org/t/segmentation-resolution/1394/10 "2017-11-08T17:23:13Z")

</div>

yes thanks, worked perfectly

for some structures is easiest to select the structure, then invert and mask all outside

---

<div class="post-metadata">

**Author:** ![James\_Goldfarb](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/james_goldfarb/32/15318_2.png) [@James\_Goldfarb](https://discourse.slicer.org/u/James_Goldfarb)\
**Post date:** [November 21, 2022, 7:32pm UTC](https://discourse.slicer.org/t/segmentation-resolution/1394/11 "2022-11-21T19:32:51Z")

</div>

I am working with a scene with several volumes with different slice thicknesses. I’m trying to understand the resulting number of pixels in the segmentation/segments saved as nrrd.

Above it is stated that “Binary labelmap representation has the same resolution as the master volume that you select first.” Is that in the Segmentation Module?

Assuming it is the Segmentation Module, shouldn’t the scene hierarchy determine the initial selection? It seems random to me, sometimes set by scene hierarchy and sometimes set by last selection.

I would like to have everything in one scene and have the segmentation number of pixels match my volume. Any tips with multiple volumes?

One problem that I encountered is that the minimum pixel value (by segment statistics) is often lower than my threshold value. I assume due to interpolation. How is thresholding performed when volume number of pixels \< segment number of pixels?

Thanks in advance.

---

<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 25, 2022, 6:32am UTC](https://discourse.slicer.org/t/segmentation-resolution/1394/12 "2022-11-25T06:32:36Z")

</div>

> [@James\_Goldfarb](#):
>
> Above it is stated that “Binary labelmap representation has the same resolution as the master volume that you select first.” Is that in the Segmentation Module?

In Segment Editor module.

> [@James\_Goldfarb](#):
>
> Assuming it is the Segmentation Module, shouldn’t the scene hierarchy determine the initial selection? It seems random to me, sometimes set by scene hierarchy and sometimes set by last selection.

It is the source volume that is chosen first in “Segment Editor” module. There is no scene hierarchy there. The choice is arbitrary, but it is not random, but this is what most users would expect. You can change the geometry anytime by clicking on the [“Specify geometry” button](https://slicer.readthedocs.io/en/latest/user_guide/modules/segmenteditor.html#segmentation-is-not-accurate-enough).

> [@James\_Goldfarb](#):
>
> I would like to have everything in one scene and have the segmentation number of pixels match my volume. Any tips with multiple volumes?

You can move around segments with any geometry between segmentations. They will be automatically resampled as late as possible (when the segmentation is modified or saved to disk). You can force resampling or changing resolution using “Specify geometry”.

> [@James\_Goldfarb](#):
>
> One problem that I encountered is that the minimum pixel value (by segment statistics) is often lower than my threshold value. I assume due to interpolation. How is thresholding performed when volume number of pixels \< segment number of pixels?

The source volume is always resampled to the current segmentation’s geometry.
