You are on page 1of 4

Natural scene statistics as the universal basis of color

context effects
Fuhui Long* and Dale Purves
Center for Cognitive Neuroscience and Department of Neurobiology, Box 90999, Levine Science Research Center, Room B243E, Research Drive,
Duke University, Durham, NC 27708

Contributed by Dale Purves, October 2, 2003

The color context effects referred to as color contrast, constancy, measured the radiance of each image pixel as a function of
and assimilation underscore the fact that color percepts do not wavelength (3–5). These images were obtained with the intention
correspond to the spectral characteristics of the generative stimuli. of representing typical natural environments and have been used
Despite a variety of proposed theories, these phenomena have previously to investigate the distributions of spectral returns,
resisted explanation in a single principled framework. Using a reflectances, and illuminants (4–5).
hyperspectral image database of natural scenes, we here show Rectangular regions of fixed size (typically 10% of the overall
that color contrast, constancy, and assimilation are all predicted by image size) were randomly sampled in all of the images in the
the statistical organization of spectral returns from natural visual database and analyzed in terms of target and context (Fig. 2). To
environments. obtain samples pertinent to color contrast, constancy, and
assimilation stimuli by using the same method, the target was
defined by spatially isolated patches of the same size (1.5% of the
I t has long been appreciated that color percepts, like other
perceived visual qualities, do not correspond in any simple way
to the distribution of light energy in spectral returns. Thus, two
region sampled) and value in the 1931 Commission Internatio-
nale de L’Eclairage (CIE) chromaticity diagram (6) (Fig. 2 B2
visual targets generating identical spectra can, as a consequence and C2); the context was defined as the remaining area. When
of context, elicit different color percepts (Fig. 1 A and C), the number of target and contextual elements was relatively
whereas different spectral returns can elicit more similar colors small (e.g., ⬍10), the samples approximated the configuration of
(Fig. 1 B and D). In color contrast and constancy stimuli, the color contrast and constancy stimuli (see Fig. 1 A and B); when,
colors generated by the targets are shifted away from the colors however, the number of the patches was relatively large (e.g.,
elicited by their respective surrounds (Fig. 1 A and B, respec- ⬎20), the samples more nearly approximated the configuration
tively). On the other hand, in color assimilation stimuli (Fig. 1 C of color assimilation stimuli (see Fig. 1 C and D).
and D), highly repetitive spatial patterns cause the apparent Separating each sampled region into target and context was
colors of the patterned elements to be shifted toward each other. carried out in two steps. First, a small patch with a relatively
The variety and complexity of these contextual effects have uniform spectrum (SD of the chromaticity of all of the pixels in
made it extraordinarily difficult to rationalize color perception in the patch divided by their mean chromaticity ⫽ ⬍0.03) was
any of the several conceptual frameworks that have been pro- selected near the center of the region being analyzed (see boxed
posed (see Discussion). Here, we examine the idea that color patch in Fig. 2 B2 and C2). Using this patch as a reference, the
contrast, constancy, and assimilation are all generated by past remaining area of the region was sampled to identify all of the
experience with the statistical organization of spectral returns other patches of similar chromaticity. To be accepted as a
arising from natural visual environments. The biological ratio- component of the target (see definition above), any given patch
nale underlying this idea is that, because of the conflation of the had to be at least one pixel away from any other patch, both
generative sources of visual stimuli in the retinal image, spectral horizontally and vertically. The set of all such patches was then
stimuli are inherently ambiguous (1, 2). Accordingly, if visually defined as the target in the sampled region, as illustrated by the
guided behavior is to be successful, visual percepts must in some patches on the black background in Fig. 2 B2 and C2. In a second
way be determined by the statistical organization of spectral step, the context of the target was identified in each sample. If
returns in natural environments that humans have typically the chromaticity of the area remaining in the region sampled was
encountered, rather than by the physical properties of the relatively uniform, it was accepted as the context of the target
particular stimulus giving rise to the retinal image (2). If this (see Fig. 2 B3 and C3). If the remaining area failed to meet this
supposition is correct, the perceived color of a target in any given criterion, the sample was excluded from further analysis and the
stimulus should be predicted by the typical chromaticity of the procedure was repeated beginning with another region in the
target in the chromatic and spatial contexts that occur in natural image. Although the set of target and context areas identified in
scenes. this way in natural images is inevitably less uniform than in the
This hypothesis was tested by analyzing the co-occurrence of ‘‘laboratory’’ stimuli illustrated in Fig. 1, this approach identifies
targets and contexts in a database of hyperspectral images of the relevant stimulus categories as they occur in normal viewing
natural scenes. A large number of samples was collected by using (see Discussion for further explanation of the underlying ratio-
criteria that mimicked the spatial complexity and contextual nale of this approach). In this way, we generated a total of ⬇1.5
chromaticity of the standard color contrast, constancy, and million samples that approximated, as closely as possible in
assimilation stimuli illustrated in Fig. 1 (see Fig. 2 and Methods). natural images, the color contrast, constancy, and assimilation
In this way, we could evaluate the conditional probability stimuli that have generally been used in psychophysical studies.
distribution of the spectral characteristics of a target, given the
spectral characteristics of the context and the spatial complexity Statistical Analysis. We next computed the chromaticity of these
of the sample. We then asked whether the perceived color of the components (denoted Ct and Cc) by averaging the values of all
target in such stimuli is predicted by these distributions.

