Creating volumeNode with scalars as RGB

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?

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.

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

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

1 Like