重构测试执行部分+去除转发器

This commit is contained in:
xinzhu.yin
2026-04-20 11:13:57 +08:00
parent 9d2cdb9ed4
commit b6c1c2ab93
14 changed files with 1583 additions and 1631 deletions

View File

@@ -6,9 +6,8 @@ Step 2 重构:从 pqAutomationApp.PQAutomationApp.plot_accuracy 原样搬迁
from matplotlib.patches import Rectangle
def plot_accuracy(app, accuracy_data, test_type):
def plot_accuracy(self, accuracy_data, test_type):
"""绘制色准测试结果 - 29色显示 - 简洁版布局(显示 Gamma"""
self = app
self.accuracy_ax.clear()
self.accuracy_ax.set_xlim(0, 1)

View File

@@ -6,9 +6,8 @@ Step 2 重构:从 pqAutomationApp.PQAutomationApp.plot_cct 原样搬迁。
import numpy as np
def plot_cct(app, test_type):
def plot_cct(self, test_type):
"""绘制 x 和 y 坐标分离图 - 每个点标注纵坐标值"""
self = app
self.cct_fig.clear()

View File

@@ -6,9 +6,8 @@ Step 2 重构:从 pqAutomationApp.PQAutomationApp.plot_contrast 原样搬迁
from matplotlib.patches import Rectangle
def plot_contrast(app, contrast_data, test_type):
def plot_contrast(self, contrast_data, test_type):
"""绘制对比度测试结果 - 固定布局版本"""
self = app
# 清空并重置
self.contrast_ax.clear()

View File

@@ -6,9 +6,8 @@ Step 2 重构:从 pqAutomationApp.PQAutomationApp.plot_eotf 原样搬迁。
import numpy as np
def plot_eotf(app, L_bar, results_with_eotf_list, test_type):
def plot_eotf(self, L_bar, results_with_eotf_list, test_type):
"""绘制 EOTF 曲线 + 数据表格HDR 专用,包含实测亮度)"""
self = app
# ========== 1. 清空并重置左侧曲线 ==========
self.eotf_ax.clear()

View File

@@ -6,9 +6,8 @@ Step 2 重构:从 pqAutomationApp.PQAutomationApp.plot_gamma 原样搬迁。
import numpy as np
def plot_gamma(app, L_bar, results_with_gamma_list, target_gamma, test_type):
def plot_gamma(self, L_bar, results_with_gamma_list, target_gamma, test_type):
"""绘制Gamma曲线 + 数据表格(包含实测亮度)"""
self = app
# ========== 1. 清空并重置左侧曲线 ==========
self.gamma_ax.clear()

View File

@@ -10,11 +10,10 @@ import algorithm.pq_algorithm as pq_algorithm
from app.resources import get_resource_path
def plot_gamut(app, results, coverage, test_type):
def plot_gamut(self, results, coverage, test_type):
"""绘制色域图 - 根据用户选择的参考标准动态计算覆盖率"""
# 实现从原 PQAutomationApp 方法体原样搬迁,为减少修改面
# 范围、保持行为一致,给 self 赋值为传入的 app 实例。
self = app
self.gamut_ax_xy.clear()
self.gamut_ax_uv.clear()