Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Istvan N. Huszar, MD
tirl
Commits
e7d8d781
Commit
e7d8d781
authored
Jul 14, 2020
by
inhuszar
Browse files
scripts.mnd.image: get_mask returns ndarray
parent
9614acc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tirl/scripts/mnd/image.py
View file @
e7d8d781
...
...
@@ -77,7 +77,7 @@ def get_mask(img, scope=None, **maskparammodule):
mask
.
reduce_tensors
()
if
q
.
normalise
:
mask
=
mask
/
np
.
max
(
mask
.
data
)
return
mask
return
mask
.
data
# Create mask by calling a function in 'scope'
elif
q
.
function
is
not
None
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment