bartorch.tools.estscaling

Contents

bartorch.tools.estscaling#

bartorch.tools.estscaling(k_space, *, i=False, x=None, percentile=None, **extra)#

Estimate scaling from k-space center.

Runs bart estscaling.

Parameters:
  • k_space (torch.Tensor) – Input array.

  • i (bool) – invert scaling (to directly multiply k-space data) (-i)

  • x (tuple[int, int, int] | None) – image dimensions (-x)

  • percentile (float | None) – use p-percentile for scaling (-p)

  • **extra (Any) – Further BART flags, passed through by name.

Returns:

scaling

Return type:

torch.Tensor