apps.partial_fourier_range#
- bartorch.apps.partial_fourier_range()#
First and last line acquired along a partial-Fourier
axis;Nonewhere it is not one.An axis is partial Fourier when the lines missing at one end of
sampledoutnumber the widest gap between sampled lines, which undersampling alone leaves. Line 0 of an even axis has no conjugate on the grid: a scan that reverses its phase encode leaves it out without being partial Fourier, so that one line does not count as missing.- Parameters:
sampled (torch.Tensor or numpy.ndarray) – Boolean sampling mask, True where a sample was acquired.
axis (int) – Axis of
sampled.
- Returns:
The acquired range, inclusive.
- Return type:
tuple of int or None