tools.rigid_encoding

Contents

tools.rigid_encoding#

bartorch.tools.rigid_encoding()#

SENSE encoding of a segmented 3D acquisition whose shots each read the object in a pose.

Shot \(s\) reads, on its lines, the object turned by \(R_s\) about the centre of the grid and then shifted by \(d_s\): \(y_s(k) = e^{-2\pi i\, k \cdot d_s}\, \mathcal{F}[S x](R_s^{T} k)\), with \(k\) the wavenumber of the sample in the scanner frame. The coil sensitivities turn and shift with the object, which holds for the small turns of a head between shots. The samples a turn moves off the grid are read by NoncartesianSense; at rest the operator is CartesianSense() over the placed lines, to the accuracy of the non-uniform transform.

Parameters:
  • maps (torch.Tensor) – (coils, z, y, x) coil sensitivities.

  • masks (torch.Tensor) – (shots, z, y) booleans, the lines each shot placed; a line belongs to one shot at most.

  • voxel_size (tuple of float) – (z, y, x) voxel size, in the length unit of shifts.

  • rotations (torch.Tensor, default=None) – (shots, 3, 3) rotation matrices acting on (x, y, z) column vectors; None is the identity for every shot.

  • shifts (torch.Tensor, default=None) – (shots, 3) displacements (x, y, z); None is zero.

  • device (torch.device or str, default=None) – Where the transform runs.

Returns:

From the (z, y, x) image to (coils, z, y, x) k-space, centred, zero off the placed lines.

Return type:

bartorch.linop.LinearOperator

Raises:

ValueError – If masks is not (shots, z, y) or two shots place one line.