feat: use logarithmic conversion for lithophanes

This commit is contained in:
Tim Kuipers 2019-05-20 12:10:18 +02:00
parent b3d7887d4d
commit 88b424d36a
3 changed files with 40 additions and 4 deletions

View file

@ -34,6 +34,7 @@ class ImageReaderUI(QObject):
self.peak_height = 2.5
self.smoothing = 1
self.lighter_is_higher = False;
self.use_logarithmic_function = False;
self._ui_lock = threading.Lock()
self._cancelled = False
@ -144,3 +145,8 @@ class ImageReaderUI(QObject):
@pyqtSlot(int)
def onImageColorInvertChanged(self, value):
self.lighter_is_higher = (value == 1)
@pyqtSlot(int)
def onConvertFunctionChanged(self, value):
self.use_logarithmic_function = (value == 0)