Papers
Topics
Authors
Recent
Search
2000 character limit reached

Degree of Contrast (DoC) Metric

Updated 22 February 2026
  • Degree of Contrast (DoC) is a generalized contrast energy metric based on center–surround filtering that quantifies spatial contrast structure in visual stimuli.
  • It extends classical RMS contrast by incorporating local spatial relationships through zero-sum Difference-of-Gaussians filters, ensuring mathematical robustness.
  • DoC links neuroanatomical parameters to psychophysical performance, offering practical insights for diagnosing contrast confounds and modeling visual crowding.

The Degree of Contrast (DoC), also referred to as the generalized contrast energy metric, is a quantitative framework for assessing the spatial contrast structure of visual stimuli, motivated by the receptive field architectures of early visual neurons. DoC extends classical measures such as RMS contrast by incorporating the local spatial relationships defined by center–surround filters in the retina, LGN, and primary visual cortex. This metric has been shown to robustly predict the psychophysical outcomes of visual crowding, including classic and paradoxical effects across a broad range of tasks, with applications as both a diagnostic for contrast confounds and as a foundational component in models of visual perception (Rodriguez et al., 2020).

1. Theoretical Foundations: Center–Surround Filtering and Semi-Norm Structure

The mathematical grounding of DoC arises from the properties of center–surround receptive fields, classically modeled as a difference of Gaussians (DoG). A standard neuron’s response is modeled as a weighted sum of local luminances using two radially symmetric Gaussians—a narrow excitatory “center” and a broader inhibitory “surround”:

  • Foreground (center) mask:

MoF(p,q)=12πσF2exp[(px)2+(qy)22σF2]\operatorname{MoF}(p, q) = \frac{1}{2\pi \sigma_F^2} \exp\left[ -\frac{(p-x)^2 + (q-y)^2}{2 \sigma_F^2} \right]

  • Background (surround) mask with σB=kσF\sigma_B = k \sigma_F (empirically, k5k \simeq 5):

MoB(p,q)=12πσB2exp[(px)2+(qy)22σB2]\operatorname{MoB}(p, q) = \frac{1}{2\pi \sigma_B^2} \exp\left[ -\frac{(p-x)^2 + (q-y)^2}{2 \sigma_B^2} \right]

  • DoG filter:

s(x,y;p,q)=MoF(p,q)MoB(p,q)s(x, y; p, q) = \operatorname{MoF}(p, q) - \operatorname{MoB}(p, q)

Given an H×WH \times W image patch ii, vectorized as v=vec(i)v = \text{vec}(i), convolution with the DoG filter is represented as linear operator JJ such that Jv=vec(si)J \, v = \text{vec}(s * i).

The generalized contrast energy is then defined as:

σB=kσF\sigma_B = k \sigma_F0

Because σB=kσF\sigma_B = k \sigma_F1 is constructed from a zero-sum DoG filter, σB=kσF\sigma_B = k \sigma_F2 is always non-negative, homogeneous, and subadditive, so σB=kσF\sigma_B = k \sigma_F3 defines a semi-norm on the image space.

2. Relation to Classical RMS Contrast

DoC subsumes and generalizes the concept of RMS (Root Mean Square) contrast. In the limiting case where the center mask is a Dirac delta and the surround mask is uniform (i.e., all pixel values equally weighted), the DoG simplifies so that:

σB=kσF\sigma_B = k \sigma_F4

with σB=kσF\sigma_B = k \sigma_F5 (for σB=kσF\sigma_B = k \sigma_F6 pixels). Thus,

σB=kσF\sigma_B = k \sigma_F7

with σB=kσF\sigma_B = k \sigma_F8, confirming that RMS contrast is a special (trivial) case of the generalized DoC metric.

3. Neuroanatomical Parameterization and Practical Computation

Parameters for the center–surround Gaussians are chosen to match anatomical constraints, specifically the dendritic field radii of midget ganglion cells that scale with eccentricity σB=kσF\sigma_B = k \sigma_F9 as established by Dacey & Petersen (1992). This gives:

  • k5k \simeq 50 for the center, with k5k \simeq 51 from empirical fit,
  • k5k \simeq 52 for the surround.

