s.’rinzivillo’ 20april2015didawiki.di.unipi.it/.../va/ls05_color2.pdfrgb’color’model’ •...
TRANSCRIPT
![Page 1: S.’Rinzivillo’ 20April2015didawiki.di.unipi.it/.../va/ls05_color2.pdfRGB’Color’Model’ • Basedon direct’specificaon of three’primary’ colors • Addi+vemodel, each’component](https://reader034.vdocuments.site/reader034/viewer/2022042205/5ea7c1a6934c250f924482c6/html5/thumbnails/1.jpg)
Visual Analy+cs Colors (con+nued)
S. Rinzivillo 20 April 2015
![Page 2: S.’Rinzivillo’ 20April2015didawiki.di.unipi.it/.../va/ls05_color2.pdfRGB’Color’Model’ • Basedon direct’specificaon of three’primary’ colors • Addi+vemodel, each’component](https://reader034.vdocuments.site/reader034/viewer/2022042205/5ea7c1a6934c250f924482c6/html5/thumbnails/2.jpg)
How many color? Female Male Dog Programmer
![Page 3: S.’Rinzivillo’ 20April2015didawiki.di.unipi.it/.../va/ls05_color2.pdfRGB’Color’Model’ • Basedon direct’specificaon of three’primary’ colors • Addi+vemodel, each’component](https://reader034.vdocuments.site/reader034/viewer/2022042205/5ea7c1a6934c250f924482c6/html5/thumbnails/3.jpg)
RGB Color Model
• Based on direct specifica+on of three primary colors
• Addi+ve model, each component is summed with the others
"RGB color cube" by User:Maklaan -‐ Own workbased on:RGB_farbwuerfel.jpg by Horst Frank. Licensed under CC BY-‐SA 3.0 via Wikimedia Commons -‐ h[p://commons.wikimedia.org/wiki/File:RGB_color_cube.svg#/media/File:RGB_color_cube.svg
![Page 4: S.’Rinzivillo’ 20April2015didawiki.di.unipi.it/.../va/ls05_color2.pdfRGB’Color’Model’ • Basedon direct’specificaon of three’primary’ colors • Addi+vemodel, each’component](https://reader034.vdocuments.site/reader034/viewer/2022042205/5ea7c1a6934c250f924482c6/html5/thumbnails/4.jpg)
RGB Color Model
• R,G,B values may be expressed in range [0,1] • Some applica+ons use the range[0,255] • Usually a hexadecimal nota+on is used for range [0,ff]
• Not really intui+ve: how to define brown?
![Page 5: S.’Rinzivillo’ 20April2015didawiki.di.unipi.it/.../va/ls05_color2.pdfRGB’Color’Model’ • Basedon direct’specificaon of three’primary’ colors • Addi+vemodel, each’component](https://reader034.vdocuments.site/reader034/viewer/2022042205/5ea7c1a6934c250f924482c6/html5/thumbnails/5.jpg)
HSV Color Model
• Based on the intui+ve concepts of – Hue – Satura+on – Value
• Component values are expressed in ranges [0,1] or [0,255]
"Hsl-‐hsv models" by Jacob Rus -‐ Own work. Licensed under CC BY-‐SA 3.0 via Wikimedia Commons -‐ h[p://commons.wikimedia.org/wiki/File:Hsl-‐hsv_models.svg#/media/File:Hsl-‐hsv_models.svg
![Page 6: S.’Rinzivillo’ 20April2015didawiki.di.unipi.it/.../va/ls05_color2.pdfRGB’Color’Model’ • Basedon direct’specificaon of three’primary’ colors • Addi+vemodel, each’component](https://reader034.vdocuments.site/reader034/viewer/2022042205/5ea7c1a6934c250f924482c6/html5/thumbnails/6.jpg)
RGB and HSV
"HSL-‐HSV hue and chroma" by Jacob Rus -‐ Own work. Licensed under CC BY-‐SA 3.0 via Wikimedia Commons -‐ h[p://commons.wikimedia.org/wiki/File:HSL-‐HSV_hue_and_chroma.svg#/media/File:HSL-‐HSV_hue_and_chroma.svg
"Hsl-‐and-‐hsv" by Jacob Rus -‐ Own work. Licensed under CC BY-‐SA 3.0 via Wikimedia Commons -‐ h[p://commons.wikimedia.org/wiki/File:Hsl-‐and-‐hsv.svg#/media/File:Hsl-‐and-‐hsv.svg
![Page 7: S.’Rinzivillo’ 20April2015didawiki.di.unipi.it/.../va/ls05_color2.pdfRGB’Color’Model’ • Basedon direct’specificaon of three’primary’ colors • Addi+vemodel, each’component](https://reader034.vdocuments.site/reader034/viewer/2022042205/5ea7c1a6934c250f924482c6/html5/thumbnails/7.jpg)
COLOURIMETRY
![Page 8: S.’Rinzivillo’ 20April2015didawiki.di.unipi.it/.../va/ls05_color2.pdfRGB’Color’Model’ • Basedon direct’specificaon of three’primary’ colors • Addi+vemodel, each’component](https://reader034.vdocuments.site/reader034/viewer/2022042205/5ea7c1a6934c250f924482c6/html5/thumbnails/8.jpg)
CIE Standard Observer
• CIE: Interna+onal Commission on Illumina+on • Defini+on of an objec+ve color-‐mapping func+on: – Standard colorimetric observer
• Experiment – An observer is posi+oned in front of a bipar+te screen – Observer can manipulate intensi+es of three primary color beams
– Task:match the reference color
![Page 9: S.’Rinzivillo’ 20April2015didawiki.di.unipi.it/.../va/ls05_color2.pdfRGB’Color’Model’ • Basedon direct’specificaon of three’primary’ colors • Addi+vemodel, each’component](https://reader034.vdocuments.site/reader034/viewer/2022042205/5ea7c1a6934c250f924482c6/html5/thumbnails/9.jpg)
Standard Observer Experiment
![Page 10: S.’Rinzivillo’ 20April2015didawiki.di.unipi.it/.../va/ls05_color2.pdfRGB’Color’Model’ • Basedon direct’specificaon of three’primary’ colors • Addi+vemodel, each’component](https://reader034.vdocuments.site/reader034/viewer/2022042205/5ea7c1a6934c250f924482c6/html5/thumbnails/10.jpg)
Standard Observer Results
"CIE1931 RGBCMF" by Original uploader was Marco Polo at en.wikipedia -‐ Transferred from en.wikipedia; Transfer was stated to be made by User:Kanie.. Licensed under Public Domain via Wikimedia Commons -‐ h[p://commons.wikimedia.org/wiki/File:CIE1931_RGBCMF.svg#/media/File:CIE1931_RGBCMF.svg
![Page 11: S.’Rinzivillo’ 20April2015didawiki.di.unipi.it/.../va/ls05_color2.pdfRGB’Color’Model’ • Basedon direct’specificaon of three’primary’ colors • Addi+vemodel, each’component](https://reader034.vdocuments.site/reader034/viewer/2022042205/5ea7c1a6934c250f924482c6/html5/thumbnails/11.jpg)
Color Matching Func+ons: imaginary primary colors
"CIE 1931 XYZ Color Matching Func+ons" by User:Acdx -‐ Own work. Licensed under GFDL via Wikimedia Commons -‐ h[p://commons.wikimedia.org/wiki/File:CIE_1931_XYZ_Color_Matching_Func+ons.svg#/media/File:CIE_1931_XYZ_Color_Matching_Func+ons.svg
![Page 12: S.’Rinzivillo’ 20April2015didawiki.di.unipi.it/.../va/ls05_color2.pdfRGB’Color’Model’ • Basedon direct’specificaon of three’primary’ colors • Addi+vemodel, each’component](https://reader034.vdocuments.site/reader034/viewer/2022042205/5ea7c1a6934c250f924482c6/html5/thumbnails/12.jpg)
Tris+mulus Values
• A color if defined by its spectral func+on S(λ) • According to the matching func+on , we have:
X = x (λ)S(λ)dλ∫Y = y(λ)S(λ)dλ∫Z = z (λ)S(λ)dλ∫
![Page 13: S.’Rinzivillo’ 20April2015didawiki.di.unipi.it/.../va/ls05_color2.pdfRGB’Color’Model’ • Basedon direct’specificaon of three’primary’ colors • Addi+vemodel, each’component](https://reader034.vdocuments.site/reader034/viewer/2022042205/5ea7c1a6934c250f924482c6/html5/thumbnails/13.jpg)
Chroma+ci+es
• Tris+mulus values comprehend effects of hue, satura+on and brightness
• We can filter out brightness with chroma+ci+ed:
x = XX +Y + Z
y = YX +Y + Z
z = ZX +Y + Z
![Page 14: S.’Rinzivillo’ 20April2015didawiki.di.unipi.it/.../va/ls05_color2.pdfRGB’Color’Model’ • Basedon direct’specificaon of three’primary’ colors • Addi+vemodel, each’component](https://reader034.vdocuments.site/reader034/viewer/2022042205/5ea7c1a6934c250f924482c6/html5/thumbnails/14.jpg)
Chroma+city Diagram
"CIE1931xy blank" by BenRG -‐ File:CIExy1931.svg. Licensed under Public Domain via Wikimedia Commons -‐ h[p://commons.wikimedia.org/wiki/File:CIE1931xy_blank.svg#/media/File:CIE1931xy_blank.svg
• A mixture of two colors lies on the line connec+ng the two colors
• Chroma+city Diagram (gamut) is convex
• All visible colors are non-‐nega+ve combina+on of x, y, and z
• An equal combina+on of two colors does not lie in the mid-‐point
![Page 15: S.’Rinzivillo’ 20April2015didawiki.di.unipi.it/.../va/ls05_color2.pdfRGB’Color’Model’ • Basedon direct’specificaon of three’primary’ colors • Addi+vemodel, each’component](https://reader034.vdocuments.site/reader034/viewer/2022042205/5ea7c1a6934c250f924482c6/html5/thumbnails/15.jpg)
Color Mixing
• Given three primary colors, the corresponding triangle cannot cover the whole gamut
"CIE1931xy CIERGB" by BenRG -‐ Own work, inspired by File:CIExy1931.png. Licensed under Public Domain via Wikimedia Commons -‐ h[p://commons.wikimedia.org/wiki/File:CIE1931xy_CIERGB.svg#/media/File:CIE1931xy_CIERGB.svg