Detector

class odl.applications.tomo.geometry.detector.Detector(partition, space_ndim=None, check_bounds=True)[source]

Bases: object

Abstract detector class.

A detector is described by

  • a set of parameters for surface parametrization (including sampling),

  • a function mapping a surface parameter to the location of a detector point relative to its reference point,

  • optionally a surface measure function.

Most implementations implicitly assume that an N-dimensional detector is embedded in an (N+1)-dimensional space, but subclasses can override this behavior.

__init__(partition, space_ndim=None, check_bounds=True)[source]

Initialize a new instance.

Parameters

partitionRectPartition

Partition of the detector parameter set (pixelization). It determines dimension, parameter range and discretization.

space_ndimpositive int, optional

Number of dimensions of the embedding space. Default: partition.ndim + 1

check_boundsbool, optional

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