voxel.utils.pixel_data.apply_rescale
- voxel.utils.pixel_data.apply_rescale(volume: ndarray, slope: float, intercept: float, inplace: bool = False) ndarray[source]
Apply a rescale to a volume.
- Parameters:
volume (np.ndarray) – Volume to apply the rescale to.
slope (float) – Rescale slope.
intercept (float) – Rescale intercept.
inplace (bool, optional) – Whether to apply the rescale in place. Defaults to False.
- Returns:
Rescaled volume.
- Return type:
np.ndarray