tools.shot_residual

Contents

tools.shot_residual#

bartorch.tools.shot_residual()#

Data residual of image under the shot phases, relative to the placed k-space.

Parameters:
  • kspace (torch.Tensor) – (coils, z, y, x) centred k-space and coil maps.

  • maps (torch.Tensor) – (coils, z, y, x) centred k-space and coil maps.

  • masks (torch.Tensor) – (shots, z, y) booleans, the lines each shot placed.

  • image (torch.Tensor) – (z, y, x) complex image.

  • phases (torch.Tensor) – (shots, z, y, x) phases, in rad.

Returns:

||sum_s M_s F S exp(i phi_s) x - M y|| / ||M y||.

Return type:

float