Visualization of a mhd color file

Dear All,

Could you please provide a VTK script to read and visualize in color a .mhd file of MET_UCHAR_ARRAY of 3 dimensions (RGB)?

Thanks,

Luis Gonçalves

As a starter you may like to look at these examples: https://lorensen.github.io/VTKExamples/site/Cxx/#medical these all use .mhd files. Also https://lorensen.github.io/VTKExamples/site/Cxx/Visualization/FlyingFrogSkinAndTissue/ may give you more ideas, in this example the individual organs are assigned different colours. Addidionally look at: https://lorensen.github.io/VTKExamples/site/Cxx/VolumeRendering/RayCastIsosurface/

Sorry, I forget that I want my examples in Python. Thanks.

If you look at the code on the web page there will be a link to a Python example, if it exists. From memory I think there are corresponding Python examples for most of those examples that I gave you.