a2ebb1fe84ce1adfb673f01be91beb37e9c87587,labelme/app.py,MainWindow,loadFile,#MainWindow#,1385
Before Change
orientation, self.scroll_values[orientation][self.filename]
)
// set brightness constrast values
if self.filename in self.brightnessContrast_values:
brightness, contrast = self.brightnessContrast_values[
self.filename
]
dialog = BrightnessContrastDialog(
self.filename, self.onNewBrightnessContrast, parent=self
)
dialog.slider_brightness.setValue(brightness)
dialog.slider_brightness.setValue(contrast)
dialog.onNewValue(None)
self.paintCanvas()
self.addRecentFile(self.filename)
self.toggleActions(True)
self.status(self.tr("Loaded %s") % osp.basename(str(filename)))
After Change
self.recentFiles[0], (None, None)
)
if self._config["keep_prev_contrast"] and self.recentFiles:
_, contrast = self.brightnessContrast_values.get(
self.recentFiles[0], (None, None)
)
if brightness is not None:
dialog.slider_brightness.setValue(brightness)
if contrast is not None:
dialog.slider_brightness.setValue(contrast)
self.brightnessContrast_values[self.filename] = (brightness, contrast)
if brightness is not None or contrast is not None:
dialog.onNewValue(None)
self.paintCanvas()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: wkentaro/labelme
Commit Name: a2ebb1fe84ce1adfb673f01be91beb37e9c87587
Time: 2020-06-14
Author: www.kentaro.wada@gmail.com
File Name: labelme/app.py
Class Name: MainWindow
Method Name: loadFile
Project Name: wkentaro/labelme
Commit Name: a2ebb1fe84ce1adfb673f01be91beb37e9c87587
Time: 2020-06-14
Author: www.kentaro.wada@gmail.com
File Name: labelme/app.py
Class Name: MainWindow
Method Name: loadFile
Project Name: wkentaro/labelme
Commit Name: a2ebb1fe84ce1adfb673f01be91beb37e9c87587
Time: 2020-06-14
Author: www.kentaro.wada@gmail.com
File Name: labelme/app.py
Class Name: MainWindow
Method Name: brightnessContrast