Docsity

Understanding Color Systems and Shading in Interactive Computer Graphics - Prof. David E. , Study notes of Computer Graphics

Partial preview of the text

Download Understanding Color Systems and Shading in Interactive Computer Graphics - Prof. David E. and more Study notes Computer Graphics in PDF only on Docsity!

Display Issues

Week 5

David Breen

Department of Computer Science

Drexel University

Based on material from Ed Angel, University of New Mexico

CS 432/
INTERACTIVE COMPUTER GRAPHICS

Angel: Interactive Computer Graphics 3E 2

Objectives

  • Consider perceptual issues related to

displays

  • Introduce chromaticity space
    • Color systems
    • Color transformations
  • Standard Color Systems

Angel: Interactive Computer Graphics 3E 4

Tristimulus Values

  • The human visual center has three cones

with sensitivity curves S

1

(λ), S

2

(λ), and

S

3

  • For a color C(λ), the cones output the

tristimulus values

T S ( λ ) C (λ) d λ

T S ( λ ) C (λ) d λ

T S ( λ ) C (λ) d λ

C(λ) T 1 , T 2 , T 3 cones optic nerve

Angel: Interactive Computer Graphics 3E 5

Three Color Theory

  • Any two colors with the same tristimulus values are perceived to be identical
  • Thus a display (CRT, LCD, film) must only produce the correct tristimulus values to match a color
  • Is this possible? Not always
    • Different primaries (different sensitivity curves) in different systems

Angel: Interactive Computer Graphics 3E 7

Representing Colors

  • Consider a color C(λ)
  • It generates tristimulus values T 1
, T

2

, T

3

  • Write C = (T 1
, T

2

, T

3

  • Conventionally,we assume 1 ≥ T 1
, T

2

, T

3

because there is a maximum brightness we can produce and energy is nonnegative

  • C is a point in color solid C 1 1 1 T 1 T 2 T 3

Angel: Interactive Computer Graphics 3E 8

Producing Colors

  • Consider a device such as a CRT with

RGB primaries and sensitivity curves

  • Tristimulus values T R ( λ ) C (λ) d λ

T G ( λ ) C (λ) d λ

T B ( λ ) C (λ) d λ

Angel: Interactive Computer Graphics 3E 10

Color Systems

  • Various color systems are used
    • Based on real primaries:
      • NTSC RGB
      • UVW
      • CMYK
      • HLS
    • Theoretical
      • XYZ
  • Prefer to separate brightness (luminance) from color (chromatic) information - Reduce to two dimensions

Angel: Interactive Computer Graphics 3E 14

Producing Other Colors

  • However colors producible on one system (its color gamut) is not necessarily producible on any other
  • Note that if we produce all the pure spectral colors in the 350-750 nm range, we can produce all others by adding spectral colors
  • With real systems (CRT, film), we cannot produce the pure spectral colors
  • We can project the color solid of each system into chromaticity space (of some system) to see how close we can get

Angel: Interactive Computer Graphics 3E 16

XYZ

  • Reference system in which all visible pure spectral colors can be produced
  • Theoretical systems as there are no corresponding physical primaries
  • Standard reference system

Color models

  • RGB model
    • specify color by red, green, & blue components
    • additive model
    • 8 bits/component = 24 bits total per pixel
    • in the end, all others reduce to RGB for display
  • CMY model
    • represent in terms of mixtures of pigments - gets color from light it absorbs & doesn’t reflect
    • mix Cyan, Magenta, Yellow
      • “subtractive primaries”
        • cyan = no red, magenta = no green, yellow = no blue
    • used by printers and artists
  • Color “matching” is quite

difficult for printed output

sometimes:

  • K = Black (needed for truer printing for shades of black)

Color models

Angel: Interactive Computer Graphics 3E 20

Color Systems

  • Most correspond to real primaries
    • National Television Systems Committee (NTSC) RGB matches phosphors in CRTs
  • Film both additive (RGB) and subtractive (CMY) for positive and negative film
  • Print industry CMYK (K = black)
    • K used to produce sharp crisp blacks
    • Example: ink jet printers

Angel: Interactive Computer Graphics 3E 23

Color Matrix

  • Exists a 3 x 3 matrix to convert from representation in one system to representation in another
  • Example: XYZ to NTSC RGB
    • find in colorimetry references
  • Can take a color in XYZ and find out if it is producible by transforming and then checking if resulting tristimulus values lie in (0,1)           =           T T T T' T' T' 3 2 1 3 2 1 M

Angel: Interactive Computer Graphics 3E 24

YIQ

  • NTSC Transmission Colors
  • Here Y is the luminance
    • Arose from need to separate brightness from chromatic information in TV broadcasting
  • Note luminance shows high green sensitivity                     =           B G R 0.212 -0.523 0. 0.596 -0.275 - 0. 0.299 0.587 0. Q I Y