def adjust_thresholds_callback():
     dlg = GrayscaleLayerDialog(menu.parent())
     dlg.setLayername(layer.name)
     def dbgPrint(a, b):
         layer.set_normalize(0, (a,b))
         print "normalization changed to [%d, %d]" % (a,b)
     dlg.grayChannelThresholdingWidget.setRange(layer.range[0][0], layer.range[0][1])
     dlg.grayChannelThresholdingWidget.setValue(layer.normalize[0][0], layer.normalize[0][1])
     dlg.grayChannelThresholdingWidget.valueChanged.connect(dbgPrint)
     dlg.show()
Example #2
0
 def adjust_thresholds_callback():
     dlg = GrayscaleLayerDialog(layer, menu.parent())
     dlg.show()
Example #3
0
 def adjust_thresholds_callback():
     dlg = GrayscaleLayerDialog(layer, menu.parent())
     dlg.show()