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

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

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:

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).

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

Hello, muratmaga.
Thank-you for your suggestions.

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

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

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.

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 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, 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

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).

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

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

1 Like