Commit ab555395 authored by Martin Drechsler's avatar Martin Drechsler

added curretn image to gui, in order to save. It is also in the debugging console

parent bab4d704
...@@ -39,6 +39,7 @@ class CameraGuiMainWindow(QMainWindow): ...@@ -39,6 +39,7 @@ class CameraGuiMainWindow(QMainWindow):
self.frames_checker_timer = QtCore.QTimer() self.frames_checker_timer = QtCore.QTimer()
self.isMeasuring = False self.isMeasuring = False
self.initUI() self.initUI()
self.current_image = np.array([])
def initUI(self): def initUI(self):
GUI_LOG.info('Initializing gui') GUI_LOG.info('Initializing gui')
...@@ -140,7 +141,8 @@ class CameraGuiMainWindow(QMainWindow): ...@@ -140,7 +141,8 @@ class CameraGuiMainWindow(QMainWindow):
self.console = console.ConsoleWidget( self.console = console.ConsoleWidget(
namespace = {'np': np, 'cam': backend.cam, 'roi': self.rois[0], namespace = {'np': np, 'cam': backend.cam, 'roi': self.rois[0],
'storage': backend.storage, 'param_tree': self.cameraParamFrame.paramTree 'storage': backend.storage, 'param_tree': self.cameraParamFrame.paramTree,
'gui': self
} }
) )
self.dConsole.addWidget(self.console) self.dConsole.addWidget(self.console)
...@@ -238,7 +240,7 @@ class CameraGuiMainWindow(QMainWindow): ...@@ -238,7 +240,7 @@ class CameraGuiMainWindow(QMainWindow):
"Dephasing in camera gui has occured: while frame index is %i, the acq index is %i" "Dephasing in camera gui has occured: while frame index is %i, the acq index is %i"
% (self.frame_index, acq_index) % (self.frame_index, acq_index)
) )
self.current_image = image
self.img.setImage(image, autoDownsample=True, autoHistogramRange=False, autoLevels=False, self.img.setImage(image, autoDownsample=True, autoHistogramRange=False, autoLevels=False,
autoRange=False) autoRange=False)
self.updatePlots() self.updatePlots()
......
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