deepmr.resample

Contents

deepmr.resample#

deepmr.resample(input, oshape, filt=True, polysmooth=False)[source]#

Resample a n-dimensional signal.

Parameters:
  • input (np.ndarray | torch.Tensor) – Input tensor of shape (..., ishape).

  • oshape (Iterable) – Output shape.

  • filt (bool, optional) – If True and signal is upsampled (i.e., any(oshape > ishape)), apply Fermi filter to limit ringing. The default is True.

  • polysmooth (bool, optional) – If true, perform polynomial smoothing. The default is False. !!! NOT IMPLEMENTED YET !!!

Returns:

output – Resampled tensor of shape (..., oshape).

Return type:

np.ndarray | torch.Tensor