What does Visual Saliency and Interface Cognition conclude, in numbers, about “Seeing Clearly: Spatial-Frequency Channels, Contrast Sensitivity and WCAG”?
Answer: Campbell and Robson's experiments support the existence of relatively independent spatial-frequency channels in vision: a square wave is visible when its fundamental reaches threshold and looks "square" only when its third harmonic does. The Mannos–Sakrison contrast sensitivity function peaks near 7.9 cycles per degree; the letter-identification band of common body-text sizes lies close to this region, while 12-pixel text at the desktop reference distance falls below the critical print size of about 0.2 degrees. The WCAG relative-luminance and contrast formulas are reproduced; the two thresholds 0.03928 and 0.04045 give identical results for 8-bit colour, as the program proves value by value. APCA has been removed from the WCAG 3 drafts, and WCAG 3's contrast algorithm has not been decided.
Scope of the numbers: Marked boxes separate published evidence, runnable Python calculations (16 programs), classical sources and the author's models and hypotheses; all pages, brands and data in the book are fictional or simulated.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 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 |
| sensitivity | 0.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.5 | 2.584% 2.029% 2.697% |
| 1.0 | 1.552% 1.219% 1.673% |
| 2.0 | 0.929% 0.730% 1.221% |
| 4.0 | 0.605% 0.475% 1.314% |
| 8.0 | 0.500% 0.393% 3.324% |
| 12.0 | 0.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 cm | 12 px 0.128 deg 0.64 x 11.7 S = 0.91 |
| 71.1 cm | 16 px 0.171 deg 0.85 x 8.8 S = 0.99 |
| 71.1 cm | 24 px 0.256 deg 1.28 x 5.9 S = 0.96 |
| 50.0 cm | 12 px 0.182 deg 0.91 x 8.2 S = 1.00 |
| 50.0 cm | 16 px 0.243 deg 1.21 x 6.2 S = 0.97 |
| 50.0 cm | 24 px 0.364 deg 1.82 x 4.1 S = 0.84 |
Key formula
Show the full program
# 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}")Single source and citation
Fan, Y. (2026). Computational Aesthetics, Visual Saliency Maps and Cognitive Ergonomics in User Interface Design (Version 1.0.0), Chapter 5: Seeing Clearly: Spatial-Frequency Channels, Contrast Sensitivity and WCAG. 5D Library. https://doi.org/10.5281/zenodo.23836258
DOI: 10.5281/zenodo.23836258 · Read the monograph · 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}
}Other chapter answers in this book
- Chapter 1 · Two Popular Rules: the Golden Ratio and Three Clicks
- Chapter 2 · Deciding and Pointing: the Hick–Hyman Law and Fitts's Law
- Chapter 3 · What Pops Out First: Visual Search and Saliency Maps
- Chapter 4 · How Gaze Moves: Centre Bias, Saccades and Inhibition of Return
- Chapter 6 · Can "Looking Good" Be Measured? Type Scales, Aesthetic Measure and Complexity
- Chapter 7 · Reading the Classics: Examining Curves and Aspects, and Timber as the Root
- Chapter 8 · Practice and a Pre-Registered Test