550 likes | 818 Views
Color. Frank Dellaert Many slides by Jim Rehg Some slides by David Forsyth. Outline. Color and Radiometry Human Color Perception Color spaces Lightness and Color Constancy Physics-based Vision: Specularities. Color and Radiometry. What is color ?. What is Color?.
E N D
Color Frank Dellaert Many slides by Jim Rehg Some slides by David Forsyth
Outline • Color and Radiometry • Human Color Perception • Color spaces • Lightness and Color Constancy • Physics-based Vision: Specularities
Color and Radiometry • What is color ?
What is Color? • A perceptual attribute of objects and scenes constructed by the visual system • A quantity related to the wavelength of light in the visible spectrum • A box of Crayola crayons • A significant industry with conferences, standards bodies, etc. • A challenge • “There are no second-rate brains in color vision” – Edwin Land
Why is Color Important? • In animal vision • food vs nonfood • identify predators and prey • Check health, fitness, etc. of other individuals. • In computer vision • Skin finder • Segment an image
Illumination Spectra Blue skylight Tungsten bulb
Human Color Perception • What is the retinal basis for color perception in humans?
Human Photoreceptors Fovea Periphery
Human Cone Sensitivities • Spectral sensitivity of L, M, S cones in human eye
Color Matching Process Basis for industrial color standards
Color Matching Experiment 1 Image courtesy Bill Freeman
Color Matching Experiment 1 Image courtesy Bill Freeman
Color Matching Experiment 1 Image courtesy Bill Freeman
Color Matching Experiment 1 Image courtesy Bill Freeman
Color Matching Experiment 2 Image courtesy Bill Freeman
Color Matching Experiment 2 Image courtesy Bill Freeman
Color Matching Experiment 2 Image courtesy Bill Freeman
Color Matching Experiment 2 Image courtesy Bill Freeman
Conclusion from Color Matching • Three primaries are sufficient for most people to reproduce arbitrary colors. Caveats: • Some people use different weights, a consequence of a chromosomal disorder. • Elderly and neurologically-impaired may require fewer primaries • Random variation in sample population
Caveat: Context Matters ! Figure courtesy of D. Forsyth
Caveat: Context Matters ! Figure courtesy of D. Forsyth
Caveat: Context Matters ! Figure courtesy of D. Forsyth
Principle of Univariance • Perceived color depends solely on cone responses From “Foundations of Vision” by B. Wandell
Color Spaces • Use color matching functions to define a coordinate system for color. • Each color can be assigned a triple of coordinates with respect to some color space (e.g. RGB). • Devices (monitors, printers, projectors) and computers can communicate colors precisely.
Choose primaries A, B, C Given energy function what amounts of primaries will match it? For each wavelength, determine how much of A, of B, and of C is needed to match that wavelength = color matching functions Color matching functions Then our match is:
RBG Color Matching • monochromatic • 645.2, 526.3, 444.4 nm. • negative parts -> some colors can be matched only subtractively. Figure courtesy of D. Forsyth
CIE XYZ Color Matching CIE XYZ: Color matching functions are positive everywhere, but primaries are imaginary. Usually draw x, y, where x=X/(X+Y+Z) y=Y/(X+Y+Z) Figure courtesy of D. Forsyth
Geometry of Color (CIE) • Perceptual color spaces are non-convex • Three primaries can span the space, but weights may be negative. • Curved outer edge consists of single wavelength primaries
RGB Color Space Many colors cannot be represented (phosphor limitations)
Uniform color spaces • McAdam ellipses (next slide) demonstrate that differences in x,y are a poor guide to differences in color • Construct color spaces so that differences in coordinates are a good guide to differences in color.
Figures courtesy of D. Forsyth McAdam ellipses
Human Color Constancy • Color constancy: hue and saturation • Lightness constancy: gray-level • Humans can perceive • Color a surface would have under white light (surface color) • Color of reflected light (separate surface color from measured color) • Color of illuminant (limited)
Land’s Mondrian Experiments • Squares of color with the same color radiance yield very different color perceptions Photometer: 1.0, 0.3, 0.3 Photometer: 1.0, 0.3, 0.3 Red Red Blue Blue Colored light White light Audience: “Red” Audience: “Blue”
Basic Model for Lightness Constancy • Assumptions: • Planar frontal scene • Lambertian reflectance • Linear camera response • Camera model: • Modeling assumptions for scene • Piecewise constant albedo • Slowly-varying Illumination
Algorithm Components • Goal: what surfaces look like in white light • Process I: relative brightness. • Process II: absolute reference
1-D Lightness “Retinex” Threshold gradient image to find surface (patch) boundaries Figure courtesy of D. Forsyth
1-D Lightness “Retinex” Figure courtesy of D. Forsyth Integration to recover surface lightness (unknown constant)
Extension to 2-D • Spatial issues • Integration becomes much harder • Recover of absolute reference • Brightest patch is white • Average reflectance across scene is known • Gamut is known • Known reference (color chart, skin color…)
Color Retinex Images courtesy John McCann