Geometry

class odl.applications.tomo.geometry.geometry.Geometry(ndim, motion_part, detector, translation=None, **kwargs)[source]

Bases: object

Abstract geometry class.

A geometry is described by

  • a detector,

  • a set of detector motion parameters,

  • a function mapping motion parameters to the location of a reference point (e.g. the center of the detector surface),

  • a rotation applied to the detector surface, depending on the motion parameters,

  • a mapping from the motion and surface parameters to the detector pixel direction to the source,

  • optionally a mapping from the motion parameters to the source position,

  • optionally a global translation of the geometry (shift of the origin)

For details, check the online docs.

__init__(ndim, motion_part, detector, translation=None, **kwargs)[source]

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_partRectPartition

Partition for the set of “motion” parameters.

detectorDetector

The detector of this geometry.

translationarray-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 length ndim

Other Parameters

check_boundsbool, optional

If True, methods computing vectors check input arguments. Checks are vectorized and add only a small overhead. Default: True