detector_coordinates_1d#
- diffct.analytical.detector_coordinates_1d(num_detectors, detector_spacing, detector_offset=0.0, device=None, dtype=torch.float32)[source]#
Return detector cell centre coordinates along a 1D axis.
The convention matches the CUDA kernels: the detector array is centred,
u[k] = (k - (num_detectors - 1) * 0.5) * detector_spacing + detector_offset.