diff --git a/clinica/pipelines/pet/linear/utils.py b/clinica/pipelines/pet/linear/utils.py index ab1e0ff23..f3f629853 100644 --- a/clinica/pipelines/pet/linear/utils.py +++ b/clinica/pipelines/pet/linear/utils.py @@ -205,7 +205,7 @@ def clip_img( unique, counts = np.unique( pet_image.get_fdata().reshape(-1), axis=0, return_counts=True ) - clip_threshold = min(0.0, unique[np.argmax(counts)]) + clip_threshold = max(0.0, unique[np.argmax(counts)]) data = np.clip( pet_image.get_fdata(dtype="float32"), a_min=clip_threshold, a_max=None