ConeBeamGeometry.__getitem__

ConeBeamGeometry.__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], [1, 1], [20, 20])
>>> geom = odl.tomo.ConeBeamGeometry(apart, dpart, 50, 100, pitch=2)

Extract sub-geometry with every second angle:

>>> geom[::2]
ConeBeamGeometry(
    nonuniform_partition(
        [ 0.5,  2.5],
        min_pt=0.0, max_pt=4.0
    ),
    uniform_partition([-1., -1.], [ 1.,  1.], (20, 20)),
    src_radius=50.0,
    det_radius=100.0,
    pitch=2.0
)