# Volume rendering colorized with segmentation

**URL:** <https://discourse.slicer.org/t/volume-rendering-colorized-with-segmentation/26689>\
**Category:** Development\
**Tags:** segmentation, volume-rendering\
**Created:** [January 18, 2021, 11:12pm UTC](https://discourse.slicer.org/t/volume-rendering-colorized-with-segmentation/26689 "2021-01-18T23:12:45Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [January 19, 2021, 12:26am UTC](https://discourse.slicer.org/t/volume-rendering-colorized-with-segmentation/26689/6 "2021-01-19T00:26:52Z")

</div>

> [@lassoan](#):
>
> It would be nice if you could try if setting the segmentation as labelmap mask for the GPU mapper provides the same results. The advantage would be that we would not need to generate an RGBA volume (faster updates, less memory usage).

Yes, exactly.

This image uses the CT as alpha, so you get nice detail with the coloring, but we should also do the option where the segmentation opacity controls the alpha channel. We’ll need to do the local smoothing / surface fitting in the GPU using the segmentation and the color from the lookup table. This should be effectively the same as building a surface model but faster and with some extra options.

I agree we should think about how we should handle volume rendering from a UI perspective.

[https://dl.dropboxusercontent.com/s/l04gdww0l3ftqs1/RGBA-mouse-segment-render.mp4?dl=0](https://dl.dropboxusercontent.com/s/l04gdww0l3ftqs1/RGBA-mouse-segment-render.mp4?dl=0)

---

_[View the full topic](https://discourse.slicer.org/t/volume-rendering-colorized-with-segmentation/26689)._
