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

Mathematical operations in image processing
Mathematical operations in image processingMathematical operations in image processing
Mathematical operations in image processingAsad Ali
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation pptGichelle Amon
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainDEEPASHRI HK
 
Color image processing
Color image processingColor image processing
Color image processingrmsurya
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentationramya marichamy
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentationasodariyabhavesh
 
Random and raster scan
Random and raster scanRandom and raster scan
Random and raster scanankur bhalla
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and SegmentationA B Shinde
 
Color
ColorColor
ColorFNian
 
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...Hemantha Kulathilake
 
Digital image processing
Digital image processingDigital image processing
Digital image processingABIRAMI M
 
Operations in Digital Image Processing + Convolution by Example
Operations in Digital Image Processing + Convolution by ExampleOperations in Digital Image Processing + Convolution by Example
Operations in Digital Image Processing + Convolution by ExampleAhmed Gad
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationMostafa G. M. Mostafa
 

What's hot (20)

Mathematical operations in image processing
Mathematical operations in image processingMathematical operations in image processing
Mathematical operations in image processing
 
Color models
Color modelsColor models
Color models
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation ppt
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Rgb and cmy color model
Rgb and cmy color modelRgb and cmy color model
Rgb and cmy color model
 
Color image processing
Color image processingColor image processing
Color image processing
 
Unit3 dip
Unit3 dipUnit3 dip
Unit3 dip
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Color Models
Color ModelsColor Models
Color Models
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Random and raster scan
Random and raster scanRandom and raster scan
Random and raster scan
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
 
Psuedo color
Psuedo colorPsuedo color
Psuedo color
 
Color
ColorColor
Color
 
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
COM2304: Color and Color Models
COM2304: Color and Color ModelsCOM2304: Color and Color Models
COM2304: Color and Color Models
 
RGB and CMY based color model
RGB and CMY based color modelRGB and CMY based color model
RGB and CMY based color model
 
Operations in Digital Image Processing + Convolution by Example
Operations in Digital Image Processing + Convolution by ExampleOperations in Digital Image Processing + Convolution by Example
Operations in Digital Image Processing + Convolution by Example
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 

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
 
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 model in computer graphics
Color model in computer graphicsColor model in computer graphics
Color model in computer graphicsPuja Dhakal
 
Color Models Computer Graphics
Color Models Computer GraphicsColor Models Computer Graphics
Color Models Computer Graphicsdhruv141293
 
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
 

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
 
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 models
Color modelsColor models
Color models
 
Color model in computer graphics
Color model in computer graphicsColor model in computer graphics
Color model in computer graphics
 
Color Models Computer Graphics
Color Models Computer GraphicsColor Models Computer Graphics
Color Models Computer Graphics
 
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
 

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

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 

Recently uploaded (20)

OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 

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