tools.reconstruct_navigator#
- bartorch.tools.reconstruct_navigator()#
Magnitude images of a navigator’s planes by density-compensated adjoint NUFFT.
Each plane is reconstructed as \(|A^H (w \odot y)|\) over its own trajectory, with \(A\) the non-uniform transform of
bartorch.linop.NUFFT, and several coils are combined by root sum of squares.- Parameters:
kspace (torch.Tensor) – Samples
(planes, samples)or(planes, coils, samples).traj (torch.Tensor) – Trajectory
(planes, samples, 2)in grid units ofshape,kx, kywithkxalong the last image axis, within \(\pm n/2\).shape (tuple of int) – Matrix
(y, x)of each plane.density (torch.Tensor, default=None) – Density compensation weights broadcastable to
(planes, samples), such asbartorch.estimate_density()returns.Noneweights every sample by one.
- Returns:
Real
float32magnitudes(planes, *shape), on the device ofkspace, forNavigatorMotionTracker.track().- Return type:
torch.Tensor
- Raises:
ValueError – If the trajectory does not match the samples, or leaves the grid.