mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
feat: use logarithmic conversion for lithophanes
This commit is contained in:
parent
b3d7887d4d
commit
88b424d36a
3 changed files with 40 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue