astra_conebeam_2d_geom_to_vec¶
- odl.tomo.backends.astra_setup.astra_conebeam_2d_geom_to_vec(geometry)[source]¶
Create vectors for ASTRA projection geometries from ODL geometry.
The 2D vectors are used to create an ASTRA projection geometry for fan beam geometries, see
'fanflat_vec'
in the ASTRA projection geometry documentation.Each row of the returned vectors corresponds to a single projection and consists of
(srcX, srcY, dX, dY, uX, uY)
with
src
: the ray source positiond
: the center of the detectoru
: the vector from detector pixel 0 to 1
- Parameters:
- geometry
Geometry
ODL projection geometry from which to create the ASTRA geometry.
- geometry
- Returns:
- vectors
numpy.ndarray
Array of shape
(num_angles, 6)
containing the vectors.
- vectors
References