SlideShare a Scribd company logo
1 of 24
HSL & HSV COLOUR MODELS
- SALIL SULEY (66)
DENCIN VAZHAPPILLY (67)
ROHAN VEMULA (68)
VISHNU RC VIJAYAN (69)
SHREE WARANG (70)
MAHESHKUMAR YADAV (71)
HSL COLOUR MODEL
 Hue, saturation and lightness
 Most commonly used cylindrical coordinate system for representing
RED GREEN BLUE color model
 It was developed in 1970 for computer graphics applications, color
pickings and image editing softwares
TERMINOLOGIES
 Hue : The angle around the central vertical axis corresponds to hue
 Saturation : The distance from the central axis corresponds to
saturation. (0%-Grey & 100%-Full sat)
 Lightness :The distance along the central axis corresponds to
lightness. (0%-Black & 100%-White)
PRINCIPLES
 HSL tries to be more intuitive than the general Cartesian color
representation
 HSL helps us to bridge the RGB color model , understood by
computers, to mix colors more like humans do
HSL COLOUR ATTRIBUTES
 Hue:- It refers to pure spectrum of colours, without tint
or shade. colours with same hue are distinguished with
their lightness.eg- light blue
 Saturation:- measurement of how different from pure
grey the colour is perceived saturation depends on the
surrounding in which colour is seen
 Luminosity:-brightness of area judged relative to
brightness of similarly illuminated area which appears to
be bright
HSL SCALE
o Hue is represented as angle of colour circle, given as unit less number.
Red=0=360, Green=120,Blue=240
o Saturation & luminosity is represented in percentage,
o 100% is full saturation
o 0% is shade of grey
o 100% luminosity is white
o 50% luminosity is normal
o 0% luminosity is black
HSL REPRESENTATION
 HSL is represented as two cones within the
cyclinder
LUMINOSIT
Y
SATURATIO
N
100 0
75 33
50 100
25 33
0 0
HSL AND RGB CONVERSION
HSL, HEX AND RGB CO-ORDINATES FOR PROMINENT COLOURS
ADVANTAGES OF HSL
 The HSL model keeps the light and saturation aspects of the color model
unique from each other, it tends to be more useful for those wishing to
take advantage of these attributes in their work
 Light can range from white to black in a HSL model (with the desired
color in between), while the similar HSV color model can only range
from the desired color to black
 It is user-oriented. Therefore colour selection and image colour
adjustment can be done faster with greater ease
DISADVANTAGES
 While choosing a single color, they ignore much of the complexity of
color appearance
 Because hue is a circular quantity, represented numerically with a
discontinuity at 360°, it is difficult to use in statistical computations or
quantitative comparisons
 Analysis requires the use of circular statistics
 Since computational capacity has increased tremendously over the past
few decades, better alternative colour models are available for greater
visual accuracy and perceptual relevance
HSV COLOUR MODEL
 HSV are the most common cylindrical-coordinate representations of
points in an RGB colour model
 HSV stands for hue, saturation, and value
 Hue, Saturation, Value or HSV is a colour model that
describes colours (hue or tint) in terms of their shade (saturation or
amount of gray) and their brightness (value or luminance)
PRINCIPLE
 Cylindrical geometries with hue, their angular dimension, starting at
the red primary at 0°, passing through the green primary at 120° and
the blue primary at 240°, and then wrapping back to red at 360°
 The two representations rearrange the geometry of RGB in an
attempt to be more intuitive and perceptually relevant ,based on the
color wheel
 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
 Value (v) of the color ranges from 0 to 100%. It is a nonlinear
transfor(v), the brightness mation of the RGB color space. Note that
HSV and HSB are the same
HSV SCALE
 Hue angles: 0=Red, 120=Green, 240=Blue.
 Saturation: 0 at the centre (no saturation, which
makes no real colouring) to 1 at the edge (full
saturated colours).
 Value: From 0 at the bottom (no colour, or black) to
1 at the top.
PROGRAM TO CONVERT RGB TO HSV
// r,g,b values are from 0 to 1
// h = [0,360], s = [0,1], v = [0,1]
// if s == 0, then h = -1 (undefined)
void RGBtoHSV( float r, float g, float b, float *h, float *s, float
*v )
{
float min, max, delta;
min = MIN( r, g, b );
max = MAX( r, g, b );
*v = max; // v
delta = max - min;
if( max != 0 )
*s = delta / max; // s
else {
// r = g = b = 0 // s = 0, v is undefined
*s = 0;
*h = -1;
return;
}
if( r == max )
*h = ( g - b ) / delta; // between yellow
& magenta
else if( g == max )
*h = 2 + ( b - r ) / delta; // between cyan &
yellow
else
*h = 4 + ( r - g ) / delta; // between magenta &
cyan
*h *= 60; // degrees
if( *h < 0 )
*h += 360;
}
REFERENCES
 Websites
