Detector¶
- class odl.tomo.geometry.detector.Detector(partition, space_ndim=None, check_bounds=True)[source]¶
Bases:
objectAbstract 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.
- Attributes:
check_boundsIf
True, methods computing vectors check input arguments.gridSampling grid of the parameters.
ndimNumber of dimensions of the parameters (= surface dimension).
paramsSurface parameter set of this detector.
partitionPartition of the detector parameter set into subsets.
shapeNumber of subsets (pixels) of the detector per axis.
sizeTotal number of pixels.
space_ndimNumber of dimensions of the embedding space.
Methods
surface(param)Parametrization of the detector reference surface.
surface_deriv(param)Partial derivative(s) of the surface parametrization.
surface_measure(param)Density function of the surface measure.
surface_normal(param)Unit vector perpendicular to the detector surface at
param.- __init__(partition, space_ndim=None, check_bounds=True)[source]¶
Initialize a new instance.
- Parameters:
- partition
RectPartition 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.
- partition