mrpro.phantoms.brainweb.trim_indices

mrpro.phantoms.brainweb.trim_indices(mask: Tensor) tuple[slice, slice][source]

Get slices that remove fully masked out outer rows and columns.

Parameters:

mask (Tensor) – Mask indicating valid data.

Returns:

Two slice objects, that can be used to index the data to remove fully masked out outer rows and columns.