Maximum Intensity Projection

Hello all,

I would like to create my own scripted module in Slicer3D.
Is it possible to create a button and apply the “Maximum intensity projection” algorithm available in “Volume rendering” on 3D volume using Python (with the same opacity) ?
Thank you for your help,
Best

All features of Slicer are available using Python scripting. Most parameters are stored in nodes of the MRML scene and you can find the relevant class by searching in full text of Slicer source code (search for some text that is shown on screen to find the corresponding widget class, then check which MRML nodes are modified there).

For example, you can choose a raycast technique using vtkMRMLViewNode.SetRaycastTechnique:

viewNode = slicer.util.getNode('View1')
viewNode.SetRaycastTechnique(slicer.vtkMRMLViewNode.MaximumIntensityProjection)

You can find many examples of commonly needed code snippets in the script repository.

1 Like

It works well !
Thank you so much.