astra_parallel_3d_geom_to_vec¶
- odl.tomo.backends.astra_setup.astra_parallel_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 parallel beam geometries, see
'parallel3d_vec'in the ASTRA projection geometry documentation.Each row of the returned vectors corresponds to a single projection and consists of
(rayX, rayY, rayZ, dX, dY, dZ, uX, uY, uZ, vX, vY, vZ)
with
ray: the ray directiond: 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