ParallelBeamGeometry¶
- class odl.tomo.geometry.parallel.ParallelBeamGeometry(ndim, apart, detector, det_pos_init, **kwargs)[source]¶
Bases:
GeometryAbstract parallel beam geometry in 2 or 3 dimensions.
Parallel geometries are characterized by a virtual source at infinity, such that a unit vector from a detector point towards the source (
det_to_src) is independent of the location on the detector.For details, check the online docs.
- Attributes:
anglesAll angles of this geometry as an array.
check_boundsIf
True, methods computing vectors check input arguments.det_gridSampling grid of
det_params.det_paramsContinuous detector parameter range, an
IntervalProd.det_partitionPartition of the detector parameter set into subsets.
det_pos_initInitial position of the detector reference point.
detectorDetector representation of this geometry.
gridJoined sampling grid for motion and detector.
implementation_cacheDictionary acting as a cache for this geometry.
motion_gridSampling grid of
motion_params.motion_paramsContinuous motion parameter range, an
IntervalProd.motion_partitionPartition of the motion parameter set into subsets.
ndimNumber of dimensions of the geometry.
paramsJoined parameter set for motion and detector.
partitionJoined parameter set partition for motion and detector.
translationShift of the origin of this geometry.
Methods
det_point_position(mparam, dparam)Return the detector point at
(mparam, dparam).det_refpoint(angle)Return the position(s) of the detector ref.
det_to_src(angle, dparam)Direction from a detector location to the source.
rotation_matrix(mparam)Return the rotation matrix to the system state at
mparam.- __init__(ndim, apart, detector, det_pos_init, **kwargs)[source]¶
Initialize a new instance.
- Parameters:
- ndim{2, 3}
Number of dimensions of this geometry, i.e. dimensionality of the physical space in which this geometry is embedded.
- apart
RectPartition Partition of the angle set.
- detector
Detector The detector to use in this geometry.
- det_pos_init
array-like Initial position of the detector reference point.
- kwargs
Further parameters passed on to
Geometry.