diff --git a/src/BrainLocalizationExtraction/brainExtractionTwoSteps.py b/src/BrainLocalizationExtraction/brainExtractionTwoSteps.py index 13dc2b32d..4217a643d 100644 --- a/src/BrainLocalizationExtraction/brainExtractionTwoSteps.py +++ b/src/BrainLocalizationExtraction/brainExtractionTwoSteps.py @@ -51,8 +51,6 @@ def extractBrain(dataPath, modelCkptLoc, thresholdLoc,modelCkptSeg,thresholdSeg, if normalize: if normalize == "local_max": images[slice_counter, :, :, 0] = img_patch / np.max(img_patch) - elif normalize == "global_max": - images[slice_counter, :, :, 0] = img_patch / max_val elif normalize == "mean_std": images[slice_counter, :, :, 0] = (img_patch-np.mean(img_patch))/np.std(img_patch) else: