SlideShare a Scribd company logo
4
Most read
7
Most read
18
Most read
Color Model
Presenter
Puja Dhakal
1
References
• R.C. Gonzales and R.E. Woods, Digital Image
Processing, Addison-Wesley, Reading, 1992.
• I. Newton, Opticks, 4th Edition, Dover, New
York, 1704/1952.
• Internet
• Nipun Thapa’s Notes.
2
What is Color ?
• Color is a sensation produced by the human
eye and nervous system.
• It is useful to represent a color by a set of
exactly three numbers.
3
Color Model
• A color model is an orderly system for creating
a whole range of colors from a small set of
primary colors.
• It is an abstract mathematical model
describing the way colors can be represented
as tuples of numbers.
4
Most Common Used Color Model
• RGB Model
• HSV Model
5
RGB Color Model:
Additive color model.
For computer displays.
Uses light to display color.
Colors result from transmitted light.
 Red + Green + Blue = White.
6
7
HSV Color Model
• Hue, Saturation, Value(Brightness)
• Hexcone subset of cylindrical (polar)
coordinate system.
8
Means…….
• Hue - The color we see (red, green, purple).
• Saturation - How far is the color from gray
(pink is less saturated than red, sky blue is less
saturated than royal blue).
• Brightness/Lightness (Luminance) - How
bright is the color.
9
Hue
• Hue (H), the color type (such as red, green).
• It ranges from 0 to 360 degree, with red at 0
degree, green at 120 degree, blue at 240
degree and so on.
10
Saturation
• Saturation (S) of the color ranges from 0 to
100%. Also sometimes, it called the "purity".
• The lower the saturation of a color, the more
"grayness" is present and the more faded the
color will appear.
• Saturation Scale
11
Value
• Value (V), the Brightness (V) of the color
ranges from 0 to 100%.
• Value Scale
12
HSV & RGB Color Picker
The HSV color picker is used to control the V value, while
the corresponding slices through the cylinder are
displayed, and a color is selected by clicking on a point in
the disk.
The RGB picker below simply uses sliders to control the
three components, while the spectrum picker at the
bottom lets you pick your color directly by clicking.
13
14
Conversion RGB to HSV
• Input: RGB
• Output: HSV
• Step1: [normalize the RGB values to be in the range [0, 1]]
• r = R/ 255
• g = G/ 255
• b = B/ 255
• Step2: [Find the difference between max and min values]
• M = max(r, g, b), m = min(r, g, b).
• And, difference Δ = M-m.
• Step3: [Calculate value V]
• V = max(r, g, b)
• Step4: [Calculate saturation S]
• If Δ = 0, then S = 0, otherwise S = Δ / M
• Step5: [Calculate hue H]
• If M=r then H = 60*((g-b / Δ) * mod 6)
• If M=g then H = 60*(2 + (b-r)/Δ)
• If M=b then H = 60(4 + (r-g)/ Δ)
• Step6: [output HSV]
• The calculated H, S, and V are the output of the algorithm.
15
Conversion HSV to RGB
• Input: HSV
• Output: RGB
• When 0 ≤ H < 360, 0 ≤ S ≤ 1 and 0 ≤ V ≤ 1.
• C = V × S
• X = C × (1 - |(H / 60º) mod 2 - 1|)
• m = V – C
• (R, G, B) = (R'+ m, G'+ m, B'+ m).
16
Application of Color Model
• RGB model is used in hardware devices such
as computer monitors, cameras, and scanners.
• HSV color model is used in real life
applications to describe perception of viewer.
17
Any Queries????????
18
THANK YOU!!!!!!
19

More Related Content

PPTX
Color Models
PPTX
Turtle Graphics in CG
PPTX
Color models
PPTX
Color and color models
PPTX
Color Models Computer Graphics
PPTX
Computer graphics chapter 4
PPTX
Dda line algorithm presentatiion
PPTX
Dip chapter 2
Color Models
Turtle Graphics in CG
Color models
Color and color models
Color Models Computer Graphics
Computer graphics chapter 4
Dda line algorithm presentatiion
Dip chapter 2

What's hot (20)

PPSX
Color Image Processing: Basics
PPTX
Rgb and cmy color model
PPTX
Introduction to computer graphics
PPTX
Rgb colour model
PPTX
INTRODUCTION TO CMY COLOR MODELS IN COMPUTER GRAPHICS
PPTX
Multimedia chapter 5
PPTX
Color model
PPTX
Fundamentals and image compression models
PPTX
Halftoning in Computer Graphics
PPT
Multimedia color in image and video
PPTX
Back face detection
PPTX
Depth Buffer Method
PPTX
HSL & HSV colour models
PPTX
Concept of basic illumination model
PPTX
Types of images
PPTX
2D viewing & clipping
PPTX
Color Models.pptx
PPTX
HSV color model
PPTX
Computer animation Computer Graphics
PDF
DIGITAL IMAGE PROCESSING - LECTURE NOTES
Color Image Processing: Basics
Rgb and cmy color model
Introduction to computer graphics
Rgb colour model
INTRODUCTION TO CMY COLOR MODELS IN COMPUTER GRAPHICS
Multimedia chapter 5
Color model
Fundamentals and image compression models
Halftoning in Computer Graphics
Multimedia color in image and video
Back face detection
Depth Buffer Method
HSL & HSV colour models
Concept of basic illumination model
Types of images
2D viewing & clipping
Color Models.pptx
HSV color model
Computer animation Computer Graphics
DIGITAL IMAGE PROCESSING - LECTURE NOTES
Ad

Similar to Color model in computer graphics (20)

PPTX
Unit 5- Color Model COMPUTER GRAPHICS .pptx
PDF
Displays and color system in computer graphics(Computer graphics tutorials)
PPT
image-pro.ppt
PPTX
Lecnoninecolorspacemodelindigitalimageprocess
PPTX
Color models
PPSX
CG04 Color Models.ppsx
PPTX
Colour image processing(fip)
PPTX
"Color model" Slide for Computer Graphics Presentation
PPTX
Color models
PPTX
Chapter 6 color image processing
PPTX
Colormodels
PPTX
Lec6_AIP (1).pptx66788877886767878798989898989898
PPT
Color Image Processing................ppt
PPT
10 color image processing
PPTX
Color image processing
PPT
Color theorys also involves the messages
PPTX
HSI MODEL IN COLOR IMAGE PROCESSING
PPTX
Color fundamentals and color models - Digital Image Processing
PPTX
Color image processing
PPTX
Compututer Graphics - Color Modeling And Rendering
Unit 5- Color Model COMPUTER GRAPHICS .pptx
Displays and color system in computer graphics(Computer graphics tutorials)
image-pro.ppt
Lecnoninecolorspacemodelindigitalimageprocess
Color models
CG04 Color Models.ppsx
Colour image processing(fip)
"Color model" Slide for Computer Graphics Presentation
Color models
Chapter 6 color image processing
Colormodels
Lec6_AIP (1).pptx66788877886767878798989898989898
Color Image Processing................ppt
10 color image processing
Color image processing
Color theorys also involves the messages
HSI MODEL IN COLOR IMAGE PROCESSING
Color fundamentals and color models - Digital Image Processing
Color image processing
Compututer Graphics - Color Modeling And Rendering
Ad

Recently uploaded (20)

PPTX
Cell Structure & Organelles in detailed.
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Pharma ospi slides which help in ospi learning
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Basic Mud Logging Guide for educational purpose
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Institutional Correction lecture only . . .
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Insiders guide to clinical Medicine.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Cell Structure & Organelles in detailed.
O7-L3 Supply Chain Operations - ICLT Program
Abdominal Access Techniques with Prof. Dr. R K Mishra
Module 4: Burden of Disease Tutorial Slides S2 2025
Microbial diseases, their pathogenesis and prophylaxis
Pharma ospi slides which help in ospi learning
VCE English Exam - Section C Student Revision Booklet
Basic Mud Logging Guide for educational purpose
GDM (1) (1).pptx small presentation for students
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Complications of Minimal Access Surgery at WLH
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Institutional Correction lecture only . . .
Final Presentation General Medicine 03-08-2024.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Sports Quiz easy sports quiz sports quiz
Insiders guide to clinical Medicine.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx

Color model in computer graphics

  • 2. References • R.C. Gonzales and R.E. Woods, Digital Image Processing, Addison-Wesley, Reading, 1992. • I. Newton, Opticks, 4th Edition, Dover, New York, 1704/1952. • Internet • Nipun Thapa’s Notes. 2
  • 3. What is Color ? • Color is a sensation produced by the human eye and nervous system. • It is useful to represent a color by a set of exactly three numbers. 3
  • 4. Color Model • A color model is an orderly system for creating a whole range of colors from a small set of primary colors. • It is an abstract mathematical model describing the way colors can be represented as tuples of numbers. 4
  • 5. Most Common Used Color Model • RGB Model • HSV Model 5
  • 6. RGB Color Model: Additive color model. For computer displays. Uses light to display color. Colors result from transmitted light.  Red + Green + Blue = White. 6
  • 7. 7
  • 8. HSV Color Model • Hue, Saturation, Value(Brightness) • Hexcone subset of cylindrical (polar) coordinate system. 8
  • 9. Means……. • Hue - The color we see (red, green, purple). • Saturation - How far is the color from gray (pink is less saturated than red, sky blue is less saturated than royal blue). • Brightness/Lightness (Luminance) - How bright is the color. 9
  • 10. Hue • Hue (H), the color type (such as red, green). • It ranges from 0 to 360 degree, with red at 0 degree, green at 120 degree, blue at 240 degree and so on. 10
  • 11. Saturation • Saturation (S) of the color ranges from 0 to 100%. Also sometimes, it called the "purity". • The lower the saturation of a color, the more "grayness" is present and the more faded the color will appear. • Saturation Scale 11
  • 12. Value • Value (V), the Brightness (V) of the color ranges from 0 to 100%. • Value Scale 12
  • 13. HSV & RGB Color Picker The HSV color picker is used to control the V value, while the corresponding slices through the cylinder are displayed, and a color is selected by clicking on a point in the disk. The RGB picker below simply uses sliders to control the three components, while the spectrum picker at the bottom lets you pick your color directly by clicking. 13
  • 14. 14
  • 15. Conversion RGB to HSV • Input: RGB • Output: HSV • Step1: [normalize the RGB values to be in the range [0, 1]] • r = R/ 255 • g = G/ 255 • b = B/ 255 • Step2: [Find the difference between max and min values] • M = max(r, g, b), m = min(r, g, b). • And, difference Δ = M-m. • Step3: [Calculate value V] • V = max(r, g, b) • Step4: [Calculate saturation S] • If Δ = 0, then S = 0, otherwise S = Δ / M • Step5: [Calculate hue H] • If M=r then H = 60*((g-b / Δ) * mod 6) • If M=g then H = 60*(2 + (b-r)/Δ) • If M=b then H = 60(4 + (r-g)/ Δ) • Step6: [output HSV] • The calculated H, S, and V are the output of the algorithm. 15
  • 16. Conversion HSV to RGB • Input: HSV • Output: RGB • When 0 ≤ H < 360, 0 ≤ S ≤ 1 and 0 ≤ V ≤ 1. • C = V × S • X = C × (1 - |(H / 60º) mod 2 - 1|) • m = V – C • (R, G, B) = (R'+ m, G'+ m, B'+ m). 16
  • 17. Application of Color Model • RGB model is used in hardware devices such as computer monitors, cameras, and scanners. • HSV color model is used in real life applications to describe perception of viewer. 17