Skip to content

Commit

Permalink
Update preprocess.py
Browse files Browse the repository at this point in the history
Delete global_max normalization
  • Loading branch information
hamzake authored Oct 30, 2020
1 parent 2567fac commit a4be1ef
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pymialsrtk/interfaces/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -1276,8 +1276,6 @@ def _extractBrain(self, dataPath, modelCkptLoc, thresholdLoc, modelCkptSeg, thre
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 a4be1ef

Please sign in to comment.