ParallelBeamGeometry

class odl.tomo.geometry.parallel.ParallelBeamGeometry(ndim, apart, detector, det_pos_init, **kwargs)[source]

Bases: Geometry

Abstract 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:
angles

All angles of this geometry as an array.

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.

det_pos_init

Initial position of the detector reference point.

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(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.

apartRectPartition

Partition of the angle set.

detectorDetector

The detector to use in this geometry.

det_pos_initarray-like

Initial position of the detector reference point.

kwargs

Further parameters passed on to Geometry.