ConeBeamGeometry.det_axes

ConeBeamGeometry.det_axes(self, angle)[source]

Return the detector axes tuple at angle.

Parameters
anglesfloat or array-like

Angle(s) in radians describing the counter-clockwise rotation of the detector around axis.

Returns
axesnumpy.ndarray

Unit vectors along which the detector is aligned. If angle is a single parameter, the returned array has shape (2, 3), otherwise broadcast(*angles).shape + (2, 3).

Notes

To get an array that enumerates the detector axes in the first dimension, move the second-to-last axis to the first position:

axes = det_axes(angle) axes_enumeration = np.moveaxis(deriv, -2, 0)