flying_focal_spot

odl.tomo.util.source_detector_shifts.flying_focal_spot(angle, apart, shifts)[source]

Flying focal spot shifts for divergent beam geometries. Shifts are defined only for grid points of angular partition. For all other angles nearest neighbor interpolation is used.

Parameters:
anglefloat or array-like

Angle(s) in radians describing the counter-clockwise rotation of source and detector.

apart1-dim. RectPartition

Partition of the angle interval.

shiftssequence of array-like

Each vectors in a sequence represent a subsequent shift relative to the default source position. Vector elements represent shifts along the following directions: det_to_src, tangent to the rotation (projected on a plane perpendicular to rotation axis), rotation axis.