bartorch.fovshift#
- bartorch.fovshift(input, shift, *, traj=None, pixels=False)#
Shift the field of view of k-space data by a linear phase.
Multiplies
inputbyexp(2 pi i k . shift), withkin cycles per field of view andshiftin fields of view (fovshift.c:31, 128; num/filter.c:256). On Cartesian datak = p - n / 2for indexpof the last three axes – zero at the centre of a centred FFT for evenn. The image moves by-shift: underbartorch.fft()’s convention the result is the spectrum ofimage[p + shift * n].- Parameters:
input (torch.Tensor) – Centred Cartesian k-space whose last three axes (or fewer) are
(kz, ky, kx), or withtrajthe samples shaped asbartorch.nufft()returns them.shift (sequence of float) – Shift along the image axes in C order,
(z, y, x)or(y, x)or(x,); in fields of view, or in voxels withpixels.traj (torch.Tensor, optional) – Trajectory of shape
(..., samples, 3), last axis(kx, ky, kz)in grid units, asbartorch.tools.traj()produces (-t).pixels (bool) –
shiftin voxels rather than fields of view (-p); Cartesian only.