Methods Abbreviation: CIE, Commission Internationale de L’Eclairage.


Sampling the Hyperspectral Database. The database comprised 41 *To whom correspondence should be addressed. E-mail: long@neuro.duke.edu.
natural scenes obtained with hyperspectral techniques that © 2003 by The National Academy of Sciences of the USA

15190 –15193 兩 PNAS 兩 December 9, 2003 兩 vol. 100 兩 no. 25 www.pnas.org兾cgi兾doi兾10.1073兾pnas.2036361100


NEUROSCIENCE
Fig. 1. Color context effects. (A) Color contrast. The two spectrally identical
central targets (see Insets above) appear different when placed in different
chromatic contexts. (B) Color constancy. Two spectrally different central tar-
gets appear more similar when embedded in different chromatic contexts. (C)
Color assimilation (spectrally identical targets). Spectrally identical targets
(the small squares) appear different in the context of the greenish lines on the
left vs. the reddish lines on the right. (D) Color assimilation (spectrally different
targets). Iteration of the stimulus elements can also make spectrally different
targets appear more similar. Note that the contexts in A and B make the color
appearance of the targets shift away from that of the contexts; the contexts
in C and D, however, shift the color appearance of the targets toward that of
the contexts.

of the pixels in the target and context, respectively. The number


of patches in the target of each sample (denoted Nt) was also
determined as an index of the overall spatial complexity of the
stimulus. Using this information, we analyzed the probability
distribution of the spectral characteristics of the target in terms Fig. 2. Sampling of the organization of spectral returns in natural images.
of the CIE chromaticity diagram, given the context and spatial (A) Representative image taken with a calibrated hyperspectral camera by
complexity of the samples (i.e., P[Ct兩Cc,Nt]). This determination using 31 optical interference filters to span the visible light spectrum (400 –700
nm) at 10-nm intervals (4). The image resolution was 256 ⫻ 256, with each pixel
of co-occurrence was made by accumulating and normalizing the
subtending ⬇0.056 ⫻ 0.056°. To remove the influence of the chromatic
frequency of occurrence of each possible combination of target properties of the illuminants under which the hyperspectral images were
chromaticity, context chromaticity, and number of iterated taken, the radiance spectrum of each pixel was divided by the radiance
elements in the samples. We then asked how the probability spectrum of a reference gray calibration card that had been placed in each
distribution of the chromaticity of a target changes as a function scene. (B1) Blow-up of one of the boxed regions in A. (B2) Each such region was
of different chromatic contexts and spatial complexity. Finally, analyzed by first assessing the spectral characteristics of a patch near the
we computed the average difference between the chromaticity of center of the region, representing an element of the potential target (white
outline). If the spectral characteristics of this patch were relatively uniform
the target and the context as a function of the number of iterated
(see Methods), it was accepted as a target element and the rest of the region
elements in the samples to provide a more general assessment of was evaluated for spectrally similar areas (in this example, the five other
the statistical relationship among the relevant variables. squares); the set of such spectrally similar areas was then defined as the target.
(B3) The remaining area of the scene (i.e., all of the region except the
Results blacked-out target set) was defined as the context. (C1) Example of another
Statistics of Target Chromaticities in Natural Scenes. Fig. 3 shows the region of the image in A, similarly analyzed, in which the target comprises a
means of the probability distribution of target chromaticity for greater number of elements. (C2) As before, the target elements were iden-
two values of Cc and a set of different values of Nt, superimposed tified by their spectral similarity to a central reference patch (white outline).
(C3) The context defined by exclusion, as in B3.
on the corresponding area of the 1931 CIE chromaticity diagram.
As might be expected, the typical chromaticities of targets in
different chromatic contexts in natural scenes are different.
Thus, all of the target chromaticity values in a greenish (circles) targets in a greenish context change from a yellowish green to
context (Cc ⫽ [0.32, 0.36]; square) occupy systematically differ- a green that is very close to the chromaticity of the context.
ent positions in the CIE chromaticity diagram compared with the Conversely, the mean values of the distributions for targets in a
target values in a reddish (asterisks) context (Cc ⫽ [0.42, 0.38]; reddish context change from a bluish-red to the reddish chro-
triangle). Furthermore, as the number of iterated elements maticity of the context as the spatial complexity increases. Thus,
increases (arrows), the mean values of the distributions for as the complexity of the sample grows, the typical chromaticity

