0% found this document useful (0 votes)
2 views

IVP-unit-1-color IP

The document discusses various color models, including RGB, CMY, YIQ, and HSI, highlighting their mathematical representations and applications in technology. It explains the differences between additive and subtractive color models, as well as their limitations and conversions. Additionally, it covers the human visual system's role in color perception and the transformation of RGB values into other color formats.

Uploaded by

omkar.22220074
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

IVP-unit-1-color IP

The document discusses various color models, including RGB, CMY, YIQ, and HSI, highlighting their mathematical representations and applications in technology. It explains the differences between additive and subtractive color models, as well as their limitations and conversions. Additionally, it covers the human visual system's role in color perception and the transformation of RGB values into other color formats.

Uploaded by

omkar.22220074
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 43

Color models

https://forms.gle/yUKFPAKs3YjdbAvr5
HVS - human visual system

• 6 to 7 million cones in the human eye can be divided into three


principal sensing categories, corresponding roughly to red, green, and
blue.

65%: red 33%: green 2%: blue (blue cones are the most sensitive)

2
Interpretation of color image in human

3 types of photoreceptors:
sensitive to red, green, or blue light.
luminance
hue
saturation

The brain transforms RGB into separate


brightness and color channels
brain photo receptors 3
Color model

• It is a mathematical representation of set of colors.

• Oriented towards hardware (e.g. color monitors and


printers)

• or towards color manipulation applications (e.g. color


graphics for animation).

4
Color models

• The most popular color models are

1. CIE standard
2. RGB
3. HSI
4. CMYK
5. YUV
6. YIQ
7. YCbCr

5
RGB Color model

6
RGB Color model

• based on a Cartesian coordinate system and tri-


chromatic color vision

• color subspace is a cube with three primary colors


red, green and blue forming the axes

• Each point in the cube represents a specific color.

7
Schematic of RGB color cube.

• Points along main


diagonal have gray
values from black at
origin to white
diagonally opposite at
point (1,1,1)

• normalized values of R,
G, B - assumed to be in
the range [0,1].

8
RGB Color model uses primary colors

9
RGB Color model

RGB is an additive color model.

Cyan = Blue + Green


Magenta = Red + Blue
Yellow = Red + Green

10
Applications: RGB Color model

• Human eye itself


• Scanners
• CRT monitors/computer system
• Television

11
Limitations of RGB color model-

• Device dependent

• Non–linear with visual perception.

• Difficult to relate this model to colour appearance

12
What color would a person see at first, middle and last
column of an image with size (M,N) and following R,G,B
profiles?

R G B

1 1 1
G

0.5 0.5 0.5

0 N/2 N-1 0 N/2 N-1 0 N/2 N-1

Answer- 1) (1,0,0)=RED 2) (0.5,1,0.5) 3) 0,0,1)=Blue

2/16/2022 12:07 PM Tushar Jadhav,VIIT 13


CMY Color model

14
CMY(K) (Cyan Magenta Yellow (Black))

• Subtractive color space

• Use secondary colors of light - Cyan, Magenta and


yellow

• Mainly used in printing and hard copy output.

• Very simple transforms to translate RGB colours


displayed on screen to CMY(K) values for printing.

15
Color Models for Image – RGB Vs CMY

RGB & CMY Cubes


16
Conversions-between Color models
CMY is a subtractive color model.

RGB to CMY
Cyan = White − Red
Magenta = White − Green
Yellow = White − Blue

CMY to RGB
Red = White − Cyan
Green = White −Magenta
Blue = White − Yellow
17
Color Models for Image – RGB Vs CMY

18
CMY Color model

• works by partially or entirely masking colors on


white background.

• Inked paper absorbs and reflects specific


wavelengths

• Cyan, magenta and yellow pigments serve as


filters, subtracts varying degrees of RGB from
white light

19
RGB Vs CMY

CMY Color model


RGB Color model
Subtractive color model
Additive color model
For printed material
For computer displays

Uses light to display color Uses ink to display color

Colors result from transmitted Colors result from reflected light


