astra_data¶
- odl.tomo.backends.astra_setup.astra_data(astra_geom, datatype, data=None, ndim=2, allow_copy=False)[source]¶
- Create an ASTRA data object. - Parameters:
- astra_geomdict
- ASTRA geometry object for the data creator, must correspond to the given - datatype.
- datatype{'volume', 'projection'}
- Type of the data container. 
- dataDiscretizedSpaceElementornumpy.ndarray, optional
- Data for the initialization of the data object. If - None, an ASTRA data object filled with zeros is created.
- ndim{2, 3}, optional
- Dimension of the data. If - datais provided, this parameter has no effect.
- allow_copybool, optional
- If - True, allow copying of- data. This means that anything written by ASTRA to the returned object will not be written to- data.
 
- Returns:
- idint
- Handle for the new ASTRA internal data object.