mrpro.phantoms.brainweb.resize

mrpro.phantoms.brainweb.resize(size: int = 256) Callable[[Tensor, Generator | None], Tensor][source]

Get a resizing and cropping function.

Parameters:

size (int, default: 256) – Size of the output tensor.

Returns:

Callable that resizes and crops the input tensor.