detector

Set up the 7 degrees-of-freedom parameters for the C-arm
Tip

The Detector is usually initialized in the DRR module and shouldn’t need to be called directly.


source

Detector

 Detector (sdr:float, height:int, width:int, delx:float, dely:float,
           x0:float, y0:float, n_subsample:int|None=None,
           reverse_x_axis:bool=False)

Construct a 6 DoF X-ray detector system. This model is based on a C-Arm.

Type Default Details
sdr float Source-to-detector radius (half of the source-to-detector distance)
height int Height of the X-ray detector
width int Width of the X-ray detector
delx float Pixel spacing in the X-direction
dely float Pixel spacing in the Y-direction
x0 float Principal point X-offset
y0 float Principal point Y-offset
n_subsample int | None None Number of target points to randomly sample
reverse_x_axis bool False If pose includes reflection (in E(3) not SE(3)), reverse x-axis

source

Detector.forward

 Detector.forward (pose:diffdrr.pose.RigidTransform)

Create source and target points for X-rays to trace through the volume.


source

diffdrr_to_deepdrr

 diffdrr_to_deepdrr (euler_angles)