DivergentBeamGeometry¶
- class odl.tomo.geometry.geometry.DivergentBeamGeometry(ndim, motion_part, detector, translation=None, **kwargs)[source]¶
Bases:
Geometry
Abstract divergent beam geometry class.
A geometry characterized by the presence of a point-like ray source.
In 2D such a geometry is usually called "fan beam geometry", while in 3D one speaks of "cone beam geometries".
- Attributes:
check_bounds
If
True
, methods computing vectors check input arguments.det_grid
Sampling grid of
det_params
.det_params
Continuous detector parameter range, an
IntervalProd
.det_partition
Partition of the detector parameter set into subsets.
detector
Detector representation of this geometry.
grid
Joined sampling grid for motion and detector.
implementation_cache
Dictionary acting as a cache for this geometry.
motion_grid
Sampling grid of
motion_params
.motion_params
Continuous motion parameter range, an
IntervalProd
.motion_partition
Partition of the motion parameter set into subsets.
ndim
Number of dimensions of the geometry.
params
Joined parameter set for motion and detector.
partition
Joined parameter set partition for motion and detector.
translation
Shift of the origin of this geometry.
Methods
det_point_position
(mparam, dparam)Return the detector point at
(mparam, dparam)
.det_refpoint
(mparam)Detector reference point function.
det_to_src
(angle, dparam[, normalized])Vector or direction from a detector location to the source.
rotation_matrix
(mparam)Return the rotation matrix to the system state at
mparam
.src_position
(angle)Source position function.
- __init__(ndim, motion_part, detector, translation=None, **kwargs)¶
Initialize a new instance.
- Parameters:
- ndimpositive int
Number of dimensions of this geometry, i.e. dimensionality of the physical space in which this geometry is embedded.
- motion_part
RectPartition
Partition for the set of "motion" parameters.
- detector
Detector
The detector of this geometry.
- translation
array-like
, optional Global translation of the geometry. This is added last in any method that computes an absolute vector, e.g.,
det_refpoint
. Default: zero vector of lengthndim
- Other Parameters:
- check_boundsbool, optional
If
True
, methods computing vectors check input arguments. Checks are vectorized and add only a small overhead. Default:True