bartorch.tools.traj#
- bartorch.tools.traj(*, readout=None, spokes=None, frames=None, radial=False, golden=False, turns=None, oversampling=False, **extra)#
A k-space trajectory, in grid units.
- Parameters:
readout (int, optional) – Samples along a readout (
-x).spokes (int, optional) – Readouts per frame (
-y).frames (int, optional) – Frames (
-t).radial (bool) – A radial trajectory rather than Cartesian (
-r).golden (bool) – Golden-angle spacing between spokes (
-G).turns (int, optional) – Turns, for a multi-shot trajectory (
-m).oversampling (bool) – Two-fold readout oversampling (
-otakes a factor; this is-O).**extra – Further BART
trajflags, by name.
- Returns:
Coordinates of shape
(..., samples, 3), which every non-Cartesian transform in this package takes.- Return type:
torch.Tensor
Examples
>>> trajectory = traj(readout=256, spokes=64, radial=True, golden=True)