Commit b840ae13 authored by Thomas Vincent's avatar Thomas Vincent

fix image ROI + mask

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