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