Detector (C-Arm)
Set up the 7 degrees-of-freedom parameters for the C-arm
Note, the Detector
is usually initialized in the DRR
module and shouldn’t need to be called directly.
Detector
Detector (height:int, width:int, delx:float, dely:float, n_subsample:int|None=None)
Construct a 6 DoF X-ray detector system. This model is based on a C-Arm.
Type | Default | Details | |
---|---|---|---|
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 | |
n_subsample | int | None | None | Number of target points to randomly sample |
Detector.make_xrays
Detector.make_xrays (sdr:torch.Tensor, rotations:torch.Tensor, translations:torch.Tensor)
Create source and target points for X-rays to trace through the volume.
Type | Details | |
---|---|---|
sdr | torch.Tensor | source-to-detector radius (half of the source-to-detector distance) |
rotations | torch.Tensor | Vector of C-arm rotations (theta, phi, gamma) for azimuthal, polar, and roll angles |
translations | torch.Tensor | Vector of C-arm translations (bx, by, bz) |