split_measurements#
- deepinv.physics.split_measurements(y, physics, num_subsets)[source]#
Splits tomography measurements into angular subsets.
Note
The expected measurement layout depends on the tomography physics used:
deepinv.physics.Tomography:[B, C, N, A], whereAis the angle axis andNis the detector axis.deepinv.physics.TomographyWithAstra:[B, C, A, N]in 2D and[B, C, V, A, N]in 3D, whereVandNare the detector axes.deepinv.physics.PET:[B, C, N, A]in 2D and[B, C, N, A, P]in 3D for the default RVP sinogram order, whereC = 1,Nis the radial detector axis,Ais the view axis, andPis the plane axis.
- Parameters:
y (torch.Tensor) – full measurement tensor.
physics (deepinv.physics.LinearPhysics) – tomography physics.
num_subsets (int) – number of subsets.
- Returns:
measurements as a
deepinv.utils.TensorList.- Return type: