Color constancy: The colors of a hot air balloon are recognized as being the same in sun and shade
Example of the Land effect. Color constancy makes the above image appear to have red, green and blue hues, especially if it is the only light source in a dark room, even though it is composed of only light and dark shades of red and white. (Click to view the full-size image for the most pronounced effect.)
Constancy makes square A appear darker than square B, when in fact they are both exactly the same shade of gray. See Checker shadow illusion.
Achieving luminance constancy by retinex filtering for image analysis
In these two pictures, the second card from the left seems to be a stronger shade of pink in the upper one than in the lower one. In fact they are the same color (since they have the same RGB values), but perception is affected by the color cast of the surrounding photo.
Color constancy is an example of subjective constancy and a feature of the human color perception system which ensures that the perceived color of objects remains relatively constant under varying illumination conditions. A green apple for instance looks green to us at midday, when the main illumination is white sunlight, and also at sunset, when the main illumination is red. This helps us identify objects.
Color vision is how we perceive the objective color, which people, animals and machines are able to distinguish objects based on the different wavelengths of light reflected, transmitted, or emitted by the object. In humans, light is detected by the eye using two types of photoreceptors, cones and rods, which send signals to the visual cortex, which in turn processes those colors into a subjective perception. Color constancy is a process that allows the brain to recognize a familiar object as being a consistent color regardless of the amount or wavelengths of light reflecting from it at a given moment.
The phenomenon of color constancy occurs when the source of illumination is not directly known. It is for this reason that color constancy takes a greater effect on days with sun and clear sky as opposed to days that are overcast. Even when the sun is visible, color constancy may affect color perception. This is due to an ignorance of all possible sources of illumination. Although an object may reflect multiple sources of light into the eye, color constancy causes objective identities to remain constant.
D. H. Foster (2011) states, "in the natural environment, the source itself may not be well defined in that the illumination at a particular point in a scene is usually a complex mixture of direct and indirect [light] distributed over a range of incident angles, in turn modified by local occlusion and mutual reflection, all of which may vary with time and position." The wide spectrum of possible illuminances in the natural environment and the limited ability of the human eye to perceive color means that color constancy plays a functional role in daily perception. Color constancy allows for humans to interact with the world in a consistent or veridical manner and it allows for one to more effectively make judgements on the time of day.
The physiological basis for color constancy is thought to involve specialized neurons in the primary visual cortex that compute local ratios of cone activity, which is the same calculation that Land's retinex algorithm uses to achieve color constancy. These specialized cells are called double-opponent cells because they compute both color opponency and spatial opponency. Double-opponent cells were first described by Nigel Daw in the goldfish retina. There was considerable debate about the existence of these cells in the primate visual system; their existence was eventually proven using reverse-correlation receptive field mapping and special stimuli that selectively activate single cone classes at a time, so-called "cone-isolating" stimuli. Human brain imaging evidence strongly suggests that a critical cortical locus for generating color constancy is located in cortical area V4, damage in which leads to the syndrome of cerebral achromatopsia.
Color constancy works only if the incident illumination contains a range of wavelengths. The different cone cells of the eye register different but overlapping ranges of wavelengths of the light reflected by every object in the scene. From this information, the visual system attempts to determine the approximate composition of the illuminating light. This illumination is then discounted in order to obtain the object's "true color" or reflectance: the wavelengths of light the object reflects. This reflectance then largely determines the perceived color.
There are two possible mechanisms for color constancy. The first mechanism is unconscious inference. The second view holds this phenomenon to be caused by sensory adaptation. Research suggests color constancy to be related changes in retinal cells as well as cortical areas related to vision. This phenomenon is most likely attributed to changes in various levels of the visual system.
Cones, specialized cells within the retina, will adjust relative to light levels within the local environment. This occurs at the level of individual neurons. However, this adaptation is incomplete.Chromatic adaptation is also regulated by processes within the brain. Research in monkeys suggest that changes in chromatic sensitivity is correlated to activity in parvocellularlateral geniculate neurons. Color constancy may be both attributed to localized changes in individual retinal cells or to higher level neural processes within the brain.
Metamerism, the perceiving of colors within two separate scenes, can help to inform research regarding color constancy. Research suggests that when competing chromatic stimuli are presented, spatial comparisons must be completed early in the visual system. For example, when subjects are presented stimuli in a dichoptic fashion, an array of colors and a void color, such as grey, and are told to focus on a specific color of the array, the void color appears different than when perceived in a binocular fashion. This means that color judgements, as they relate to spatial comparisons, must be completed at or prior to the V1 monocular neurons. If spatial comparisons occur later in the visual system such as in cortical area V4, the brain would be able to perceive both the color and void color as though they were seen in a binocular fashion.
The "Land effect" is the capacity to see full color (if muted) images solely by looking at a photo with red and gray wavelengths. The effect was discovered by Edwin H. Land, who was attempting to reconstruct James Clerk Maxwell's early experiments in full-colored images. Land realized that, even when there were no green or blue wavelengths present in an image, the visual system would still perceive them as green or blue by discounting the red illumination. Land described this effect in a 1959 article in Scientific American. In 1977, Land wrote another Scientific American article that formulated his "retinex theory" to explain the Land effect. The word "retinex" is a blend of "retina" and "cortex", suggesting that both the eye and the brain are involved in the processing. Land, with John McCann, also developed a computer program designed to imitate the retinex processes taking place in human physiology.
The effect can be experimentally demonstrated as follows. A display called a "Mondrian" (after Piet Mondrian whose paintings are similar) consisting of numerous colored patches is shown to a person. The display is illuminated by three white lights, one projected through a red filter, one projected through a green filter, and one projected through a blue filter. The person is asked to adjust the intensity of the lights so that a particular patch in the display appears white. The experimenter then measures the intensities of red, green, and blue light reflected from this white-appearing patch. Then the experimenter asks the person to identify the color of a neighboring patch, which, for example, appears green. Then the experimenter adjusts the lights so that the intensities of red, blue, and green light reflected from the green patch are the same as were originally measured from the white patch. The person shows color constancy in that the green patch continues to appear green, the white patch continues to appear white, and all the remaining patches continue to have their original colors.
Color constancy is a desirable feature of computer vision, and many algorithms have been developed for this purpose. These include several retinex algorithms. These algorithms receive as input the red/green/blue values of each pixel of the image and attempt to estimate the reflectances of each point. One such algorithm operates as follows: the maximal red value rmax of all pixels is determined, and also the maximal green value gmax and the maximal blue value bmax. Assuming that the scene contains objects which reflect all red light, and (other) objects which reflect all green light and still others which reflect all blue light, one can then deduce that the illuminating light source is described by (rmax, gmax, bmax). For each pixel with values (r, g, b) its reflectance is estimated as (r/rmax, g/gmax, b/bmax). The original retinex algorithm proposed by Land and McCann uses a localized version of this principle.
Although retinex models are still widely used in computer vision, actual human color perception has been shown to be more complex.
^"Discounting the illuminant" is a term introduced by Helmholtz: McCann, John J. (March 2005). "Do humans discount the illuminant?". In Bernice E. Rogowitz; Thrasyvoulos N. Pappas; Scott J. Daly (eds.). Proceedings of SPIE. Human Vision and Electronic Imaging X. Vol. 5666. pp. 9–16. doi:10.1117/12.594383.
^Judd, D. B. (1940). "Hue saturation and lightness of surface colors with chromatic illumination". Journal of the Optical Society of America. 30: 2–32. doi:10.1364/JOSA.30.000002.
^Creutzfeldt, O. D.; Crook, J. M.; Kastner, S.; Li, C.-Y.; Pei, X. (1991). "The neurophysiological correlates of colour and brightness contrast in lateral geniculate neurons: 1. Population analysis". Experimental Brain Research. 87 (1): 3–21. doi:10.1007/bf00228503. PMID1756832. S2CID1363735.
^Creutzfeldt, O. D.; Kastner, S.; Pei, X.; Valberg, A. (1991). "The neurophysiological correlates of colour and brightness contrast in lateral geniculate neurons: II. Adaptation and surround effects". Experimental Brain Research. 87 (1): 22–45. doi:10.1007/bf00228504. PMID1756829. S2CID75794.
^Hurlbert, A. C.; Bramwell, D. I.; Heywood, C.; Cowey, A. (1998). "Discrimination of cone contrast changes as evidence for colour constancy in cerebral achromatopsia". Experimental Brain Research. 123 (1–2): 136–144. doi:10.1007/s002210050554. PMID9835402. S2CID1645601.
^Barghout, Lauren. "Visual Taxometric Approach to Image Segmentation Using Fuzzy-Spatial Taxon Cut Yields Contextually Relevant Regions." Information Processing and Management of Uncertainty in Knowledge-Based Systems. Springer International Publishing, 2014.
^Bertalmío, Marcelo; Caselles, Vicent; Provenzi, Edoardo (2009). "Issues About Retinex Theory and Contrast Enhancement". International Journal of Computer Vision. 83: 101–119. doi:10.1007/s11263-009-0221-5. S2CID4613179.
^Hurlbert, A.C.; Wolf, K. The contribution of local and global cone-contrasts to colour appearance: a Retinex-like model. In: Proceedings of the SPIE 2002, San Jose, CA
with L.C. Farney and M.M. Morse. (1971) "Solubilization by incipient development" Photogr. Sci. Eng. 15(1):4–20. Reprinted in McCann, vol. I, pp. 157–73. Based on lecture in Boston, June 13, 1968.
with J.J. McCann. (1971) "Lightness and retinex theory" J. Opt. Soc. Am. 61(1):1–11. Reprinted in McCann, vol. III, pp. 73–84. Based on the Ives Medal lecture, October 13, 1967.
(1974) "The retinex theory of colour vision" Proc. R. Inst. Gt. Brit. 47:23–58. Reprinted in McCann, vol. III, pp. 95–112. Based on Friday evening discourse, November 2, 1973.
(1977) "The retinex theory of color vision" Sci. Am. 237:108-28. Reprinted in McCann, vol. III, pp. 125–42.
with H.G. Rogers and V.K. Walworth. (1977) "One-step photography" In Neblette's Handbook of Photography and Reprography, Materials, Processes and Systems, 7th ed., J. M. Sturge, ed., pp. 259–330. New York: Reinhold. Reprinted in McCann, vol. I, pp. 205–63.
(1978) "Our 'polar partnership' with the world around us: Discoveries about our mechanisms of perception are dissolving the imagined partition between mind and matter" Harv. Mag. 80:23–25. Reprinted in McCann, vol. III, pp. 151–54.
with D.H. Hubel, M.S. Livingstone, S.H. Perry, and M.M. Burns. (1983) "Colour-generating interactions across the corpus callosum" Nature 303(5918):616-18. Reprinted in McCann, vol. III, pp. 155–58.
(1983) "Recent advances in retinex theory and some implications for cortical computations: Color vision and the natural images" Proc. Natl. Acad. Sci. U. S. A. 80:5136–69. Reprinted in McCann, vol. III, pp. 159–66.
(1986) "An alternative technique for the computation of the designator in the retinex theory of color vision" Proc. Natl. Acad. Sci. U. S. A. 83:3078–80.