apps.partial_fourier_phase

apps.partial_fourier_phase#

bartorch.apps.partial_fourier_phase()#

Homodyne phase of image: its k-space where a sample and its conjugate were both acquired.

Along each partial-Fourier axis (partial_fourier_range()) the k-space of image is kept where both a sample and its conjugate lie in the acquired range: the phase a homodyne reconstruction removes.

Parameters:
  • image (torch.Tensor) – Complex image, the transform centred: the zero frequency is at index n // 2 of each axis.

  • sampled (torch.Tensor) – Boolean sampling mask, with the shape of image.

Returns:

Complex64, the shape of image.

Return type:

torch.Tensor

Raises:

ValueError – If sampled and image differ in shape.