Commit b840ae13 authored by Thomas Vincent's avatar Thomas Vincent

fix image ROI + mask

parent e1878ab7
......@@ -626,8 +626,9 @@ class QSpaceConverter(object):
# Apply image ROI to mask
row, column = image_roi_offset
mask = mask[row[0]:row[0]+img_size[0],
mask = mask[row:row+img_size[0],
if mask.shape != img_size:
raise ValueError('Invalid mask size')
Markdown is supported
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