修改SDR色准dE计算方式
This commit is contained in:
@@ -1175,18 +1175,17 @@ class PQDebugPanel:
|
||||
):
|
||||
"""计算单个色块的 ΔE 2000"""
|
||||
try:
|
||||
# 获取标准 xy 坐标
|
||||
test_type = self.current_test_type
|
||||
standards = self.app.get_accuracy_color_standards(test_type)
|
||||
white_lv = measured_lv
|
||||
measured = self.app.results.get_intermediate_data("accuracy", "measured")
|
||||
if measured and len(measured) > 0 and measured[0][2]:
|
||||
white_lv = measured[0][2]
|
||||
|
||||
if color_name not in standards:
|
||||
return 0.0
|
||||
|
||||
standard_x, standard_y = standards[color_name]
|
||||
|
||||
# 调用主程序的 ΔE 计算方法
|
||||
delta_e = self.app.calculate_delta_e_2000(
|
||||
measured_x, measured_y, measured_lv, standard_x, standard_y
|
||||
delta_e = self.app.calculate_accuracy_delta_e_2000(
|
||||
color_name,
|
||||
measured_x,
|
||||
measured_y,
|
||||
measured_lv,
|
||||
white_lv,
|
||||
)
|
||||
|
||||
return delta_e
|
||||
|
||||
Reference in New Issue
Block a user