mr2.utils.filters.radial_hann_window

mr2.utils.filters.radial_hann_window(coordinates: Sequence[Tensor], widths: Sequence[float]) → Tensor[source]

Evaluate a Hann window on the radius of scaled continuous coordinates.

Parameters:
  • coordinates (Sequence[Tensor]) – Nonempty sequence of broadcastable real floating-point coordinate tensors with the same dtype and device, one per spatial direction.

  • widths (Sequence[float]) – Finite positive full support widths in the corresponding coordinate units. Must have the same length as coordinates; unequal widths give ellipsoidal support.

Returns:

Real weights with the broadcast coordinate shape, unit gain and zero coordinate gradient at the origin, without energy normalization.