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

[gui] Added hot pixel removal to noise removal widget

parent 00029994
......@@ -34,7 +34,7 @@ from silx.gui import qt
from silx.gui.colors import Colormap
from silx.gui.plot.StackView import StackViewMainWindow
from linkdick06.core.imageOperations import background_substraction
from linkdick06.core.imageOperations import background_substraction, hot_pixel_removal
from .operationThread import OperationThread
......@@ -85,6 +85,7 @@ class BackgroundSubstractionWidget(qt.QWidget):
self._thread.finished.disconnect(self._updateData)
self._computeB.setEnabled(True)
self.dataset.data = self._thread.data
self.dataset.data = hot_pixel_removal(self.dataset.data)
assert self.dataset.data is not None
self.setStack(self.dataset.data)
self.signalComputed.emit()
......
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