color volume without volumeproperty.setColor


I have a MRI scan that i have applied lut with proper windowing, when i try to volume render this colored MRI i still get grayscale volume.

i have tried using volumeProperty.SetIndependentComponents(False) but then i get error that

“If IndependentComponents is Off in the volume property, then the data must have either 2 or 4 component scalars. The input data has 3 component(s).”

is there a way to color the volume from the color that the data has and with out setting volumeproperty.setColor


Image display pipeline and volume rendering pipelines are indepdendent. Setting a LUT for image display does not affect volume rendering in any way. You need to set the color transfer function in the volume rendering mapper if you want to see colored volueme rendering.