FanBeamGeometry.__getitem__¶
-
FanBeamGeometry.
__getitem__
(self, indices)[source]¶ Return self[indices].
This is defined by
self[indices].partition == self.partition[indices]
where all other parameters are the same.
Examples
>>> apart = odl.uniform_partition(0, 4, 4) >>> dpart = odl.uniform_partition(-1, 1, 20) >>> geom = odl.tomo.FanBeamGeometry(apart, dpart, 50, 100)
Extract sub-geometry with every second angle:
>>> geom[::2, :] FanBeamGeometry( nonuniform_partition( [ 0.5, 2.5], min_pt=0.0, max_pt=4.0 ), uniform_partition(-1.0, 1.0, 20), src_radius=50.0, det_radius=100.0 )