hilbert#

deepinv.utils.hilbert(x, dim=-1)[source]#

Compute the analytical signal via Hilbert transform.

Note

This function uses scipy and is therefore not efficient nor differentiable. If a pure torch implementation is required, please raise a feature request issue on GitHub.

Parameters:
  • x (torch.Tensor) – real-valued input signal of arbitrary shape.

  • dim (int) – dimension along which the transform is computed, e.g. the time axis of raw data or the depth axis of an image. (default: -1)

Returns:

(torch.Tensor) the complex-valued analytical signal, of the same shape as x.

Return type:

Tensor