ConeBeamGeometry.det_axes¶
- ConeBeamGeometry.det_axes(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.
- anglesfloat or
- Returns:
- axes
numpy.ndarray Unit vectors along which the detector is aligned. If
angleis a single parameter, the returned array has shape(2, 3), otherwisebroadcast(*angles).shape + (2, 3).
- axes
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)