Color Models Light property Color models.

Slides:



Advertisements
Similar presentations
ECE 472/572 - Digital Image Processing Lecture 10 - Color Image Processing 10/25/11.
Advertisements

Color Image Processing
Light Light is fundamental for color vision Unless there is a source of light, there is nothing to see! What do we see? We do not see objects, but the.
School of Computing Science Simon Fraser University
CS 4731: Computer Graphics Lecture 24: Color Science
© 2002 by Yu Hen Hu 1 ECE533 Digital Image Processing Color Imaging.
Color.
COLOR and the human response to light
1 Perception. 2 “The consciousness or awareness of objects or other data through the medium of the senses.”
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Course Website: Digital Image Processing Colour Image Processing.
Digital Image Processing Colour Image Processing.
CS 376 Introduction to Computer Graphics 01 / 26 / 2007 Instructor: Michael Eckmann.
CGMB 324: Multimedia System design
Chapter 6: Color Image Processing Digital Image Processing.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Color. Contents Light and color The visible light spectrum Primary and secondary colors Color spaces –RGB, CMY, YIQ, HLS, CIE –CIE XYZ, CIE xyY and CIE.
6. COLOR IMAGE PROCESSING
Color 2011, Fall. Colorimetry : Definition (1/2) Colorimetry  Light is perceived in the visible band from 380 to 780 nm  distribution of wavelengths.
Color Theory ‣ What is color? ‣ How do we perceive it? ‣ How do we describe and match colors? ‣ Color spaces.
Chap 4 Color image processing. Chapter 6 Color Image Processing Chapter 6 Color Image Processing Two major areas: full color and pseudo color 6.1 Color.
Digital Image Processing Part 1 Introduction. The eye.
CSC361/ Digital Media Burg/Wong
Digital Image Processing Week VIII Thurdsak LEAUHATONG Color Image Processing.
Graphics Lecture 4: Slide 1 Interactive Computer Graphics Lecture 4: Colour.
Ch 6 Color Image processing CS446 Instructor: Nada ALZaben.
Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli
CS654: Digital Image Analysis Lecture 29: Color Image Processing.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Introduction to Computer Graphics
Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
CS-321 Dr. Mark L. Hornick 1 Color Perception. CS-321 Dr. Mark L. Hornick 2 Color Perception.
Image credit: Wikipedia (Fovea) Human Eye Some interesting facts – Rod cells: requires only low light b/w vision blur, all over retina EXCEPT fovea – Cone.
Computer Graphics: Achromatic and Coloured Light.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
Digital Image Processing Lecture 12: Color Image Processing Naveed Ejaz.
COMPUTER GRAPHICS CS 482 – FALL 2016 CHAPTER 28 COLOR COLOR PERCEPTION CHROMATICITY COLOR MODELS COLOR INTERPOLATION.
1 Chapter 4 Color in Image and Video 4.1 Color Science 4.2 Color Models in Images 4.3 Color Models in Video 4.4 Further Exploration.
Multimedia systems Lecture 5: Color in Image and Video.
Digital Image Processing
School of Electronics & Information Engineering
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging
Half Toning Dithering RGB CMYK Models
IMAGE PROCESSING COLOR IMAGE PROCESSING
Display Issues Ed Angel
Color Image Processing - 1
Color Image Processing
Color Image Processing
Human Eye Some interesting facts Useful fact Rod cells: Cone cells:
Color Image Processing
COLOR space Mohiuddin Ahmad.
Color 2017, Fall.
Chapter 6: Color Image Processing
Color Image Processing
Color 2015, Fall.
Introduction to Computer Graphics with WebGL
Chapter 12 COLOR THEORY.
Human Eye Some interesting facts Useful fact Rod cells: Cone cells:
Color Image Processing
Digital Image Processing
Digital Image Processing
Slides taken from Scott Schaefer
Digital Image Processing
Color Image Processing
About Color.
Image Perception and Color Space
Color Model By : Mustafa Salam.
Color Models l Ultraviolet Infrared 10 Microwave 10
Color Theory What is color? How do we perceive it?
Presentation transcript:

Color Models Light property Color models

Retina and Fovea Retina is covered by photoreceptors: cones and rods Fovea contains cones only (most vision acuity) Outside fovea, the retina is mostly covered by rods Cones: primarily responsible to color perception Long-cones (more sensitive to long wavelength  red light) called red-cones Medium-cones (more sensitive to medium wavelength  green light) called green-cones Short-cones (more sensitive to short wavelength  blue light) called blue-cones Rods: highly sensitive to intensity and black/white vision, responsible for vision under dark-dim condition