Practical computation of DoC for a grayscale patch k5k \simeq 53 with known eccentricity k5k \simeq 54 and viewing geometry is as follows:

  1. Calculate k5k \simeq 55 in pixels: k5k \simeq 56.
  2. Build MoF and MoB as Gaussians over k5k \simeq 57, k5k \simeq 58.
  3. Compute DoG filter k5k \simeq 59.
  4. Convolve MoB(p,q)=12πσB2exp[(px)2+(qy)22σB2]\operatorname{MoB}(p, q) = \frac{1}{2\pi \sigma_B^2} \exp\left[ -\frac{(p-x)^2 + (q-y)^2}{2 \sigma_B^2} \right]0 with MoB(p,q)=12πσB2exp[(px)2+(qy)22σB2]\operatorname{MoB}(p, q) = \frac{1}{2\pi \sigma_B^2} \exp\left[ -\frac{(p-x)^2 + (q-y)^2}{2 \sigma_B^2} \right]1: MoB(p,q)=12πσB2exp[(px)2+(qy)22σB2]\operatorname{MoB}(p, q) = \frac{1}{2\pi \sigma_B^2} \exp\left[ -\frac{(p-x)^2 + (q-y)^2}{2 \sigma_B^2} \right]2.
  5. Sum squared responses: MoB(p,q)=12πσB2exp[(px)2+(qy)22σB2]\operatorname{MoB}(p, q) = \frac{1}{2\pi \sigma_B^2} \exp\left[ -\frac{(p-x)^2 + (q-y)^2}{2 \sigma_B^2} \right]3.

Optionally, normalization by MoB(p,q)=12πσB2exp[(px)2+(qy)22σB2]\operatorname{MoB}(p, q) = \frac{1}{2\pi \sigma_B^2} \exp\left[ -\frac{(p-x)^2 + (q-y)^2}{2 \sigma_B^2} \right]4 or taking the square root enables direct comparability with RMS or device-invariant analyses.

4. Mapping DoC to Behavioral Performance in Crowding Tasks

The mapping from DoC to expected behavioral outcomes in crowding follows a parametric probabilistic model anchored in experimental psychophysics. For a given task:

  • MoB(p,q)=12πσB2exp[(px)2+(qy)22σB2]\operatorname{MoB}(p, q) = \frac{1}{2\pi \sigma_B^2} \exp\left[ -\frac{(p-x)^2 + (q-y)^2}{2 \sigma_B^2} \right]5 is the DoC of the isolated target image.
  • A 10% reduction in MoB(p,q)=12πσB2exp[(px)2+(qy)22σB2]\operatorname{MoB}(p, q) = \frac{1}{2\pi \sigma_B^2} \exp\left[ -\frac{(p-x)^2 + (q-y)^2}{2 \sigma_B^2} \right]6 maps to 1% correct identification.

Two Gaussian response curves are constructed:

  • Target:

MoB(p,q)=12πσB2exp[(px)2+(qy)22σB2]\operatorname{MoB}(p, q) = \frac{1}{2\pi \sigma_B^2} \exp\left[ -\frac{(p-x)^2 + (q-y)^2}{2 \sigma_B^2} \right]7

  • Pooling:

MoB(p,q)=12πσB2exp[(px)2+(qy)22σB2]\operatorname{MoB}(p, q) = \frac{1}{2\pi \sigma_B^2} \exp\left[ -\frac{(p-x)^2 + (q-y)^2}{2 \sigma_B^2} \right]8

with MoB(p,q)=12πσB2exp[(px)2+(qy)22σB2]\operatorname{MoB}(p, q) = \frac{1}{2\pi \sigma_B^2} \exp\left[ -\frac{(p-x)^2 + (q-y)^2}{2 \sigma_B^2} \right]9 and s(x,y;p,q)=MoF(p,q)MoB(p,q)s(x, y; p, q) = \operatorname{MoF}(p, q) - \operatorname{MoB}(p, q)0 for s(x,y;p,q)=MoF(p,q)MoB(p,q)s(x, y; p, q) = \operatorname{MoF}(p, q) - \operatorname{MoB}(p, q)1 (the empirical contrast at the crowding threshold). The predicted proportion correct is:

