Generate DRRs from a 3DCT. Distance paramters in Python

Hi,

I have another question about the computation of DRRs in 3D slicer. In the GUI of the DRR Image Computation module I can change the isocenter to imager distance. Is it also possible to modify this parameter in a Python script? I haven’t found any command that works in 3D Slicer 5.8.1 so far.

Thanks in advance!

That`s the DrrImageCompulationNode parameter:

Examples:

# DRR image in isocenter plan
# Set isocenter imager distance == 0 mm
rtImageParameters.SetIsocenterImagerDistance(0)
# Set isocenter imager distance == 350 mm
rtImageParameters.SetIsocenterImagerDistance(350)

You should see how images markups change their position as well.

1 Like

Note that if you work with C-arms (not with the EPID of a linear accelerator) then there is a new “Virtual Cath Lab” module in SlicerHeart extension that provides lots of features, including realistic 3D model of the C-arm (mono or biplane), fluoro image simulation, virtual contrast filling, device simulation, time sequences, etc.