重构pq_config、修改切换面板清空旧逻辑
This commit is contained in:
@@ -583,6 +583,7 @@ def test_gamut(self, test_type):
|
||||
|
||||
# 传递完整的 results 用于绘图
|
||||
self.plot_gamut(results, coverage, test_type)
|
||||
self._save_chart_snapshot(test_type, "gamut", (results, coverage, test_type))
|
||||
|
||||
self.log_gui.log("色域测试完成", level="success")
|
||||
|
||||
@@ -674,6 +675,7 @@ def test_gamma(self, test_type, gray_data=None):
|
||||
target_gamma = 2.2
|
||||
|
||||
self.plot_gamma(L_bar, results_with_gamma_list, target_gamma, test_type)
|
||||
self._save_chart_snapshot(test_type, "gamma", (L_bar, results_with_gamma_list, target_gamma, test_type))
|
||||
|
||||
self.log_gui.log("Gamma测试完成", level="success")
|
||||
|
||||
@@ -756,6 +758,7 @@ def test_eotf(self, test_type, gray_data=None):
|
||||
# ========== 绘制 EOTF 曲线 ==========
|
||||
# HDR 使用 PQ 曲线,目标 gamma 设为 None(不使用传统 gamma)
|
||||
self.plot_eotf(L_bar, results_with_eotf_list, test_type)
|
||||
self._save_chart_snapshot(test_type, "eotf", (L_bar, results_with_eotf_list, test_type))
|
||||
|
||||
self.log_gui.log("EOTF 测试完成", level="success")
|
||||
|
||||
@@ -796,6 +799,7 @@ def test_cct(self, test_type, gray_data=None):
|
||||
|
||||
# 绘制图表
|
||||
self.plot_cct(test_type)
|
||||
self._save_chart_snapshot(test_type, "cct", (test_type,))
|
||||
|
||||
self.log_gui.log("色度一致性测试完成", level="success")
|
||||
except Exception as e:
|
||||
@@ -859,6 +863,7 @@ def test_contrast(self, test_type, gray_data=None):
|
||||
|
||||
# 绘制对比度图表
|
||||
self.plot_contrast(contrast_data, test_type)
|
||||
self._save_chart_snapshot(test_type, "contrast", (contrast_data, test_type))
|
||||
|
||||
self.log_gui.log("对比度测试完成", level="success")
|
||||
except Exception as e:
|
||||
@@ -1024,6 +1029,7 @@ def test_color_accuracy(self, test_type):
|
||||
|
||||
# ========== 绘制图表 ==========
|
||||
self.plot_accuracy(accuracy_data, test_type)
|
||||
self._save_chart_snapshot(test_type, "accuracy", (accuracy_data, test_type))
|
||||
|
||||
self.log_gui.log("色准测试完成", level="success")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user