1. https://en.wikipedia.org/wiki/HSL_and_HSV
2. www.lps.usp.br/hae/apostila/basico/HSI-wikipedia.pdf
3. www.ics.uci.edu/~majumder/vispercep/colviz.pdf
4. www.slideshare.net/EngHaitham/color-models-42915934

More Related Content

What's hot

Color Models Computer Graphics
Color Models Computer GraphicsColor Models Computer Graphics
Color Models Computer Graphicsdhruv141293
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing PresentationRevanth Chimmani
 
Color model in computer graphics
Color model in computer graphicsColor model in computer graphics
Color model in computer graphicsPuja Dhakal
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING anam singla
 
Color
ColorColor
ColorFNian
 
Random and raster scan
Random and raster scanRandom and raster scan
Random and raster scanankur bhalla
 
Color image processing
Color image processingColor image processing
Color image processingrmsurya
 
Color fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingColor fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingAmna
 
Multimedia fundamental concepts in video
Multimedia fundamental concepts in videoMultimedia fundamental concepts in video
Multimedia fundamental concepts in videoMazin Alwaaly
 
Image trnsformations
Image trnsformationsImage trnsformations
Image trnsformationsJohn Williams
 
Image compression standards
Image compression standardsImage compression standards
Image compression standardskirupasuchi1996
 
Lecture6 text
Lecture6   textLecture6   text
Lecture6 textJay Patel
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsasodariyabhavesh
 
Color and color models
Color and color modelsColor and color models
Color and color modelsSafwan Hashmi
 

What's hot (20)

Color Models Computer Graphics
Color Models Computer GraphicsColor Models Computer Graphics
Color Models Computer Graphics
 
Color model
Color modelColor model
Color model
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing Presentation
 
Color model in computer graphics
Color model in computer graphicsColor model in computer graphics
Color model in computer graphics
 
Psuedo color
Psuedo colorPsuedo color
Psuedo color
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING
 
Color
ColorColor
Color
 
Random and raster scan
Random and raster scanRandom and raster scan
Random and raster scan
 
Color image processing
Color image processingColor image processing
Color image processing
 
Computer graphics color models
Computer graphics    color modelsComputer graphics    color models
Computer graphics color models
 
Color fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingColor fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image Processing
 
Multimedia fundamental concepts in video
Multimedia fundamental concepts in videoMultimedia fundamental concepts in video
Multimedia fundamental concepts in video
 
Image trnsformations
Image trnsformationsImage trnsformations
Image trnsformations
 
Image compression standards
Image compression standardsImage compression standards
Image compression standards
 
Lecture6 text
Lecture6   textLecture6   text
Lecture6 text
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woods
 
Color and color models
Color and color modelsColor and color models
Color and color models
 
Rgb colour model
Rgb colour modelRgb colour model
Rgb colour model
 
Color Models
Color ModelsColor Models
Color Models
 
GRPHICS06 - Shading
GRPHICS06 - ShadingGRPHICS06 - Shading
GRPHICS06 - Shading
 

Similar to HSL & HSV colour models

HSB Color Model Presentation.pdf
HSB Color Model Presentation.pdfHSB Color Model Presentation.pdf
HSB Color Model Presentation.pdfSubhasishHalder11
 
"Color model" Slide for Computer Graphics Presentation
"Color model" Slide for Computer Graphics Presentation"Color model" Slide for Computer Graphics Presentation
"Color model" Slide for Computer Graphics PresentationAshek Shanto
 
10 color image processing
10 color image processing10 color image processing
10 color image processingbabak danyal
 
CG04 Color Models.ppsx
CG04 Color Models.ppsxCG04 Color Models.ppsx
CG04 Color Models.ppsxjyoti_lakhani
 
Lecnoninecolorspacemodelindigitalimageprocess
LecnoninecolorspacemodelindigitalimageprocessLecnoninecolorspacemodelindigitalimageprocess
LecnoninecolorspacemodelindigitalimageprocessIrsaAamir
 
Colour image processing(fip)
Colour image processing(fip)Colour image processing(fip)
Colour image processing(fip)Vijay Kumar
 
Computer graphics & image processing lecture notes
Computer graphics & image processing lecture notesComputer graphics & image processing lecture notes
Computer graphics & image processing lecture notesTejaRamPooniya
 
Video color correction and more
Video color correction and moreVideo color correction and more
Video color correction and moreJoe Nasr
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
colorhistoryterminology.pdf
colorhistoryterminology.pdfcolorhistoryterminology.pdf
colorhistoryterminology.pdfwereb1
 