s(x,y;p,q)=MoF(p,q)MoB(p,q)s(x, y; p, q) = \operatorname{MoF}(p, q) - \operatorname{MoB}(p, q)2

Optionally, s(x,y;p,q)=MoF(p,q)MoB(p,q)s(x, y; p, q) = \operatorname{MoF}(p, q) - \operatorname{MoB}(p, q)3 is multiplied by the empirical ceiling (typically s(x,y;p,q)=MoF(p,q)MoB(p,q)s(x, y; p, q) = \operatorname{MoF}(p, q) - \operatorname{MoB}(p, q)4) for direct comparison to observed psychometric performance.

5. Empirical Predictive Power for Classic and Paradoxical Crowding Effects

DoC has demonstrated quantitative accuracy in predicting outcomes from a variety of crowding experiments, including:

Experiment/Authors Key Stimulus Configuration Predictive Result via DoC Model
Pelli & Tillman (2008); Freeman & Simoncelli (2011) Letter “r” with “a” flankers; varying distance and s(x,y;p,q)=MoF(p,q)MoB(p,q)s(x, y; p, q) = \operatorname{MoF}(p, q) - \operatorname{MoB}(p, q)5 DoC reproduces crowding curves as function of flanker separation
Flom, Weymouth & Kahneman (1963) Landolt-C with bar flankers at various gaps, s(x,y;p,q)=MoF(p,q)MoB(p,q)s(x, y; p, q) = \operatorname{MoF}(p, q) - \operatorname{MoB}(p, q)6 DoC predicts non-monotonic s(x,y;p,q)=MoF(p,q)MoB(p,q)s(x, y; p, q) = \operatorname{MoF}(p, q) - \operatorname{MoB}(p, q)7, mirroring minimum at critical distance
Manassi, Sayim & Herzog (2012), “Uncrowding” Vernier with s(x,y;p,q)=MoF(p,q)MoB(p,q)s(x, y; p, q) = \operatorname{MoF}(p, q) - \operatorname{MoB}(p, q)8 bar flankers, s(x,y;p,q)=MoF(p,q)MoB(p,q)s(x, y; p, q) = \operatorname{MoF}(p, q) - \operatorname{MoB}(p, q)9 DoC increases with more flankers, H×WH \times W0 improves: matches uncrowding
Harrison & Bex (2015); Pachai et al. (2016) Landolt-C with H×WH \times W1 surrounding rings (gapped/solid) Gap lowers DoC H×WH \times W2 more errors; more rings H×WH \times W3 more DoC, fewer errors

The capacity of DoC to account both for standard (distance- and eccentricity-dependent) crowding effects and for counterintuitive “uncrowding” phenomena supports its role as a general explanatory framework for early-stage contrast-driven crowding (Rodriguez et al., 2020).

6. Implementation Recommendations and Pseudocode

Practical implementation can follow the provided MATLAB-style pseudocode, which builds the DoG filter for the relevant eccentricity and convolving it with the image, then maps the result to behavioral probabilities per the described model:

H×WH \times W7 In this context, H×WH \times W4 yields the retinal field width at eccentricity, and H×WH \times W5 is the DoC for an isolated target image.

7. Scientific Significance and Implications

The DoC metric H×WH \times W6 generalizes classical image contrast concepts by encoding the geometric and topological relationships induced by early center–surround processing. Its reduction to RMS contrast in degenerate cases ensures conceptual continuity, while its predictive validity across multiple psychophysical paradigms—including those previously considered paradoxical—indicates that much of visual crowding may be attributed to early-stage contrast computations. This suggests that higher-level grouping or pooling models, while potentially relevant for "configural" or "semantic" crowding cases, may not be required for the majority of basic crowding phenomena.

Available resources, including code and datasets for DoC benchmarking, can be found at https://github.com/DartmouthGrangerLab/Contrast/ (Rodriguez et al., 2020).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Degree of Contrast (DoC).