Docsity

Computer Graphics I: Quantizing Intensities and Color Models - Prof. David E. Breen, Lab Reports of Computer Graphics

Partial preview of the text

Download Computer Graphics I: Quantizing Intensities and Color Models - Prof. David E. Breen and more Lab Reports Computer Graphics in PDF only on Docsity!

1

CS 430/

Computer Graphics I

Week 8, Lecture 15

David Breen, William Regli and Maxim Peysakhov

Geometric and Intelligent Computing Laboratory

Department of Computer Science

Drexel University

http://gicl.cs.drexel.edu

2

Outline

• Light

• Physical Properties of Light and Color

• Eye Mechanism for Color

• Systems to Define Light and Color

4

Quantizing Intensities

• Q: Given a limited number of colors/

shades, which ones should we use?

• Suppose we want 256 “shades”

• Idea #1 (bad)

– 128 levels from 0.0 – 0.

– 128 levels from 0.9 – 1.

– Problems

  • Discontinuities at 0.
  • Uneven distribution of samples

5

Quantizing Intensities

• Suppose we want 256 “shades”

• Idea #2 (also bad)

– Distribute them evenly

– Problem

  • This is not how the human eye works!
  • The eye is sensitive to relative intensity

variations, not absolutes

  • The intensity change between 0.10 and 0.11 looks like the change between 0.50 and 0.

7

Optical Illusion Revealed

8

Quantizing Intensities

• Idea

• Start with intensity I 0 , go to I 255 =1 by

making I 1 = r*I 0

I 0 , I 1 = rI 0 , I 2 = r^2I 0 , … I 255 = r^255*I 0 =

• r = (1/I 0 )1/255^ Ij = rjI 0 = I 0 (255-j)/

• r = (1/I 0 )1/n^ Ij = rjI 0 = I 0 (n-j)/n

• Min intensity for CRT ~ 1/200th^ to 1/40th

of max

10

Chromatic Light!

• Let there be colored light!

• Major terms

  • Hue
    • Distinguish colors such as red, green, purple, etc.
  • Saturation
    • How far is the color from a gray of equal intensity (i.e. red=high saturation; pastels are low)
  • Lightness
    • Perceived intensity of the reflecting object
    • Brightness is used when the object is an emitter

11

Physics of Light and Color

  • Light: a physical phenomenon:
    • Electromagnetic radiation in the [400 nm-700nm] wavelength range
  • Color:psychological phenomenon:
    • Interaction of the light of different wavelength with our visual system.

http://prometheus.cecs.csulb.edu/~jewett/colors/

13

Colorimetry (Physics)

• Define color in terms of the light

spectrum and wavelengths

– Dominant Wavelength: what we see

– Excitation Purity: saturation

– Luminance: intensity of light

• Ex:

– Pure color, 100% saturated, no white light

– White/gray lights are 0% saturated

14

Specifying Colors

• Can we specify colors using spectral

distributions?

  • We can, but we do not want to.
  • More then one set of

distributions corresponds

to the same color. Reason?

  • Too much information^ #

Photons

Wavelength (nm)

16

Tristimulus Theory

• The human retina

has 3 color sensors

  • the cones

• Cones are tuned to

red, green and blue

light wavelengths

  • Note: R&G are both

“yellowish”

• Experimental data

Foley/VanDam, 1990/

17

Luminous-Efficiency Function

• The eye’s response

to light of constant

luminance as the

dominant

wavelength is varied

• Peak sensitivity is at

~550nm (yellow-

green light)

• This is just the sum

of the earlier curves

Foley/VanDam, 1990/

19

Specifying Colors

• Depends on the context

– Compare against standard samples

  • I.e. the paint store, printing professions
  • PANTONE MATCHING SYSTEM

– Artistic mixtures of tint , shade , and tone

  • Tint == white + pure color, decreasing saturation
  • Shade == black + pure color, decreasing lightness
  • Tone == both

• Both are subjective

20

Terms

• Perceptual Term

  • Hue
  • Saturation
  • Lightness
    • self reflecting objects
  • Brightness
    • self luminous objects

• Colorimetry

  • Dominant Wavelength
  • Excitation purity
  • Luminance
  • Luminance