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 position

  • d : the center of the detector

  • u : the vector from detector pixel 0 to 1

Parameters:
geometryGeometry

ODL projection geometry from which to create the ASTRA geometry.

Returns:
vectorsnumpy.ndarray

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

References