# Creating volumeNode with scalars as RGB

**URL:** <https://discourse.slicer.org/t/creating-volumenode-with-scalars-as-rgb/4359>\
**Category:** Development\
**Tags:** extensions-manager\
**Created:** [October 11, 2018, 12:30pm UTC](https://discourse.slicer.org/t/creating-volumenode-with-scalars-as-rgb/4359 "2018-10-11T12:30:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niels](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@Niels](https://discourse.slicer.org/u/Niels)\
**Post date:** [October 11, 2018, 12:30pm UTC](https://discourse.slicer.org/t/creating-volumenode-with-scalars-as-rgb/4359/1 "2018-10-11T12:30:38Z")

</div>

Apart from the colormaps (that I use allot) would it be possible to create a volume which specifies an RGB color? Currently my volume has only one scalar, but maybe I can use 3 scalars to describe and display RGB?

---

<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 11, 2018, 12:38pm UTC](https://discourse.slicer.org/t/creating-volumenode-with-scalars-as-rgb/4359/2 "2018-10-11T12:38:05Z")

</div>

You can have RGB volume (vtkMRMLVectorVolumeNode), but you cannot do much with it other than viewing, saving, and loading. Most processing operations require single-component scalar volume.

---

<div class="post-metadata">

**Author:** ![Niels](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@Niels](https://discourse.slicer.org/u/Niels)\
**Post date:** [October 11, 2018, 5:46pm UTC](https://discourse.slicer.org/t/creating-volumenode-with-scalars-as-rgb/4359/3 "2018-10-11T17:46:21Z")

</div>

Hi lassoan, Ok! I will take a look at that node. Do you know of any codeexamples?

---

<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:** [October 11, 2018, 6:09pm UTC](https://discourse.slicer.org/t/creating-volumenode-with-scalars-as-rgb/4359/4 "2018-10-11T18:09:26Z")

</div>

If you load a series of png or jpeg files they will be vector volumes.
