Local neighbourhood sampling

01

Sample the frame

The center stays fixed. Only the eight green sample positions move.

Center pixel8 sampled pixels
NEIGHBOURHOOD AVERAGEN̄ = ⅛ Σ OKlab(Nᵢ)
CENTER PIXELC = OKlab(center)
02

Compare center with neighbourhood

LOCAL DIFFERENCEC − N̄
LIGHTNESSΔL = |Cₗ − N̄ₗ|
CHROMATICΔab = ‖Cₐᵦ − N̄ₐᵦ‖