关于「看得清:空间频率通道、对比敏感度与 WCAG」,《计算美学与界面认知工程》给出的定量结论是什么?

结论:坎贝尔与罗布森的实验支持视觉系统中存在相对独立的空间频率通道:方波在基频达到阈值时被看见,在三次谐波达到阈值时才显得「方」。曼诺斯—萨克里森的对比敏感度函数在约 7.9 周/度处最敏感;常见正文字号的字母识别频带落在这一区域附近,而 12 像素小字在桌面参考距离上低于约 0.2 度的临界字号。WCAG 的相对亮度与对比度公式照写;0.03928 与 0.04045 两个阈值在 8 位色上给出完全相同的结果,程序逐值证明。APCA 已移出 WCAG 3 草案,WCAG 3 的对比度算法尚未确定。

数据口径:书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序)、原典与作者的模型和假说;书中所有页面、品牌与数据都是虚构或模拟的。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.2, 12

A. CSF peak at 7.89 c/deg (raw value 0.981)
f (c/deg)0.5 1 2 4 8 16 32 48
sensitivity0.19 0.32 0.54 0.83 1.00 0.70 0.15 0.02
threshold contrast passes 100 % (invisible) at about 59 c/deg
B. square-wave grating, contrast thresholds (assumed 0.5 % at the peak)
f sine square: seen looks square
0.52.584% 2.029% 2.697%
1.01.552% 1.219% 1.673%
2.00.929% 0.730% 1.221%
4.00.605% 0.475% 1.314%
8.00.500% 0.393% 3.324%
12.00.558% 0.438% 12.168%
C. text at 1/96-inch pixels (x-height 0.5 em; 3 cycles per letter height)
distance font x-height vs 0.2 deg critical size letter band c/deg
71.1 cm12 px 0.128 deg 0.64 x 11.7 S = 0.91
71.1 cm16 px 0.171 deg 0.85 x 8.8 S = 0.99
71.1 cm24 px 0.256 deg 1.28 x 5.9 S = 0.96
50.0 cm12 px 0.182 deg 0.91 x 8.2 S = 1.00
50.0 cm16 px 0.243 deg 1.21 x 6.2 S = 0.97
50.0 cm24 px 0.364 deg 1.82 x 4.1 S = 0.84

核心公式

\[A(f) = 2.6\,(0.0192 + 0.114f)\,e^{-(0.114f)^{1.1}},\]
查看完整验算程序
# Spatial-frequency channels and the contrast sensitivity function (CSF).
# A: Mannos & Sakrison (1974) CSF, A(f) = 2.6 (0.0192 + 0.114 f) exp(-(0.114 f)^1.1),
#    f in cycles/degree, normalised to a peak of 1; peak frequency found numerically.
# B: Campbell & Robson (1968) logic: a square wave of contrast c has a fundamental of
#    amplitude 4c/pi and a third harmonic 4c/(3 pi). If each channel detects its own
#    frequency independently, the square wave is seen when its fundamental reaches the
#    sine threshold (ratio pi/4), and looks different from a sine wave once the third
#    harmonic reaches threshold at 3f. Absolute threshold: assumed 0.5 % at the peak.
# C: text as a stimulus: letters are identified through a band of about 3 cycles per
#    letter (Solomon & Pelli 1994); x-height compared with the critical print size of
#    about 0.2 deg (Legge & Bigelow 2011). Pixel = 1/96 inch (the CSS reference pixel
#    subtends about 0.0213 deg at 28 inches).
import math

def csf(f):
    return 2.6 * (0.0192 + 0.114 * f) * math.exp(-(0.114 * f) ** 1.1)

PEAK = max((csf(k / 1000), k / 1000) for k in range(1, 60001))
def S(f): return csf(f) / PEAK[0]                  # normalised sensitivity
T0 = 0.005                                         # assumed threshold contrast at peak

if __name__ == "__main__":
    print(f"A. CSF peak at {PEAK[1]:.2f} c/deg (raw value {PEAK[0]:.3f})")
    print("   f (c/deg)        0.5     1     2     4     8    16    32    48")
    print("   sensitivity  " + "".join(f"{S(f):6.2f}"
                                     for f in (.5, 1, 2, 4, 8, 16, 32, 48)))
    hi = next(k / 10 for k in range(int(PEAK[1] * 10), 2000) if S(k / 10) < T0)
    print(f"   threshold contrast passes 100 % (invisible) at about {hi:.0f} c/deg")
    print("B. square-wave grating, contrast thresholds (assumed 0.5 % at the peak)")
    print("   f      sine   square: seen  looks square")
    for f in (0.5, 1, 2, 4, 8, 12):
        ts = T0 / S(f)
        print(f"   {f:4.1f} {ts:7.3%} {ts * math.pi / 4:12.3%}"
              f" {T0 / S(3 * f) * 3 * math.pi / 4:12.3%}")
    print("C. text at 1/96-inch pixels (x-height 0.5 em; 3 cycles per letter height)")
    print("   distance  font  x-height  vs 0.2 deg critical size  letter band c/deg")
    for dist in (71.12, 50.0):                     # 28 in = CSS reference distance
        px = math.degrees(2.54 / 96 / dist)        # small-angle pixel size, degrees
        for size in (12, 16, 24):
            xh = 0.5 * size * px; band = 3 / (2 * xh)    # letter height ~ 2 x-heights
            print(f"   {dist:5.1f} cm {size:4d} px {xh:7.3f} deg {xh / 0.2:16.2f} x"
                  f" {band:16.1f}  S = {S(band):.2f}")

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《计算美学、视觉显著性图谱与人机界面认知工程》第 5 章「看得清:空间频率通道、对比敏感度与 WCAG」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23836258

DOI: 10.5281/zenodo.23836258 · 阅读本章所在专著 · 5DL-B-046 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026046,
  author    = {Fan, Yafu},
  title     = {Computational Aesthetics, Visual Saliency Maps and Cognitive Ergonomics in User Interface Design},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.23836258},
  url       = {https://doi.org/10.5281/zenodo.23836258}
}

本书其他章节结论