From b3393ec49bbe2ffc3eb3b6c7512bb12b8b8d2e52 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 9 Jan 2018 15:45:34 +0100 Subject: Fix comments for postalignment function --- python/astra/functions.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/astra/functions.py b/python/astra/functions.py index b3a470d..5a3d453 100644 --- a/python/astra/functions.py +++ b/python/astra/functions.py @@ -274,11 +274,18 @@ def geom_2vec(proj_geom): def geom_postalignment(proj_geom, factor): - """Returns the size of a volume or sinogram, based on the projection or volume geometry. + """Apply a postalignment to a vector-based projection geometry. + Can be used to model the rotation axis offset. + + For 2D geometries, the argument factor is a single float specifying the + distance to shift the detector (measured in detector pixels). + + For 3D geometries, factor is a pair of floats specifying the horizontal + resp. vertical distances to shift the detector. :param proj_geom: input projection geometry (vector-based only, use astra.geom_2vec to convert conventional projection geometries) :type proj_geom: :class:`dict` - :param factor: Optional axis index to return + :param factor: number of pixels to shift the detector :type factor: :class:`float` """ -- cgit v1.2.3