<<

Chapter 2 Fundamentals of Digital Imaging

Part 4 Representation

© 2016 Pearson Education, Inc., Hoboken, 1 NJ. All rights reserved. In this lecture, you will find answers to these questions • What is RGB and how does it represent ?

• What is CMY color model and how does it represent colors?

• What is HSB color model and how does it represent colors?

• What is color ? What does out-of-gamut mean?

• Why can't the colors on a printout match exactly what you see on screen?

© 2016 Pearson Education, Inc., Hoboken, 2 NJ. All rights reserved. Color Models

• Used to describe colors numerically, usually in terms of varying amounts of primary colors.

• Common color models: – RGB – CMYK – HSB – CIE and their variants.

© 2016 Pearson Education, Inc., Hoboken, 3 NJ. All rights reserved. RGB Color Model

• Primary colors: –

System

© 2016 Pearson Education, Inc., Hoboken, 4 NJ. All rights reserved. Additive Color System

© 2016 Pearson Education, Inc., Hoboken, 5 NJ. All rights reserved. Additive Color System of RGB

• Full intensities of red + green + blue =

• Full intensities of red + green =

• Full intensities of green + blue =

• Full intensities of red + blue =

• Zero intensities of red , green , and blue =

• Same intensities of red , green , and blue = some kind of gray

© 2016 Pearson Education, Inc., Hoboken, 6 NJ. All rights reserved. Color Display

From a standard CRT monitor screen © 2016 Pearson Education, Inc., Hoboken, 7 NJ. All rights reserved. Color Display

From a Trinitron monitor screen © 2016 Pearson Education, Inc., Hoboken, 8 NJ. All rights reserved. Color Display

From a LCD screen © 2016 Pearson Education, Inc., Hoboken, 9 NJ. All rights reserved. Color Display

© 2016 Pearson Education, Inc., Hoboken, 10 NJ.From All rights a reserved. iPhone 5S screen RGB Color Model

• depicted graphically as a cube defined by three axes in 3-D space • The maximum value on eachaxis is normalized to 1.

© 2016 Pearson Education, Inc., Hoboken, 11 NJ. All rights reserved. RGB Color Model

• x-axis: red values • y-axis: green values • z-axis: blue values

© 2016 Pearson Education, Inc., Hoboken, 12 NJ. All rights reserved. RGB Color Model

• The coordinates within the color cube represent the relative intensities of red, green, and blue colors.

© 2016 Pearson Education, Inc., Hoboken, 13 NJ. All rights reserved. RGB Color Model

• origin (0,0,0): black

© 2016 Pearson Education, Inc., Hoboken, 14 NJ. All rights reserved. RGB Color Model

• (1,0,0): full intensity of red

© 2016 Pearson Education, Inc., Hoboken, 15 NJ. All rights reserved. RGB Color Model

• (0,1,0): full intensity of green

© 2016 Pearson Education, Inc., Hoboken, 16 NJ. All rights reserved. RGB Color Model

• (0,0,1): full intensity of blue

© 2016 Pearson Education, Inc., Hoboken, 17 NJ. All rights reserved. RGB Color Model

• (1,1,1): white

© 2016 Pearson Education, Inc., Hoboken, 18 NJ. All rights reserved. RGB Color Model

• (1,1,0): full red + full green = full yellow

© 2016 Pearson Education, Inc., Hoboken, 19 NJ. All rights reserved. RGB Color Model

• (1,0,1): full red + full blue = full magenta

© 2016 Pearson Education, Inc., Hoboken, 20 NJ. All rights reserved. RGB Color Model

• (0,1,1): full green+ full blue = full cyan

© 2016 Pearson Education, Inc., Hoboken, 21 NJ. All rights reserved.

So where is the color whose RGB values are (150, 200, 100) in the RGB cube?

© 2016 Pearson Education, Inc., Hoboken, 22 NJ. All rights reserved. Correlating RGB Color Cube with Color Picker

This is a 2-D slice containing all the colors with red = 150 .

© 2016 Pearson Education, Inc., Hoboken, 23 NJ. All rights reserved. Correlating RGB Color Cube with Color Picker

This is a 2-D slice containing all the colors with green = 200 .

© 2016 Pearson Education, Inc., Hoboken, 24 NJ. All rights reserved. Correlating RGB Color Cube with Color Picker

This is a 2-D slice containing all the colors with blue = 100 .

© 2016 Pearson Education, Inc., Hoboken, 25 NJ. All rights reserved. Correlating RGB Color Cube with Color Picker

The color (150, 200, 100) is located in the 3-D space of the RGB color cube. It is at the intersection of the three 2-D slices.

