tools.bin

Contents

tools.bin#

bartorch.tools.bin()#

Binning

Runs bart bin.

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

  • src (torch.Tensor) – Input array.

  • l (int | None, default=None) – Bin according to the labels, clustered along this axis. (-l)

  • o (bool, default=False) – Reorder according to labels (-o)

  • R (int | None, default=None) – Quadrature Binning: Number of respiratory labels (-R)

  • C (int | None, default=None) – Quadrature Binning: Number of cardiac labels (-C)

  • r (tuple[int, int] | None, default=None) – (Respiration: Eigenvector index) (-r)

  • c (tuple[int, int] | None, default=None) – (Cardiac motion: Eigenvector index) (-c)

  • a (int | None, default=None) – Quadrature Binning: Moving average (-a)

  • A (int | None, default=None) – (Quadrature Binning: Cardiac moving average window) (-A)

  • O (tuple[float, float] | None, default=None) – Quadrature Binning: Angle offset for resp and card. (-O)

  • x (str | None, default=None) – (Output filtered cardiac EOFs) (-x)

  • M (bool, default=False) – Amplitude binning (-M)

  • zero_fill (tuple[int, int] | None, default=None) – Specify dimension and number of zero filled frames. Zero-filling according to order in label_file. (--zero-fill)

  • stream (bool, default=False) – Stream input/output. (--stream)

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

Returns:

dst

Return type:

torch.Tensor