Skip to content

Commit

Permalink
Merge branch 'dev-pgd-hk' of github.com:Medical-Image-Analysis-Labora…
Browse files Browse the repository at this point in the history
…tory/mialsuperresolutiontoolkit into dev-pgd-hk
  • Loading branch information
pdedumast committed Oct 30, 2020
2 parents 7001fa7 + e6433c6 commit 0a0da2f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/BrainLocalizationExtraction/brainExtractionTwoSteps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0a0da2f

Please sign in to comment.