color constancy color constancy 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 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. history ibn al-haytham gave an early explanation of color constancy by observing that the light reflected from an object is modified by the object's color. he explained that the quality of the light and the color of the object are mixed, and the visual system separates light and color. he writes:again the light does not travel from the colored object to the eye unaccompanied by the color, nor does the form of the color pass from the colored object to the eye unaccompanied by the light. neither the form of the light nor that of the color existing in the colored object can pass except as mingled together and the last sentient can only perceive them as mingled together. nevertheless, the sentient perceives that the visible object is luminous and that the light seen in the object is other than the color and that these are two properties. monge (1789), young (1807), von helmholtz (1867), hering (1920), and von kries (1902, 1905), as well as subsequent researchers helson and jeffers (1940), judd (1940), and land and mccann (1971), have all made significant contributions to the investigation of colour constancy. the idea that the occurrence of colour constancy was the consequence of unconscious inference (judd, 1940; von helmholtz, 1867) and the idea that it was the result of sensory adaptation (helson, 1943; hering, 1920) coexisted for a significant portion of this time. to clarify the nature of observers' color-constancy judgements, arend and reeves (1986) conducted the first systematic behavioural experiments. subsequently, new colour constancy models, physiological information on cortical mechanisms, and photographic colorimetric measurements of natural scenes all appeared. color vision 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. object illuminance 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 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. physiological basis 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. neural mechanism 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. cone adaptation 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 parvocellular lateral 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 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. retinex theory 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.