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 (sdd:float, height:int, width:int, delx:float, dely:float,
           x0:float, y0:float, reorient:<built-
           inmethodtensoroftypeobjectat0x7f8687e91080>,
           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
sdd float Source-to-detector distance (i.e., focal length)
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
reorient tensor Frame-of-reference change matrix
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 (extrinsic:diffdrr.pose.RigidTransform,
                   calibration:diffdrr.pose.RigidTransform)

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