Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Chapter 6: Color Preview 。 The world is colorless 。 Color is caused by the vision system responding differently to different wavelengths of light 。 Brightness.

Similar presentations


Presentation on theme: "1 Chapter 6: Color Preview 。 The world is colorless 。 Color is caused by the vision system responding differently to different wavelengths of light 。 Brightness."— Presentation transcript:

1 1 Chapter 6: Color Preview 。 The world is colorless 。 Color is caused by the vision system responding differently to different wavelengths of light 。 Brightness is caused by summing different magnitudes of wavelengths of light Cortex: Ordered Feature Map

2 2 6.1 Physics of Color A color we perceive is resulting from (a) the color of object surface (b) the colors of light sources e.g. Tonotopic maps: auditory cortex Geographic maps: hippocampal cortex Somatic maps: somatosensory cortex Retinotectal maps: visual cortex visual cortex auditory cortex

3 3 6.1.1 Colored Lights ○ Spectral (wavelength) units (quantities) -- Units with the phrase “per unit wavelength” e.g., Spectral radiance Spectral irradiance Spectral BRDF Spectral exitance

4 4 The distribution of spectral radiation where : color temperature, h : Plank’s constant k : Boltzmann’s constant c : speed of light, : wavelength 6.1.2 The Color of Sources ○ Black body: absorbs light without reflection

5 5 ○ Sun – a distant bright point source Light from the sun (i) is scattered by the air, (ii) strikes a surface, and (iii) is reflected into camera or eye Airlight (Skylight) Sunlight (Daylight)

6 6 (b) Natural model – air emits a constant amount of light per unit volume sky is substantially brighter at the horizon than at the zenith because a viewing ray along the horizon passes through more sky However, ○ Sky: (a) Crude geometrical model -- a hemisphere with constant exitance

7 7 ○ Illumination during the day by: (a) Daylight (sunlight), (b) Skylight (airlight) wavelength

8 8 ○ Application – Dehazing

9 9 An image is contributed by two light sources I = D + A, where D: direct light, A: airlight

10 10 Direct light : the light emitted from the object and passes through the air x : image pixel; z: object distance J(x) : light emitted from object surface t(z) : atmosphere transmittance scatter function

11 11 Airlight A: the amount of light within the conical volume

12 12

13 13

14 14

15 15 (b) The intensity of spectral radiation scattered by a unit volume of air depends on the 4th power of frequency, i.e., (c) The sun looks yellow; the sky looks blue atmosphere ○ (a) Light of a long wavelength can travel farther than light of a short wavelength (Rayleigh scattering)

16 16 ○ Application - Shadow Detection Cast shadows Self shadowsShadow

17 17 (1) Intensity test -- a shadow area should be darker than its corresponding background areas InputBackgroundForeground Dark regions

18 18 (2) Blue ratio test -- at a shadow point p Shadow areas Non-shadow area

19 19 (needs to be proven)

20 20 Shadow areas Dark regions (3) Reflectance test -- distinguish between cast and self shadows Non-shadow image area Shadow image areas

21 21 Normalization: Training of different materials Self shadows Cast shadows

22 22 Fluorescent light: high speed electrons strike gas; gas releases ultraviolet radiation; the radiation causes phosphors to fluoresce ○ Artificial Illuminants Incandescent light: metal filament (e.g., tungsten) is heated to a high temperature Arc lamp: contains gaseous metal (e.g., mercury) and inert gases; light is produced by electrons in metal atoms dropping from an excite state to a lower energy state

23 23

24 24 6.1.3 The Color of Surfaces ○ Spectral reflectance

25 25 6.2 Human Color Perception ○ Types of photoreceptors: Rod : sensitive to light Cone: sensitive to color Types of cone: S (blue) – short wavelength light M (green) – medium wavelength light L (red) – long wavelength light

26 26 ○ Principle of Uni-Variance -- Receptors respond strongly or weakly, but do not signal the wavelength of the light falling on them The response of the kth type of receptor

27 27 6.2.1 Color Matching -- is to figure out how a color is composed of primaries Two ways of color matching: Additive matching, Subtractive matching ○ Additive matching

28 28 ○ Subtractive matching For some colors, their may be negative. Subtractive matching adds some amount of some primaries to the test light. ○ Principle of Trichromacy (1) The primaries must be independent (2) Both additive and subtractive matching are allowed 6.3 Representing Color Unit radiance source: : primaries : color matching function

29 29 Single wavelength source: Source:

30 30 ○ Grassman’s Laws -- matching is linear

31 31 。 RGB Color Space R,G,B are real primaries Color matching functions may be negative 。 CIE XYZ Color Space CIE: Commission International D’eclairage X,Y,Z are not real primaries Color matching functions are positive everywhere ○ Color Matching Function

32 32 Definitions:

33 33 6.3.1 Linear Color Spaces -- A color lies on a straight line connecting two colors. The color can be formed by a linear combination of the two colors -- A color lies on a planar patch formed by connecting three colors. The color can be formed by a linear combination of the three colors

34 34 ○ RGB Color Space R: 645.16 nm, G: 526.32nm, B: 444.44nm ○ YIQ color space

35 35 ○ CIE XYZ Color Space The volume of visible colors in the XYZ space is a cone whose vertex is at the origin ○ YUV color space

36 36 。 The relationship between RGB and XYZ

37 37 。 CIE xy Space -- The space results from intersecting the XYZ space with plane Chromaticity Diagram

38 38 (i) Spectral locus: the curved boundary along which the colors are experienced (ii) Neutral point: the color whose weights are equal for all three primaries (iii) Colors that lie farther away from the neutral point are more saturated

