Commit 3cb3cbfc authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[gui][roi] Use data from stack when applying roi

parent 66516f75
Pipeline #20974 passed with stage
in 2 minutes and 19 seconds
......@@ -161,7 +161,7 @@ class ROISelectionWidget(qt.QWidget):
"""
self.roi = RectangleROI()
self.roi.setGeometry(origin=self.getRoi().getOrigin(), size=self.getRoi().getSize())
frames = apply_3D_ROI(self.dataset.data, size=numpy.flip(self.roi.getSize()),
frames = apply_3D_ROI(self._sv.getStack()[0], size=numpy.flip(self.roi.getSize()),
center=numpy.flip(self.roi.getCenter()))
self.setStack(frames)
......
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