修改SDR色准dE计算方式

This commit is contained in:
xinzhu.yin
2026-06-12 16:46:30 +08:00
parent 46a97d6ae7
commit c8ad244c45
4 changed files with 177 additions and 155 deletions

View File

@@ -44,6 +44,7 @@ from app.resources import (
load_icon,
)
from app.tests.color_accuracy import (
calculate_accuracy_delta_e_2000 as _calc_accuracy_delta_e_2000,
calculate_color_accuracy as _calc_color_accuracy,
calculate_delta_e_2000 as _calc_delta_e_2000,
get_accuracy_color_standards as _get_accuracy_color_standards,
@@ -740,6 +741,7 @@ class PQAutomationApp(
# 纯算法函数:作为 staticmethod 保留在主类(不依赖 self且 calculate_xxx
# 的命名空间由历史代码以 self.calculate_xxx 调用)。
calculate_delta_e_2000 = staticmethod(_calc_delta_e_2000)
calculate_accuracy_delta_e_2000 = staticmethod(_calc_accuracy_delta_e_2000)
get_accuracy_color_standards = staticmethod(_get_accuracy_color_standards)
calculate_gamut_coverage = staticmethod(_calc_gamut_coverage)
calculate_gamma = staticmethod(_calc_gamma)