Long and Purves PNAS 兩 December 9, 2003 兩 vol. 100 兩 no. 25 兩 15191
Fig. 4. Average chromaticity difference between target and context (兩Cc-Ct兩)
as a function of the number of the iterated elements in the sampled targets
(Nt).

the two central targets are physically the same. In a spectrally


neutral context, the central targets should therefore occupy the
same position in subjective color space. In different spectral
contexts, however, their positions in this space will, according to
the hypothesis being tested here, be changed by the typical
spectral characteristics of the target in the corresponding spec-
tral context and spatial complexity found in natural scenes. The
statistical analysis carried out shows that the characteristic
chromaticity of a target embedded in a stimulus whose spatial
complexity is similar to that of standard color contrast and
constancy stimuli tends to be more reddish when the context is
greenish and more greenish when the context is reddish (or,
Fig. 3. The mean of the probability distributions derived from the database
more generally, spectrally different targets and contexts tend to
[i.e., P(Ct 兩Cc, Nt)] in an example where Cc ⫽ [0.32, 0.36] (a greenish context have opposing chromaticities in the CIE diagram) (see Fig. 3).
whose chromaticity is indicated by the square symbol), compared to an Thus, on empirical grounds, a target in a stimulus with a red
example where Cc ⫽ [0.42, 0.38] (a reddish context whose chromaticity is context should appear more greenish, whereas the same target
indicated by the triangle); Nt varied from 1 to 25 in both cases, increasing in the in a green context will appear more reddish (see Fig. 1 A).
direction indicated by the arrows. The mean values in the greenish and reddish In color constancy stimuli, however, the spectral returns of the
chromatic contexts (circles and asterisks, respectively) are superimposed on a two central targets are physically different from one another
blow-up of the corresponding region of the 1931 CIE chromaticity diagram.
(e.g., Fig. 1B). Thus, the targets in a neutral context should
See text for further explanation.
occupy different positions in subjective color space. In this case,
the positions of the colors seen in different spectral contexts will
of targets in natural scenes changes from a chromaticity opposite be shifted toward each other by the typical characteristics of the
that of the context toward a value similar to that of the context. target in the corresponding context and degree of spatial com-
plexity in natural scenes (see Fig. 3). In Fig. 1B, for example, the
Average Chromaticity as a Function of Sample Complexity. To ex- greenish target in a green context appears more reddish because
amine more generally how the average chromaticity difference that is the typical chromaticity of the target in such contexts and
between target and context in natural images varies as a function spatial complexities in natural scenes. Conversely, the yellowish
of stimulus complexity, we determined the average chromaticity target in a red context appears more greenish because that is the
difference (兩Ct – Cc兩) as a function of spatial complexity of the typical chromaticity of the target in such contexts. As a result, the
sample (Nt) (Fig. 4). As Nt increases, the difference 兩Ct – Cc兩 spectrally different central targets in Fig. 1B (and all related
decreases monotonically. In other words, the chromaticity of stimuli) appear more similar than expected on the basis of their
target and context tend to become more similar as the samples spectral returns.
comprise more iterated elements. By the same token, in the color assimilation stimuli (e.g., Fig.
1 C and D), the positions of spectrally identical targets will be
Probabilistic Explanation of Color Context Effects. If the perceptual shifted in subjective color space by the typical spatial and
effects of spectral stimuli are indeed generated by the statistical chromatic configuration of the samples of such stimuli in natural
organization of spectral returns in the visual environments that scenes. Analysis of the relevant samples shows that, unlike the
humans have always experienced, the perceived colors of the simpler patterns of the contrast and constancy samples, the
targets in stimuli such as those in Fig. 1 should be affected by the chromaticities of highly iterated targets tend to be greenish in a
typical spectral characteristics of targets in the relevant spectral green context and reddish in a red context (see Figs. 3 and 4).
contexts and spatial complexities encountered in natural scenes Thus, the perceived color of the spectrally identical yellowish
(see Figs. 3 and 4). targets in the stimulus in Fig. 1C would be expected to be
In color contrast stimuli (e.g., Fig. 1 A), the spectral returns of greenish in a green context and reddish in a red context, as is the

