An object may be viewed under various conditions. For example, it may be illuminated by sunlight, the light of a fire, or a harsh electric light. In all of these situations, human vision perceives that the object has the same color: an apple always appears red, whether viewed at night or during the day. On the other hand, a camera with no adjustment for light may register the apple as having varying color. This feature of the visual system is called chromatic adaptation, or color constancy; when the correction occurs in a camera it is referred to as white balance.
Though the human visual system generally does maintain constant perceived color under different lighting, there are situations where the relative brightness of two different stimuli will appear reversed at different illuminance levels. For example, the bright yellow petals of flowers will appear dark compared to the green leaves in dim light while the opposite is true during the day. This is known as the Purkinje effect, and arises because the peak sensitivity of the human eye shifts toward the blue end of the spectrum at lower light levels.
von Kries transform 
The von Kries chromatic adaptation method is a technique that is sometimes used in camera image processing. The method is to apply a gain to each of the human cone cell spectral sensitivity responses so as to keep the adapted appearance of the reference white constant. The application of Johannes von Kries's idea of adaptive gains on the three cone cell types was first explicitly applied to the problem of color constancy by Herbert E. Ives, and the method is sometimes referred to as the Ives transform or the von Kries–Ives adaptation.
The von Kries coefficient rule rests on the assumption that color constancy is achieved by individually adapting the gains of the three cone responses, the gains depending on the sensory context, that is, the color history and surround. Thus, the cone responses from two radiant spectra can be matched by appropriate choice of diagonal adaptation matrices D1 and D2:
where is the cone sensitivity matrix and is the spectrum of the conditioning stimulus. This leads to the von Kries transform for chromatic adaptation in LMS color space (responses of long-, medium-, and short-wavelength cone response space):
This diagonal matrix D maps cone responses, or colors, in one adaptation state to corresponding colors in another; when the adaptation state is presumed to be determined by the illuminant, this matrix is useful as an illuminant adaptation transform. The elements of the diagonal matrix D are the ratios of the cone responses (Long, Medium, Short) for the illuminant's white point.
- Ives HE (1912). "The relation between the color of the illuminant and the color of the illuminated object". Trans. Illuminat. Eng. Soc. 7: 62–72. (Reprinted in: Brill, Michael H. (1995). "The relation between the color of the illuminant and the color of the illuminated object". Color Res. Appl. 20: 70–5. doi:10.1002/col.5080200112.)
- Hannah E. Smithson and Qasim Zaidi (2004). "Colour constancy in context: Roles for local adaptation and levels of reference". Journal of Vision 4 (9): 693–710. doi:10.1167/4.9.3. PMID 15493964.
- Hannah E. Smithson (2005). "Review. Sensory, computational and cognitive components of human color constancy". Philosophical Transactions of the Royal Society 360 (1458): 1329–46. doi:10.1098/rstb.2005.1633. PMC 1609194. PMID 16147525.
- Karl R. Gegenfurtner, L. T. Sharpe (1999). Color Vision: From Genes to Perception. Cambridge University Press. ISBN 0-521-00439-X.
- Gaurav Sharma (2003). Digital Color Imaging Handbook. CRC Press.
- Erik Reinhard (2006). High Dynamic Range Imaging: Acquisition, Display, and Image-Based Lighting. Morgan Kaufmann. ISBN 0-12-585263-0.
Further reading 
- CIE TC 1-52 (2004). A Review of Chromatic Adaptation Transforms. 160:2004. CIE. ISBN 978-3-901906-30-5.