# Labelmap volume rendering preset (default) is not available from preset dropdown

**URL:** https://discourse.slicer.org/t/labelmap-volume-rendering-preset-default-is-not-available-from-preset-dropdown/20375
**Category:** Support
**Tags:** binarylabelmap, volume-rendering, labelmap
**Created:** [October 27, 2021, 4:05am UTC](https://discourse.slicer.org/t/labelmap-volume-rendering-preset-default-is-not-available-from-preset-dropdown/20375 "2021-10-27T04:05:13Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![DIV](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/div/32/12816_2.png) [@DIV](https://discourse.slicer.org/u/DIV)
#### Post date: [October 27, 2021, 4:05am UTC](https://discourse.slicer.org/t/labelmap-volume-rendering-preset-default-is-not-available-from-preset-dropdown/20375/1 "2021-10-27T04:05:13Z")

</div>

If I create a volume from the **Simple Region Growing Segmentation** module, then I suppose it is a binary labelmap.  
It can be viewed in 3D through the **Volume Rendering** module. By default this comes up with a kind of colourmap of repeating rainbow stripes (I am not sure if this has a formal name in Slicer), as seen in the _Advanced_ panel. Choosing a different volume-rendering Preset from the drop-down list in the _Display_ panel is possible. However, after doing so I didn’t see an obvious way to subsequently choose the original rainbow-stripe preset.  
Is there a convenient way to choose the rainbow-stripe preset later on?  
Either way, should this be added to the standard drop-down list of volume-rendering presets?  
—DIV

---

<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: [October 27, 2021, 4:42am UTC](https://discourse.slicer.org/t/labelmap-volume-rendering-preset-default-is-not-available-from-preset-dropdown/20375/2 "2021-10-27T04:42:58Z")

</div>

Segmentations are not immediately visible via volume rendering, you need to export them as label maps from Segmentation module. See this diagram for data type relationships in Slicer:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/6/361e152f1f6d00e6f91da5a1cbc822a5ccea6f37.jpeg)

I am not sure what repeating rainbow stripes pattern is. Normally labelmaps are displayed loaded with the Generic label lookup table. (It would be good if you can add a screenshot to your descriptions, to make sure we are on the same page).

Those volume rendering presets are not for labelmaps, but volumes that has continuous image intensities. I don’t think they will perform well for discrete labelmaps. If you want, you can choose the box that says “Synchronize with Volumes module” and choose the “Label” lookup table from volume module (or any other lookup table that makes sense for labelmaps).

---

<div class="post-metadata">

### Author: ![DIV](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/div/32/12816_2.png) [@DIV](https://discourse.slicer.org/u/DIV)
#### Post date: [October 27, 2021, 5:45am UTC](https://discourse.slicer.org/t/labelmap-volume-rendering-preset-default-is-not-available-from-preset-dropdown/20375/3 "2021-10-27T05:45:06Z")

</div>

> [@muratmaga](#):
>
> I am not sure what repeating rainbow stripes pattern is.

The multicoloured/rainbow stripes pattern seems to be the `Labels` Lookup Table, when comparing to the _Display_ panel in the **Volumes** module. On this basis I have just managed to get it back as a volume rendering setting by clicking the `Synchronize with Volumes module` tick-box in the **Volume Rendering** module.  
—DIV

---

<div class="post-metadata">

### Author: ![DIV](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/div/32/12816_2.png) [@DIV](https://discourse.slicer.org/u/DIV)
#### Post date: [October 27, 2021, 6:21am UTC](https://discourse.slicer.org/t/labelmap-volume-rendering-preset-default-is-not-available-from-preset-dropdown/20375/4 "2021-10-27T06:21:02Z")

</div>

Hello, muratmaga.  
Thank-you for your suggestions.

> [@muratmaga](#):
>
> Those volume rendering presets are not for labelmaps, but volumes that has continuous image intensities. I don’t think they will perform well for discrete labelmaps. If you want, you can choose the box that says “Synchronize with Volumes module” and choose the “Label” lookup table from volume module (or any other lookup table that makes sense for labelmaps).

I guess you’re right, but the output of the **Simple Region Growing Segmentation** module is called a “Volume”, and it seems to show up as a kind of “Volume” in the **Data** , **Volumes** and **Volume Rendering** modules.

I seem to have managed to produce 3D representations OK.

For _segments_ I just click the big `Show 3D` button in the main (topmost) panel of the **Segment Editor** module. This allows the option of smoothing the graphical display.

For the _labelmap volumes_ I can display them in 3D through the **Volume Rendering** module; it does need a suitable volume rendering setting to make sense though, and the default (as configured when the labelmap volume is first created), which seems to be that multicoloured/rainbow stripes pattern, _i.e._ the `Labels` Lookup Table, works fairly well. (_I got some partially satisfactory results by heavily modifying a preset set of volume rendering settings, such as `CT-AAA`. The reason why none of the preset volume rendering settings work well with the labelmap volume is precisely because they all seem to be designed for volumes that have continuous image intensities, as you referred to._) The downside is that there is no option for smoothing the graphical rendering.  
Further to that last point (not part of my original query), my next task would be to figure out how to **export the labelmap volume as an STL file**. AFAIK this can’t be done directly. Although I haven’t yet done it, I am envisaging that I need to first convert the labelmap volume into a segment, which appears to be possible by one of two workflows:

- invoking the `Convert labelmap to segmentation node` option of the context menu generated when right-clicking on the name of a labelmap volume in the _Subject hierarchy_ tab of the **Data** module; and(_?_)/or(_?_)
- selecting the “Import” `Operation` in the _Export/import models and labelmaps_ panel of the **Segmentations** module.

Once the labelmap volume has been converted to a segment (perhaps within a new segmentation), then I expect I should be able to view it in 3D, optionally with a smoothed graphical depiction, in the same manner as for any other segment (as I described above).

So in relation to your flowchart/diagramme, perhaps there could be an arrow drawn from top right (Labelmap volume) to bottom left (Volume rendering)?  
Regarding your other comments, it may be pertinent to emphasise that while the **Segment Editor** module directly creates `Segment` objects, the **Simple Region Growing Segmentation** module directly creates `Volume` objects (of `LabelMapVolume` subtype). That may be unexpected, considering the name of the latter module.

—DIV

---

<div class="post-metadata">

### Author: ![DIV](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/div/32/12816_2.png) [@DIV](https://discourse.slicer.org/u/DIV)
#### Post date: [October 27, 2021, 6:28am UTC](https://discourse.slicer.org/t/labelmap-volume-rendering-preset-default-is-not-available-from-preset-dropdown/20375/5 "2021-10-27T06:28:46Z")

</div>

> [@DIV](#):
>
> The multicoloured/rainbow stripes pattern seems to be the `Labels` Lookup Table, when comparing to the _Display_ panel in the **Volumes** module. On this basis I have just managed to get it back as a volume rendering setting by clicking the `Synchronize with Volumes module` tick-box in the **Volume Rendering** module.

Although the above solved the immediate problem, I still think there seems to be merit in ensuring that the corresponding `Labels` volume rendering settings are available as a Preset in the drop-down list in the _Display_ panel.

—DIV

---

<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: [October 27, 2021, 4:07pm UTC](https://discourse.slicer.org/t/labelmap-volume-rendering-preset-default-is-not-available-from-preset-dropdown/20375/6 "2021-10-27T16:07:16Z")

</div>

> [@DIV](#):
>
> I guess you’re right, but the output of the **Simple Region Growing Segmentation** module is called a “Volume”, and it seems to show up as a kind of “Volume” in the **Data** , **Volumes** and **Volume Rendering** modules.

Sorry, my mistake. I thought you were using the seed based region growing from the Segment Editor, not the old legacy module. Yes, that outputs a labelmap directly (not a segmentation node), and you can use volume rendering module directly. Segment(s) generated by the `Segment Editor` can be visualized in 3D as a surface model (not as a volume rendering). For those, if you want to use volume rendering you will have to convert them to labelmap through the import/export tab of the `Segmentations` module.

Also if you use the Segment Editor and its associated tools, you can directly export your segmentation as an stl or any other 3D format Slicer supports. (Again use the import/export tab of `segmentations` module). Currently you have couple options:

1. Continue using legacy tools (that are no longer supported). E.g. Model maker will take a label map and export a 3D surface.
2. Continue doing what you do, but use the `Segmentations` modules import/export tool to import your label map first as a segmentation, and then export as a 3D model.
3. Switch to using `Segment Editor` for your segmentations tasks.

---

<div class="post-metadata">

### Author: ![DIV](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/div/32/12816_2.png) [@DIV](https://discourse.slicer.org/u/DIV)
#### Post date: [October 28, 2021, 12:52am UTC](https://discourse.slicer.org/t/labelmap-volume-rendering-preset-default-is-not-available-from-preset-dropdown/20375/7 "2021-10-28T00:52:42Z")

</div>

> [@muratmaga](#):
>
> […] options:
> 
> 1. Continue using legacy tools (that are no longer supported). […]

Hi, Muratmaga.  
Essentially there were two problems.

- There was no obvious indication to me (as a simple user, not a developer) that the **Simple Region Growing Segmentation** module is a _legacy_ tool. I suppose it’s mentioned somewhere online, but I didn’t notice it in the [current user guide for the module](https://slicer.readthedocs.io/en/latest/user_guide/modules/simpleregiongrowingsegmentation.html) either. Maybe(?) there isn’t a need for cues in the software itself, but I do think this sort of status should be clearly indicated in the user guide. For example, a statement like, “ **_This module is retained for legacy workflows; for new analyses it is recommended to instead use module X_** ” at the top of the page. (Or similar: see this [documentation for the NORMINV function in Excel](https://support.microsoft.com/en-us/office/norminv-function-87981ab8-2de0-4cb0-b1aa-e21d4cb879b8), for instance.) There is a set of `Legacy` items in the drop-down _Modules_ menu on the toolbar, but it doesn’t contain the **Simple Region Growing Segmentation** module, nor the **Annotations** module (which I am given to understand is also superseded by the **Markups** module).
- I think I had an incorrect preconception of what the **Simple Region Growing Segmentation** module does. After spending some time on it, it seems that essentially it performs _thresholding_, in which the key differences from the _Threshold_ effect in the **Segment Editor** module are that (i) there is [optionally] a prior volumetric smoothing effect, and (ii) the upper and lower limits for the thresholding segmentation are computed ‘automatically’ based upon iterative analysis of the intensities around certain seed points (defined through _fiducial markers_). Is that right? And are you saying that the _Grow from seeds_ effect in the **Segment Editor** module is roughly equivalent to the _Simple Region Growing Segmentation_? The only reasons I tried out the _Simple Region Growing Segmentation_ is because I wasn’t completely satisfied with the results I had so far from the **Segment Editor** module, and I thought that the **Simple Region Growing Segmentation** module offered something different. The **Segment Editor** module is much more user friendly, though.

—DIV

---

<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: [October 28, 2021, 1:01am UTC](https://discourse.slicer.org/t/labelmap-volume-rendering-preset-default-is-not-available-from-preset-dropdown/20375/8 "2021-10-28T01:01:27Z")

</div>

I personally never used the simple region growing segmentation module before, so I can’t really compare to the grow from the seeds in Segment Editor. All I can the latter works really well for some cases (e.g., [New Segment Editor feature: masking in Grow from seeds effect](https://discourse.slicer.org/t/new-segment-editor-feature-masking-in-grow-from-seeds-effect/4978)).

I can second the request to move simple region growing and annotations to the legacy folder.

---

<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: [October 29, 2021, 4:52am UTC](https://discourse.slicer.org/t/labelmap-volume-rendering-preset-default-is-not-available-from-preset-dropdown/20375/9 "2021-10-29T04:52:10Z")

</div>

Simple region growing segmentation module is not bad, it is just not relevant anymore, since the Segment Editor has much better tools now. We recommend the Segment Editor module everywhere (forum, tutorials, documentation), while not the other modules that we don’t expect to work any better (and they are not as convenient to use as the ones in the Segment Editor). I guess further de-emphasizing the irrelevant modules by moving them to legacy category could make sense. I’ve submitted a pull request for this: [ENH: Move RobustStatisticsSegmenter and SimpleRegionGrowingSegmentation modules to legacy category by lassoan · Pull Request #5971 · Slicer/Slicer · GitHub](https://github.com/Slicer/Slicer/pull/5971)