15192 兩 www.pnas.org兾cgi兾doi兾10.1073兾pnas.2036361100 Long and Purves


case. In Fig. 1D, however, the typical chromaticity of the target target chromaticity values in different chromatic contexts are
in the corresponding spatial and chromatic contexts in natural different (see Fig. 3), and, as the spatial complexity of the sample
scenes would cause the positions of the spectrally different increases, the chromaticity of the target tends to change from a
targets (yellowish and greenish) to shift toward each other, as is value opposite that of the context to a value similar to that of the
again evident in Fig. 1. context (see Figs. 3 and 4).
In summary, the perceived colors of the targets in color An instantiation of these statistical facts by the visual system
contrast, constancy, and assimilation stimuli are all predicted by presumably serves to generate visual percepts that promote
the way that their positions are shifted in subjective color space appropriate visually guided behavior in response to inherently
by the typical co-occurrence in natural scenes of the spectral ambiguous visual stimuli (2, 24). Accordingly, the perceived
return of the targets together with the relevant spectral context color of a target is determined by how the positions of the
and spatial configuration. spectral returns of targets are shifted in subjective color space by
the spectral context and spatial complexity that humans have
Discussion previously encountered in the spectral patterns of light that have
In previous studies, color contrast and constancy have most always fallen on the retina.
often been attributed to the lateral interactions among neurons A remaining question is why, in broad terms, sampling the
at some level of the visual system (7–12). In this conception, a various configurations illustrated in Fig. 1 in a natural scene
neural integration of spectral contrast ratios in the relevant database generates these statistical biases. Recall that we ob-
stimuli generates these contextual effects. This mechanism, tained samples pertinent to color contrast, constancy, and
however, should make the apparent colors of the elements in assimilation stimuli by identifying regions in natural scenes in
color assimilation stimuli shift away from each other, which is the which target and context were relatively uniform. Because no
opposite of what is seen (see Fig. 1 C and D). In addition, this other constraints were used, the samples effectively include all
sort of explanation cannot rationalize perceptual phenomena possible combinations underlying such stimuli in natural scenes.
such as the Wertheimer–Benary illusion and related stimuli that Thus, any statistical bias obtained in the probability distributions
depend on the spatial attributes of the stimulus (13–16). Indeed, reflects the intrinsic characteristics of natural environments. The