light

Red+Green+Blue=White Cyan+ Magenta+Yellow=Black

20
Color models for Image – CMYK

• Mixture of CMY is muddy brown due to the


impurities of the printing inks.

• Fourth, black, component included to improve the


density range.

• Printing inks are based on this model.

21
Color models for Image – CMYK

Image separated for printing with The same image, separated with black. It
cyan, magenta, and yellow inks. minimizes use of ink
22
Limitations: CMY color model

• CMY(K) is device dependent, non–linear with


visual perception and reasonably unintuitive.

• RGB offers a much wider range of colors than


CMYK does.

23
What color would a person see at first, middle and last
column of an image with size (M,N) and following R,G,B
profiles?

R G B

1 1 1
G

0.5 0.5 0.5

0 N/2 N-1 0 N/2 N-1 0 N/2 N-1

Answer- 1) (0,1,1)= Cyan 2) (0.5,0,0.5) 3) ( 1,1,0)=Yellow

2/16/2022 12:07 PM Tushar Jadhav,VIIT 24


YIQ Color model

25
Luminance Chrominance Color model

• RGB -not efficient when dealing with ‘real world


images’

• Faster processing if an image stored directly to an


intensity and color format (Bandwidth is also an
issue)

26
Luminance Chrominance Color model

• Separate RGB into luminance and chrominance


information

• YIQ/YUV- NTSC, PAL, SECAM (video encoding


standards)

• YCbCr - MPEG and JPEG.

27
YIQ model

• The luminance ‘Y’ component carries gray scale


information

• Other two components carry color information.

• I stands for ‘in phase’ - orange-blue

• Q stands for ‘quadrature’ used in modulation


method to transmit the color information - purple-
green

28
YIQ model /NTSC color model

• Gray scale information separated from color data


enables use of same signal for color and
monochrome television sets.

• The eye is more sensitive to changes in the


orange-blue (I) range than in the purple-green
range (Q)

• Therefore less bandwidth is required for Q than for


I (Broadcast NTSC limits ‘I’ to 1.3 MHz and Q to 0.4 MHz. I
and Q are frequency interleaved into the 4 MHz Y signal )

29
YIQ Color model

RGB Y

30
Q
I
Conversions- between Color models

YIQ from RGB

Reverse transform is

31
HSI Color model

32
HSI Color model

• RGB and CMY color models are suitable for


hardware implementations, but we
describe colors by their hue, saturation,
and brightness.

33
HSI Color models

• Hue represents dominant color as perceived by an


observer. It is an attribute associated with
dominant wavelength.

• Saturation refers to relative purity or the amount of


white mixed with hue

• Intensity reflects the brightness.

34
HSI Color models

• HSI color model can be considered as a cylinder,


where 3 coordinates are saturation, hue and
intensity

35
RGB and HSI models

• Hue defines the color itself

- the angle around the central vertical axis in


each cylinder

- 0° beginning with red

- 360° ending with red running through green at 120 °,


blue at 240° and all intermediary colors

- increases counterclockwise

36
HSI Color models

• Saturation-
- The distance from the intensity axis corresponds to
“saturation”
- describes how pale the color is.
- values go from 0 to 100 or 1 (normalized) , from white to
the purest color.

• Intensity along the line joining black and white


vertices in the range of [0,1]

37
Angle 0 =black

255 =saturation
Intensity
Pure color

38
Converting colors from RGB to HSI

• Assuming that HSI values are normalized


(in the interval [0 1])

S = 1 − ( 3 / (R+G+B) ) a
where a is the minimum of R, G and B

I=(R+G+B )/3

39
Converting colors from HSI to RGB

• Assuming that HSI values are normalized (in the interval [0


1])

40
Converting colors from HSI to RGB

41
RGB to HSL: A Perceptual Transformation
luminance

The eye has 3 types of photoreceptors:


sensitive to red, green, or blue light.
hue
saturation

The brain transforms RGB into separate


brightness and color channels (e.g., LHS).
brain photo receptors

42
THANK YOU

43

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy