Adjust Window Label and choice a LUT for a vtkMRMLScalarVolumeNode

Hello everyone.

I’m trying to adjust the window label of a vtkMRMLScalarVolumeNode and to Apply it a Rainbow LUT.

I thought to use the object SetWindowLevelToVolumeProp() of the class volumerendering.logic(). The problem which I am facing is that this function takes as argument a vtkVolumeProperty and I don’t know how to get it from the vtkMRMLScalarVolumeNode.

I wonder also if it is possible to automatic adjust the window label.

Thank you very much.

You can set colormap in the volume’s scalar volume display node.

The volume may also have a volume rendering display node, but that controls how 3D raycasting of the volume is performed and not related to what colormap is used for displaying the volume in slice views.

2 Likes