Extracting transfer function values after Volume rendering in 3D Slicer

I render a NifTI volume using ‘Volume rendering’ module in 3D Slicer as shown in the figure below. However, I would like to replicate exactly the same using python and VTK without using 3D Slicer. For that I need to extract the values of the transfer function used for rendering the volume. Could anoyone let me know how I can achieve that in 3D Slicer?

Sure, the code’s all in the Volume Rendering Module Displayable Manager. Of course consider building on the Slicer code and contributing back improvements if you can.

1 Like