bartorch.remove_readout_oversampling#
- bartorch.remove_readout_oversampling()#
Crop the readout’s field of view to
target_sizesamples, in the image domain.The readout is transformed to the image domain with the centred unitary transform (
bartorch.fft()), cropped symmetrically about indexn // 2and transformed back: the result is k-space over the same extent, sampledn / target_sizetimes more coarsely.- Parameters:
kspace (torch.Tensor) – Centred k-space with the readout along
axis.target_size (int) – Number of readout samples to keep, the reconstructed matrix size.
axis (int, default=-1) – Readout axis.
- Returns:
Complex64 k-space with
target_sizesamples alongaxis, orkspaceitself when it already hastarget_size.- Return type:
torch.Tensor
- Raises:
ValueError – If
target_sizeis not in[1, n].