Commit e7d8d781 authored by inhuszar's avatar inhuszar
Browse files

scripts.mnd.image: get_mask returns ndarray

parent 9614acc1
......@@ -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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment