color models

35
Color Models Arka Prokash Mazumdar

Upload: kapil-gautam

Post on 20-Jan-2016

24 views

Category:

Documents


0 download

DESCRIPTION

Description about the color models

TRANSCRIPT

Page 1: Color Models

Color Models

Arka Prokash Mazumdar

Page 2: Color Models

Color

• It’s all electromagnetic (EM) radiation – Different colors correspond to radiation of

different wavelengths

– Intensity of each wavelength specified by amplitude

• We perceive EM radiation with in the 400-700 nm range

– Between infra-red and ultraviolet

Page 3: Color Models

Visible Light

Page 4: Color Models

Wavelength

• Most light we see is not just a single wavelength

• A combination of many wavelengths

• Referred to as a spectrum

Page 5: Color Models

Wavelength

• Representation of color on screen display is RGB. (additive color)

• Printers use CMY(K), (subtractive color)

Page 6: Color Models

Human Eye

Page 7: Color Models

Human Eye

• 3 different types of cone receptors in the fovea of retina

– S, M, and L

– blue, green, and red sensors

• Peak sensitivities are located at approximately:

– 445nm, 535nm, and 575nm

– for the "average" observer

Page 8: Color Models

Human Eye : Absorption of Light

Page 9: Color Models

Physical properties of light

• This distribution may indicate:

1. Dominant wavelength (frequency): the color of the light (hue)

2. Brightness (luminance): intensity of the light (value)

3. Purity (saturation): the degree of vividness (mix with white)

Page 10: Color Models

CIE Standard

International Commission on Illumination (Commission Internationale de L’Eclairage) (1931)

• Color matching functions

• Tested with 440,545 and 580nm

Page 11: Color Models

CIE: Experiment

Page 12: Color Models

CIE space

Page 13: Color Models

CIE space• Irregular 3D volume

shape is difficult to understand

• Chromaticity diagram – the same color of the

varying intensity (Y) should all end up at the same point

Page 14: Color Models

Color Models

• RGB model– Color monitor, color video cameras

• CMY model– Color printer

• HSI model– Color image manipulation

• XYZ (CIE standard, Y directly measures the luminance

• YUV (used in PAL color TV)• YIQ (used in NTSC color TV)• YCbCr (used in digital color TV standard BT.601)

Page 15: Color Models

RGB

• Standard

Page 16: Color Models

RGB color space

Page 17: Color Models

CMY color model

• Passive displays (e.g. color inkjet printers) absorb light instead of emitting it

• Combinations of cyan, magenta and yellow inks are used– This is a subtractive color model.

Source: www.hp.com

Page 18: Color Models

CMY

Page 19: Color Models

CMY and CMYK

Page 20: Color Models

RGB to CMY model

The conversion from RGB to CMY is given by the formula

Example 11.2: The red colour is written in RGB as (1,0,0). In CMY it is written as

that is, magenta and yellow.

1

1

0

0

0

1

1

1

1

1

1

1

b

g

r

y

m

c

b

g

r

y

m

c

1

1

1

Page 21: Color Models

HSV/HIS model

• HSV is a non-linearly transformed (skewed) version of RGB cube

– Hue: quantity that distinguishes color family, say red from yellow, green from blue

– Saturation (Chroma): color intensity (strong to weak). Intensity of distinctive hue, or degree of color sensation from that of white or grey

– Value (luminance)/I(intensity): light color or dark color

Page 22: Color Models

HSV/HSI model

H dominant

wavelength

Spurity

% white

IIntensity

Page 23: Color Models

HSV/HSI model

• Hue is defined as an angle

– 0 degrees is RED

– 120 degrees is GREEN

– 240 degrees is BLUE

• Saturation is defined as the percentage of distance from thecenter of the HSI triangle to the pyramid surface.– Values range from 0 to 1.

• Intensity is denoted as the distance “up” the axis from black.– Values range from 0 to 1

Page 24: Color Models

HSV/HIS model

Page 25: Color Models

HSV/HIS model

Page 26: Color Models

RGB to HSI

GB if 360

GB if

H

2/12

1

)])(()[(

)]()[(2

1

cosBGBRGR

BRGR

)],,[min()(

31 BGR

BGRS

)(3

1BGRI

Page 27: Color Models

RG sector :

)1( SIB

)60cos(

cos1

H

HSIR

)(3 BRIG

HSI to RGB

1200 H

Page 28: Color Models

GB sector :

)1( SIR

)60cos(

cos1

H

HSIG

)(3 GRIB

HSI to RGB

120 HH

240120 H

Page 29: Color Models

BR sector :

)1( SIG

)60cos(

cos1

H

HSIB

)(3 BGIR

HSI to RGB

240 HH

360240 H

Page 30: Color Models

The HSI Color Models

Page 31: Color Models

Comparisons: RGB, CMY, HSI

Page 32: Color Models

YUV/YIQ

• YUV: for PAL and SECAM analog video– Also used in CCIR 601 standard for digital video

• Y (luminance) is the CIE Y primaryY = 0.299R + 0.587G + 0.114B

• Chrominance:– defined as the difference between a color and a

reference white at the same luminance

Page 33: Color Models

YUV/YIQ

• It is be represented by U and V

• The color differences:U = B – Y; V = R – Y

• YIQ is defined by the National Television System Committee (NTSC)

– Similar to YUV

Page 34: Color Models

YCbCr

• Y: luminance

• Cb: Chrominance of Blue

• Cr: Chrominance of Red

• Digital equivalent of YUV, used for digital TV

– 8 bit for each component

– in range of 0-255

Page 35: Color Models

YCbCr

• Used in MPEG video compression standards

Y = 0.257*R + 0.504*G + 0.098*B + 16

Cr = 0.439*R - 0.368*G - 0.071*B + 128

Cb = - 0.148*R - 0.291*G + 0.439*B + 128