NEUROSCIENCE
it is not difficult to create stimuli that elicit color perceptions fact that the typical chromaticity of a target in natural scenes is
opposite that of the context, and that it tends to change to a value
opposite those predicted by theories based on lateral integration
similar to that of the context as the spatial complexity of the
(17–18).
sample increases, can be understood intuitively. When only one
Another attempt to rationalize color context effects has
or a few target elements are identified in a spectrally homoge-
appealed to multiple spatial frequency filtering mechanisms
nous surround (as in a color contrast and constancy stimuli), the
(19–23). In this scenario, color contrast is taken to be generated
real-world sources of target and context tend to be physically
by neuronal responses tuned to low spatial frequency stimuli and different surfaces in the same illumination; on the other hand,
assimilation by neuronal responses tuned to both low and high when many target elements are found in a spectrally homoge-
spatial frequency components. Although this further mechanism nous surround, the sources of the target and context are likely be
is helpful in accounting for some color context effects, color physically similar surfaces. (This does not mean, of course, that
perceptual phenomena that depend on scene properties such the target and context in any stimulus with high spatial com-
as orientation and depth also resist this sort of explanatory plexity will be perceived to be the same color; recall that in this
framework. framework the perceived color of a target is determined by how
Given these uncertainties and the implications of other recent the position of a spectral return is shifted in subjective color
work on color perception (2, 24) the hypothesis that color space by the corresponding spectral contexts and spatial com-
contrast, constancy, and assimilation effects (and by inference all plexity that humans have typically encountered.) Because any
color percepts) are generated by the statistical organization of visual stimulus conflates its generative physical sources (e.g.,
the spectral returns arising from natural visual environments is reflectance and illumination), these systematic changes in the
an attractive one. The present analysis of target and context probable physical sources conveyed by the statistical organiza-
samples that approximate standard color contrast, constancy, tion of the spectral returns in natural scenes will systematically
and assimilation stimuli show that the probability distribution of change the perceptual effects of inherently ambiguous stimuli.
the spectral characteristics of targets in nature vary systemati-
cally as a function of the spectral characteristics of the context We thank Catherine Howe, Shuro Nundy, David Schwartz, James
and its spatial complexity. Thus, the probability distributions of Voyvodic, and Zhiyong Yang for helpful criticism.

1. Marr, D. (1982) Vision: A Computational Investigation into Human Represen- 9. Judd, D. B. (1940) J. Opt. Soc. Am. A 30, 2–32.
tation and Processing of Visual Information (Freeman, San Francisco). 10. Land, E. H. & MaCann, J. J. (1971) J. Opt. Soc. Am. A 61, 1–11.
2. Purves, D. & Lotto, R. B. (2003) Why We See What We Do: An Empirical Theory 11. Hurvich, L. M. (1981) Color Vision (Sinauer, Sunderland, MA)
of Vision (Sinauer, Sunderland, MA). 12. Land, E. H. (1986) Vision Res. 26, 7–21.
3. Brelstaff, G., Parraga, A., Troscianko, T. & Carr, D. (1995) in Proceedings of 13. Benary, W. (1924) Psychol. Forsch. 5, 131–142.
SPIE 2587: Geographic Information Systems, Photogrammetry, and Geological兾 14. Knill, D. & Kersten, D. (1991) Nature 351, 228–230.
Geophysical Remote Sensing, eds. Lurie, J. B., Pearson, J. J. & Zillioli, E. 15. Adelson, E. H. (1993) Science 262, 2042–2044.
(Internatl. Soc. Opt. Eng., Bellingham, WA), pp. 150–159. 16. Brown, R. O. & MacLeod, D. I. (1997) Curr. Biol. 7, 844–849.
4. Parraga, C. A., Brelstaff, G. J., Troscianko, T. & Moorhead, I. (1998) J. Opt. 17. White, M. (1979) Perception 8, 413–416.
Soc. Am. A 15, 563–569. 18. Todorovic, D. (1997) Perception 26, 379–394.
5. Chiao, C. C., Cronin, T. W. & Osorio, D. (2000) J. Opt. Soc. Am. A 7, 218–224. 19. Blaskeslee, B. & McCourt, M. E. (1997) Vision Res. 37, 2849–2869.
6. Commission Internationale de L’Eclairage (1986) Colorimetry (Central Bureau 20. McCourt, M. E. (1982) Vision Res. 22, 119–134.
of the Commission Internationale de L’Eclairage, Vienna), 2nd Ed., Publ. 15.2. 21. Zaidi, Q. (1989) Vision Res. 29, 691–697.
7. Hering, E. (1920) Grundzüge der Lehre von Lichtsinn (Springer, Berlin), trans. 22. DeValois, R. L. & DeValois, K. K. (1988) Spatial Vision (Oxford Univ. Press,
Hurvich, L. M. & Jameson, D. J. (1964) Outlines of a Theory of the Light Sense New York).
(Harvard Univ. Press, Cambridge, MA). 23. Moulden, B. & Kingdom, F. A. (1991) Vision Res. 31, 1999–2008.
8. Helson, H. (1938) J. Exp. Psychol. 23, 439–471. 24. Lotto, R. B. & Purves, D. (2000) Proc. Natl. Acad. Sci. USA 97, 12834–12839.

Long and Purves PNAS 兩 December 9, 2003 兩 vol. 100 兩 no. 25 兩 15193

You might also like