Commit edf9704a authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

Merge branch 'fix_roi' into 'master'

Use data from stack when applying roi

Closes #14

See merge request julia.garriga/darfix!43
parents 66516f75 3cb3cbfc
Pipeline #20975 passed with stage
in 2 minutes
...@@ -161,7 +161,7 @@ class ROISelectionWidget(qt.QWidget): ...@@ -161,7 +161,7 @@ class ROISelectionWidget(qt.QWidget):
""" """
self.roi = RectangleROI() self.roi = RectangleROI()
self.roi.setGeometry(origin=self.getRoi().getOrigin(), size=self.getRoi().getSize()) 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())) center=numpy.flip(self.roi.getCenter()))
self.setStack(frames) 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