Week 11 Munsell system.ppt
Week 11 Munsell system.pptWeek 11 Munsell system.ppt
Week 11 Munsell system.pptssuserc2d96f
 
CSS3: Border And Colors
CSS3: Border And ColorsCSS3: Border And Colors
CSS3: Border And ColorsReema
 

Similar to HSL & HSV colour models (20)

HSB Color Model Presentation.pdf
HSB Color Model Presentation.pdfHSB Color Model Presentation.pdf
HSB Color Model Presentation.pdf
 
"Color model" Slide for Computer Graphics Presentation
"Color model" Slide for Computer Graphics Presentation"Color model" Slide for Computer Graphics Presentation
"Color model" Slide for Computer Graphics Presentation
 
Color models
Color modelsColor models
Color models
 
10 color image processing
10 color image processing10 color image processing
10 color image processing
 
CG04 Color Models.ppsx
CG04 Color Models.ppsxCG04 Color Models.ppsx
CG04 Color Models.ppsx
 
image-pro.ppt
image-pro.pptimage-pro.ppt
image-pro.ppt
 
Lecnoninecolorspacemodelindigitalimageprocess
LecnoninecolorspacemodelindigitalimageprocessLecnoninecolorspacemodelindigitalimageprocess
Lecnoninecolorspacemodelindigitalimageprocess
 
Colour image processing(fip)
Colour image processing(fip)Colour image processing(fip)
Colour image processing(fip)
 
Computer graphics & image processing lecture notes
Computer graphics & image processing lecture notesComputer graphics & image processing lecture notes
Computer graphics & image processing lecture notes
 
Color Models.pptx
Color Models.pptxColor Models.pptx
Color Models.pptx
 
Color Theory
Color TheoryColor Theory
Color Theory
 
Video color correction and more
Video color correction and moreVideo color correction and more
Video color correction and more
 
Colormodels
ColormodelsColormodels
Colormodels
 
CG_U4_M1.pptx
CG_U4_M1.pptxCG_U4_M1.pptx
CG_U4_M1.pptx
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
 
colorhistoryterminology.pdf
colorhistoryterminology.pdfcolorhistoryterminology.pdf
colorhistoryterminology.pdf
 
Colour
ColourColour
Colour
 
Week 11 Munsell system.ppt
Week 11 Munsell system.pptWeek 11 Munsell system.ppt
Week 11 Munsell system.ppt
 
CSS3: Border And Colors
CSS3: Border And ColorsCSS3: Border And Colors
CSS3: Border And Colors
 
Lect 06
Lect 06 Lect 06
Lect 06
 

More from Vishnu RC Vijayan

More from Vishnu RC Vijayan (13)

Procurement and Supply Chain
Procurement and Supply ChainProcurement and Supply Chain
Procurement and Supply Chain
 
Hand Pump Design
Hand Pump DesignHand Pump Design
Hand Pump Design
 
Project management Using Pert
Project management Using PertProject management Using Pert
Project management Using Pert
 
Energy conservation in compressed air systems
Energy conservation in compressed air systemsEnergy conservation in compressed air systems
Energy conservation in compressed air systems
 
Liquefied petroleum gas cylinder
Liquefied petroleum gas cylinderLiquefied petroleum gas cylinder
Liquefied petroleum gas cylinder
 
Mechatronics case study on Wireless Survillence Balloon
Mechatronics case study on Wireless Survillence BalloonMechatronics case study on Wireless Survillence Balloon
Mechatronics case study on Wireless Survillence Balloon
 
Fea course project on Leaf Spring
Fea course project on Leaf SpringFea course project on Leaf Spring
Fea course project on Leaf Spring
 
Bio-gasifier Coupled Engine
Bio-gasifier Coupled EngineBio-gasifier Coupled Engine
Bio-gasifier Coupled Engine
 
Ceramics
CeramicsCeramics
Ceramics
 
shell moulding
shell mouldingshell moulding
shell moulding
 
Anti rape gloves
Anti rape glovesAnti rape gloves
Anti rape gloves
 
Hydroforming
HydroformingHydroforming
Hydroforming
 
Gravity Oscillating mechanism
Gravity Oscillating mechanismGravity Oscillating mechanism
Gravity Oscillating mechanism
 

Recently uploaded

COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Call Girls Mumbai
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...soginsider
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadhamedmustafa094
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Rums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfRums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfsmsksolar
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...Health
 

Recently uploaded (20)

Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Rums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfRums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdf
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
 