Light property Visible light ((wavelength in Nanometers = 10^(-7) cm) violet color  red color (approximately 400 nm – 700nm) Gamma Rays Ultra- Violet Infra- red Micro- wave X-rays TV Radio .001nm 1nm 10nm .0001ft .01ft 1ft 100ft

Color representation Primary colors (Principal color) Red, Green, Blue 2 – 3 colors produce other a wide range of colors Complementary colors (secondary colors) two complementary colors combine to produce white color Red  Cyan (= green + blue) Green  Magenta (= red + blue) Blue  Yellow (=red + green) Note: the combination of the limit number of primary colors cannot produce ALL possible visible colors

Color representation (cont’d) Color generation on CRT screen -- three primary color from each phosphor triad are “mixed” together

Color representation

Color production Addition: primary colors: R, G, B (e.g., TV monitor) Red + Blue = Magenta Green + Blue = Cyan Red + Green = Yellow (Secondary colors: Magenta, Cyan, Yellow) Subtraction (absorb primary color and reflect others, e.g., printer) white – green = Magenta white – red = Cyan white – blue = Yellow White - red – green – blue = black = Magenta + Cyan + Yellow white = red + green + blue

Color production (Cont’d) Red-Green-Blue • Most commonly known color space – used (internally) in every monitor – additive

Color production (Cont’d) Cyan-Magenta-Yellow • Used internally in color printers • Subtractive • Complementary to RGB: •C=1-R •M=1-G •Y=1-B • Also CMYK (black) – mostly for printer use

Color property Chromatic light quantity: Radiance, luminance, brightness Radiance – energy flows from light source Luminance – energy that the observer perceives from light source Brightness – perceived intensity of the light (notion of intensity) Chromaticity refers to Hue and Saturation Hue (dominant color of the light -- dominant frequency/wavelength) Saturation (purity) – a measure of the degree to which a pure color is diluted by white light

Color property (cont’d) Saturation and Luminance

Color property (cont’d) Example - fully saturated color: red, green, … (pure spectrum color) - less saturated color: pink (=red + white), …. Color hue :Dominant wavelength Intensity Purity (saturation)

Color model (space) XYZ: CIE standard (international commission on illumination) RGB: (additive primaries), monitor, video camera CMY: (subtractive primaries), printer, copier HSI (HSV, HSL): better for human vision interpretation YIQ and YUV (intensity, chromatic components) for composite video signal L*a*b model: refined CIE model

XYZ color model XYZ: CIE standard (international commission on illumination) three primaries (X, Y, Z). all visible colors are in a “horseshoe” shaped cone in the XYZ space or the normalized x-y space - the curve boundary represents pure colors - white is at about the position (1/3, 1/3) - when added, any two colors produces a point on the line between them

xyz representation

CIE chromaticity diagram

RGB model and CMY model

CMYK • K is for blacK • Save on color inks, by using black ink preferably • K = min(C,M,Y) • C = C-K • M = M-K • Y = Y-K

The RGB Color Model If R,G, and B are represented with 8 bits (24-bit RGB image), the total number of colors is (28 )3=16,777,216

The RGB color cube

RGB model Example for CRT display

L*a*b model Luminance: L Chrominance: a- range from green to red b – range from blue to yellow Used by Photoshop

Comparison of three color gamuts

Color model in video YIQ color model is used in color TV (NTSC) broadcasting Y (luminance) is the CIE Y primary I is the red-orange axis, Q is roughly orthogonal to I Eye is most sensitive to Y, next to I, next to Q Y = 0.299R + 0.587G + 0.114B I = 0.596R – 0.275G – 0.321B Q = 0.212R – 0.528G + 0.311B

Color model in video YUV color model (CCIR601 standard for digital video) - Uses the Y, Cb, Cr color model Y = 0.299R + 0.587G + 0.114B Cb = B – Y Cr = R - Y - Scaled and filtered versions of the B-Y and R-Y color difference signals are used to modulate subcarrier in the U and V axes respectively U = 0.492(B-Y) V = 0.877(R-Y) U = -0.169R – 0.331G + 0.500B V = 0.500R – 0.419G - 0.081B

Example of YUV images Original Y U V

HSI model

HSI model Convert RGB  HSI H = theta if B<=G H is in the range [0°, 360°] (which can be normalized to the range [0,1] by dividing by 360°) theta = S = 1 – [min(R, G, B) / I] I = (1/3) (R+G+B)

HSI model Convert HSI  RGB H is in the range [0°, 360°] In the case of RG sector: 0° <= H < 120° B = I (1-S); R = I [ 1 + ((S cos(H) / cos(60° - H)) ] G = 3I – (R+B)

HSI model Convert HSI  RGB In the case of GB sector: 120° <= H < 240° H = H - 120° R = I (1-S) G = I [ 1 + (S cos(H) / cos(60° - H) ] B = 3I – (R+G)

HSI model Convert HSI  RGB In the case of BR sector: 240° <= H < 360° H = H - 240° G = I (1-S) B = I [ 1 + (S cos(H) / cos(60° - H) ] R = 3I – (G+B)

Example Comparison: CMYK, RGB, and HSI

HLS model

HSV model

HSV sample

HSV sample

All color models

Pseudo-color image processing Intensity slicing -- from intensity to color -- assign different colors to different gray levels -- for example: increase the visibility in X-ray images, cloud-map, defect detection, etc.

Color image processing -- Histogram -- Smoothing -- Sharpening -- Segmentation -- Compression -- Transformation

Color image processing (cont’d) Color vector -- RGB model mask operation: three spatial masks -- HIS model mask operation on I component, H and S remain unchanged

Color image processing (cont’d) Color image enhancement -- E.g., Histogram RGB  HSI I  histogram equalization I’ Then HIS’  R’G’B’ -- E.g., Smoothing Perform the smoothing on RGB each channel individually.

Color image processing (cont’d) Color image enhancement (cont’d) -- E.g., Sharpening For RGB model: For HSI model:

Color image processing (cont’d) Color image segmentation -- Example: Make use of the key components: Hue and Saturation Measure the RGB vector space – similarity measurement using Euclidean distance

Color image processing (cont’d) Color image edge detection -- Example: We can use the gradient to measure the change of intensities

Color image processing (cont’d) Color component compression -- Example: Chromatic components can be compressed in both spatial domain and frequency domain. The UV components are in low frequency domain, detail information are more sensitive to gray scale image than chromatic image