deepmr.recon.intensity_scaling#
- deepmr.recon.intensity_scaling(input, ndim)[source]#
Rescale intensity range of the input image.
This has the main purpose of enabling easier tuning of regularization strength in interative reconstructions.
- Parameters:
input (np.ndarray | torch.Tensor) – Input signal of shape
(..., ny, nx)
(2D) or(..., nz, ny, nx)
(3D).ndim (int, optional) – Number of spatial dimensions.
- Returns:
output – Rescaled signal.
- Return type:
np.ndarray | torch.Tensor.