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 61a7fda + a4be1ef commit 7001fa7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion documentation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def visit_document(self, node):
'nbsphinx']


autodoc_mock_imports = ['nipype','cv2']
autodoc_mock_imports = ['nipype','cv2', 'skimage']

# Allow errors in notebooks for doc
nbsphinx_allow_errors = True
Expand Down
2 changes: 0 additions & 2 deletions pymialsrtk/interfaces/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -1266,8 +1266,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 7001fa7

Please sign in to comment.