fix for roi getting wrong data when imageAxisOrder='row-major'

This commit is contained in:
Megan Kratz 2020-05-19 15:11:11 -06:00
parent c715c5ac28
commit c349c3665b

View File

@ -586,7 +586,8 @@ class ImageView(QtGui.QWidget):
# Extract image data from ROI
axes = (self.axes['x'], self.axes['y'])
data, coords = self.roi.getArrayRegion(image.view(np.ndarray), self.imageItem, axes, returnMappedCoords=True)
#data, coords = self.roi.getArrayRegion(image.view(np.ndarray), self.imageItem, axes, returnMappedCoords=True)
data, coords = self.roi.getArrayRegion(image.view(np.ndarray), self.imageItem, returnMappedCoords=True)
if data is None:
return