39 39 。 A pigment removes the colors other than the pigment color from the incident light, which is then reflected from surface e.g., Red ink removes green and blue lights; red light passes through the ink and is reflected from the paper ○ CMY -- primaries of pigments Cyan = White – Red, Magenta = White – Green, Yellow = White – Blue

40 40 6.3.2 Nonlinear Color Spaces -- The coordinates of a color in a linear space may not encode properties that are familiar to human ○ HSI Space: Hue, Saturation, Intensity if

41 41

42 42 ○ Lu*v* color space

43 43

44 44

45 45 ○ Uniform Color Space 。 Noticeable difference – the difference when modifying a color until one can tell it has changed. The noticeable difference of a color forms the boundary of the color and can be fitted with an ellipse (macadam ellipse) 。 The color difference in the CIE xy space is poor (a) the ellipses at the top are larger than those at the bottom (b) the ellipses rotate as they move up

46 46 CIE u’v’ Space – a more uniform space than CIE xy space

47 47 ○ La*b* color space is a substantial uniform space

48 48 6.3.3 Spatial and Temporal Effects ○ Chromatic adaptation – the color system adapts (the color diagram is skewed) when the visual system has been exposed to an illuminant for some time Contrast -- the surrounding colors of a color cause the color to move away from the surrounding colors Assimilation – the surrounding colors of a color cause the color to move toward the surrounding colors

49 49 Image color depends on (a) Camera (b) Physical effects (i) The color of object surface (ii) The colors of light sources 6.4 Surface Color from Image Color

50 50 ○ Cameras 。 A color camera contains an imaging device that is composed of a set of sensory elements CCD (charge coupled device) 。 Each CCD contains one of three filters, each realizing a spectral sensitivity function (SSF) 。 Gamma correction is a form of compression for compressing the incoming dynamic range e.g., 。 In terms of SSF, CCDs are arranged in a mosaic with a particular pattern, called the Bayer pattern, where I: intensity

51 51 。 The spectrum of the reflected light of a patch ○ Physical effects 。 The color of light arriving a camera is determined by (a) the spectral radiance of the light (b) the spectral reflectance of surface

52 52 ○ The response of a photoreceptor of the kth type to the patch

53 53 ○ The value at an image pixel where : image color of a frontal surface : change in brightness due to the orientation of the surface : image color of specularity from a flat frontal surface : change in specular energy due to the orientation of the surface : colored light

54 54 1. Specularities appear as small bright patches 2. Specularities are often sufficiently bright to saturate the camera so that the color can be hard to measure * Looking for small, bright patches is an effective way to find specularities without relying on color. ○ Finding Specularities

55 55 ○ Specularities on electric and dielectric surfaces look different 1. Light striking an electric surface can not penetrate it, which is either absorbed or reflected. Electric surfaces have a specular component that is wavelength dependent of the light 2. Light striking a dielectric surface can penetrate it. Dielectric surfaces have a specular component that is wavelength independent of the light

56 56 ○ Example: Dielectric object with single color Pixel value: - Produces a line that extends to pass through the origin - The points on the line have the same color but different intensity values

57 57 - Produces a line colliding with a face of the color cube - The points on the line have the same color as the source but different intensity values

58 58 。 Example: Plastic object on black background

59 59 (c) Boundary region  a plan-like cluster Weighted combinations of two different colors (specular and surface colors) ○ Specularity marking algorithm: Find (i) the dog-leg pattern, (ii) the specular line (b) Diffuse region  a line-like cluster The object surface has a single color but has different intensities from point to point A window of pixels in (a) Background region  a point-like cluster of points in the color space All background pixels have the same color and intensity

60 60 ○ Surfaces reveal different colors when imaging under lights with different colors or intensities 6.5 Inferring Lightness and Color

61 61 ○ Humans can easily achieve Color constancy – Intensity-independent description of color Lightness constancy – Color-independent description of intensity

62 62 ○ Model of image intensity 。 Radiance arriving at a pixel depends on (a) The illumination of the light source (b) The BRDF of the surface (c) The configuration of the surface (d) Camera responses 。 Simplifications: (a) Scene surfaces are planar and frontal (b) Surfaces are Lambertian (c) The camera response is linear

63 63 Take logarithm Assumptions: (i) No albedo change of an object (ii) Albedo changes occur only when one object occludes another (iii) Illumination I changes slowly over space

64 64 。 Example: Recovering lightness Horn approach: (1) Differentiate the log transform (2) Throw away small gradients (3) Integrate the result

65 65 Rephrase as an optimization problem Find whose gradient is most like the thresholded, i.e., find that minimizes

66 66 The response of receptor of the kth type Albedo:Irradiance: wherecan be learned ○ Finite-Dimensional Linear Models -- Models (i) surface albedo and (ii) illuminant irradiance as a weighted sum of basis functions

67 67 ○ Assume the average of albedo is constant and known The average of the response of the kth receptor is In vector-matrix form,where Solving for illumination e, the surface reflectance at each pixel can then be known.

68 68 ◎ Gamut mapping The gamut of an image: the set of all pixel values Let G: the convex hull of the gamut of the given image W: the convex hull of the gamut of an image of many different colors under white light : mapping an image seen under illuminant e to an image seen under white light

69 69

70 70 The only illuminantsto be considered are those Once the family of potential illuminants has been found, it remains to determine an appropriate illuminant The strategies of determination depend on applications s. t.


Download ppt "1 Chapter 6: Color Preview 。 The world is colorless 。 Color is caused by the vision system responding differently to different wavelengths of light 。 Brightness."

Similar presentations


Ads by Google