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 direction

  • d : the center of the detector

  • u : the vector from detector pixel (0,0) to (0,1)

  • v : the vector from detector pixel (0,0) to (1,0)

Parameters
geometryGeometry

ODL projection geometry from which to create the ASTRA geometry.

Returns
vectorsnumpy.ndarray

Array of shape (num_angles, 12) containing the vectors.

References