© 2016 Pearson Education, Inc., Hoboken, 26 NJ. All rights reserved. CMYK Color Model

• Primary colors: – cyan – magenta – yellow – black

System

© 2016 Pearson Education, Inc., Hoboken, 27 NJ. All rights reserved. Subtractive Color System of CMY

© 2016 Pearson Education, Inc., Hoboken, 28 NJ. All rights reserved. Subtractive Color System of CMY

• Full intensities of cyan + magenta + yellow = black (theoretically, but in practice with , it is not full black)

• Full intensities of cyan + magenta = blue

• Full intensities of cyan + yellow = green

• Full intensities of magenta + yellow = red

• Zero intensities of cyan , magenta , and yellow = white

© 2016 Pearson Education, Inc., Hoboken, 29 NJ. All rights reserved. HSB Color Model

: – basic color – 0o to 360 o : the location on a – in the order of colors in a • Saturation: – purity of the color – how far away from the neutral gray of the same brightness • Brightness

© 2016 Pearson Education, Inc., Hoboken, 30 NJ. All rights reserved. HSB Color Model

© 2016 Pearson Education, Inc., Hoboken, 31 NJ. All rights reserved. HSB Color Model

© 2016 Pearson Education, Inc., Hoboken, 32 NJ. All rights reserved. HSB Color Model

A slice of the color wheel from the HSB model © 2016 Pearson Education, Inc., Hoboken, 33 NJ. All rights reserved. HSB Color Model

• Matches well with the way humans intuitively think about colors

• For example, how would you describe this color?

• Would you think of it in terms of how much red, green, and blue? • Would you first think of it as a yellowish color and then figure out the and how washed out the color is?

© 2016 Pearson Education, Inc., Hoboken, 34 NJ. All rights reserved. Problems with RGB and CMYK • Do not encompass all the colors human can see

© 2016 Pearson Education, Inc., Hoboken, 35 NJ. All rights reserved. CIE XYZ Color Model

• Primaries: – X – Y – Z

• Primaries are not physical colors

• Its color space encompasses all the colors human can see.

• Normally not used in editing because monitors and printers cannot reproduce all the colors in the CIE XYZ color space anyway.

© 2016 Pearson Education, Inc., Hoboken, 36 NJ. All rights reserved. Color

• Refers to the range of colors of a specific system or device can produce or capture

© 2016 Pearson Education, Inc., Hoboken, 37 NJ. All rights reserved. Color Gamuts a) Colors that human can see b) RGB color gamut of typical CRT monitors c) CMYK color gamut of typical inkjet printers

© 2016 Pearson Education, Inc., Hoboken, 38 NJ. All rights reserved. Color Gamuts

• Monitors and inkjet printers cannot reproduce all the colors that human can see • Some of the colors that monitors can reproduce cannot be reproduced by inkjet printers. Most of these colors lie at the corners of the color gamut of the monitor, which means these are highly saturated colors.

© 2016 Pearson Education, Inc., Hoboken, 39 NJ. All rights reserved. Identifying Out-of-Gamut Colors in Images • Out-of-gamut colors will not be printed correctly.

• In digital image editing programs such as , you can tell whether a color is out of gamut based on your CMYK setting.

• Click on the to use the closest color in gamut for .

© 2016 Pearson Education, Inc., Hoboken, 40 NJ. All rights reserved. Identifying Out-of-Gamut Colors in Images • Out-of-gamut colors will not be printed correctly.

• In digital image editing programs such as Adobe Photoshop, you can tell whether a color is out of gamut based on your CMYK setting.

© 2016 Pearson Education, Inc., Hoboken, 41 NJ. All rights reserved. Identifying Out-of-Gamut Colors in Images

© 2016 Pearson Education, Inc., Hoboken, 42 NJ. All rights reserved. Identifying Out-of-Gamut Colors in Images

Click on the icon to replace the out-of-gamut color with the closest color in gamut for printing. © 2016 Pearson Education, Inc., Hoboken, 43 NJ. All rights reserved. Identifying Out-of-Gamut Colors in Images

The out-of-gamut color is replaced with the closest color in gamut for printing. © 2016 Pearson Education, Inc., Hoboken, 44 NJ. All rights reserved. Difficulties in Reproducing Colors in Digital Images • Digital devices cannot produce all of the colors visible to human

• Difficulties exist in reproducing color across devices – different devices have different color gamuts – additive color system for screen display vs. subtractive color system for printing

© 2016 Pearson Education, Inc., Hoboken, 45 NJ. All rights reserved.

© 2016 Pearson Education, Inc., Hoboken, 46 NJ. All rights reserved. Indexed Color

© 2016 Pearson Education, Inc., Hoboken, 47 NJ. All rights reserved.