HSL & HSV colour models

  • 1. HSL & HSV COLOUR MODELS - SALIL SULEY (66) DENCIN VAZHAPPILLY (67) ROHAN VEMULA (68) VISHNU RC VIJAYAN (69) SHREE WARANG (70) MAHESHKUMAR YADAV (71)
  • 2. HSL COLOUR MODEL  Hue, saturation and lightness  Most commonly used cylindrical coordinate system for representing RED GREEN BLUE color model  It was developed in 1970 for computer graphics applications, color pickings and image editing softwares
  • 3. TERMINOLOGIES  Hue : The angle around the central vertical axis corresponds to hue  Saturation : The distance from the central axis corresponds to saturation. (0%-Grey & 100%-Full sat)  Lightness :The distance along the central axis corresponds to lightness. (0%-Black & 100%-White)
  • 4. PRINCIPLES  HSL tries to be more intuitive than the general Cartesian color representation  HSL helps us to bridge the RGB color model , understood by computers, to mix colors more like humans do
  • 5. HSL COLOUR ATTRIBUTES  Hue:- It refers to pure spectrum of colours, without tint or shade. colours with same hue are distinguished with their lightness.eg- light blue  Saturation:- measurement of how different from pure grey the colour is perceived saturation depends on the surrounding in which colour is seen  Luminosity:-brightness of area judged relative to brightness of similarly illuminated area which appears to be bright
  • 6. HSL SCALE o Hue is represented as angle of colour circle, given as unit less number. Red=0=360, Green=120,Blue=240 o Saturation & luminosity is represented in percentage, o 100% is full saturation o 0% is shade of grey o 100% luminosity is white o 50% luminosity is normal o 0% luminosity is black
  • 7. HSL REPRESENTATION  HSL is represented as two cones within the cyclinder LUMINOSIT Y SATURATIO N 100 0 75 33 50 100 25 33 0 0
  • 8. HSL AND RGB CONVERSION
  • 9. HSL, HEX AND RGB CO-ORDINATES FOR PROMINENT COLOURS
  • 10. ADVANTAGES OF HSL  The HSL model keeps the light and saturation aspects of the color model unique from each other, it tends to be more useful for those wishing to take advantage of these attributes in their work  Light can range from white to black in a HSL model (with the desired color in between), while the similar HSV color model can only range from the desired color to black  It is user-oriented. Therefore colour selection and image colour adjustment can be done faster with greater ease
  • 11. DISADVANTAGES  While choosing a single color, they ignore much of the complexity of color appearance  Because hue is a circular quantity, represented numerically with a discontinuity at 360°, it is difficult to use in statistical computations or quantitative comparisons  Analysis requires the use of circular statistics  Since computational capacity has increased tremendously over the past few decades, better alternative colour models are available for greater visual accuracy and perceptual relevance
  • 12. HSV COLOUR MODEL  HSV are the most common cylindrical-coordinate representations of points in an RGB colour model  HSV stands for hue, saturation, and value  Hue, Saturation, Value or HSV is a colour model that describes colours (hue or tint) in terms of their shade (saturation or amount of gray) and their brightness (value or luminance)
  • 13. PRINCIPLE  Cylindrical geometries with hue, their angular dimension, starting at the red primary at 0°, passing through the green primary at 120° and the blue primary at 240°, and then wrapping back to red at 360°  The two representations rearrange the geometry of RGB in an attempt to be more intuitive and perceptually relevant ,based on the color wheel  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  Value (v) of the color ranges from 0 to 100%. It is a nonlinear transfor(v), the brightness mation of the RGB color space. Note that HSV and HSB are the same
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20. HSV SCALE  Hue angles: 0=Red, 120=Green, 240=Blue.  Saturation: 0 at the centre (no saturation, which makes no real colouring) to 1 at the edge (full saturated colours).  Value: From 0 at the bottom (no colour, or black) to 1 at the top.
  • 21. PROGRAM TO CONVERT RGB TO HSV // r,g,b values are from 0 to 1 // h = [0,360], s = [0,1], v = [0,1] // if s == 0, then h = -1 (undefined) void RGBtoHSV( float r, float g, float b, float *h, float *s, float *v ) { float min, max, delta; min = MIN( r, g, b ); max = MAX( r, g, b ); *v = max; // v delta = max - min; if( max != 0 ) *s = delta / max; // s else {
  • 22. // r = g = b = 0 // s = 0, v is undefined *s = 0; *h = -1; return; } if( r == max ) *h = ( g - b ) / delta; // between yellow & magenta else if( g == max ) *h = 2 + ( b - r ) / delta; // between cyan & yellow else *h = 4 + ( r - g ) / delta; // between magenta & cyan *h *= 60; // degrees if( *h < 0 ) *h += 360; }
  • 23.
  • 24. REFERENCES  Websites 1. https://en.wikipedia.org/wiki/HSL_and_HSV 2. www.lps.usp.br/hae/apostila/basico/HSI-wikipedia.pdf 3. www.ics.uci.edu/~majumder/vispercep/colviz.pdf 4. www.slideshare.net/EngHaitham/color-models-42915934