Color Image Processing

Slides:



Advertisements
Similar presentations
13- 1 Chapter 13: Color Processing 。 Color: An important descriptor of the world 。 The world is itself colorless 。 Color is caused by the vision system.
Advertisements

Computer Vision Chapter 6 Color.
Color spaces CIE - RGB space. HSV - space. CIE - XYZ space.
COLORCOLOR A SET OF CODES GENERATED BY THE BRAİN How do you quantify? How do you use?
Achromatic and Colored Light CS 288 9/17/1998 Vic.
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
Lecture 6 Color and Texture
SWE 423: Multimedia Systems Chapter 4: Graphics and Images (2)
1 Color Used heavily in human vision Color is a pixel property, making some recognition problems easy Visible spectrum for humans is 400nm (blue) to 700.
1 Color Color Used heavily in human vision Used heavily in human vision Color is a pixel property, making some recognition problems easy Color is a pixel.
Color: Readings: Ch 6: color spaces color histograms color segmentation.
What is color for?.
CSE 803 Stockman Fall Color Used heavily in human vision Color is a pixel property, making some recognition problems easy Visible spectrum for humans.
Display Issues Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
CSc 461/561 CSc 461/561 Multimedia Systems Part A: 2. Image.
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.
CS559-Computer Graphics Copyright Stephen Chenney Color Recap The physical description of color is as a spectrum: the intensity of light at each wavelength.
Color Models AM Radio FM Radio + TV Microwave Infrared Ultraviolet Visible.
Color & Color Management. Overview I. Color Perception Definition & characteristics of color II. Color Representation RGB, CMYK, XYZ, Lab III. Color Management.
9/14/04© University of Wisconsin, CS559 Spring 2004 Last Time Intensity perception – the importance of ratios Dynamic Range – what it means and some of.
Digital Image Processing Colour Image Processing.
CGMB 324: Multimedia System design
Chapter 6: Color Image Processing Digital Image Processing.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS Light and Color Graphics Systems / Computer.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Computer Science 631 Lecture 7: Colorspace, local operations
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.
Week 6 Colour. 2 Overview By the end of this lecture you will be familiar with: –Human visual system –Foundations of light and colour –HSV and user-oriented.
1 Formation et Analyse d’Images Session 2 Daniela Hall 7 October 2004.
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.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Chapter 2: Color Basics. 2 What is light?  EM wave, radiation  Visible light has a spectrum wavelength from 400 – 780 nm.  Light can be composed.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
CSC361/ Digital Media Burg/Wong
COLORCOLOR Angel 1.4 and 2.4 J. Lindblad
CS6825: Color 2 Light and Color Light is electromagnetic radiation Light is electromagnetic radiation Visible light: nm. range Visible light:
Digital Image Processing Week VIII Thurdsak LEAUHATONG 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.
1 Color and Texture How do we quantify them? How do we use them to segment an image?
Computer Graphics: Achromatic and Coloured Light.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
Color Models Light property Color models.
Half Toning Dithering RGB CMYK Models
IMAGE PROCESSING COLOR IMAGE PROCESSING
Capturing Light… in man and machine
Color Image Processing
Color Image Processing
Color Image Processing
COLOR space Mohiuddin Ahmad.
Color 2017, Fall.
Chapter 6: Color Image Processing
Color Image Processing
Color 2015, Fall.
Color: Readings: Ch 6: color spaces color histograms
Color Representation Although we can differentiate a hundred different grey-levels, we can easily differentiate thousands of colors.
Color: Readings: Ch 6: color spaces color histograms
Color Image Processing
Capturing Light… in man and machine
Slides taken from Scott Schaefer
Color Image Processing
Image Perception and Color Space
Color Model By : Mustafa Salam.
Color Models l Ultraviolet Infrared 10 Microwave 10
Presentation transcript:

Color Image Processing Selim Aksoy Department of Computer Engineering Bilkent University saksoy@cs.bilkent.edu.tr

Color Used heavily in human vision. Visible spectrum for humans is 400 nm (blue) to 700 nm (red). Machines can “see” much more; e.g., X-rays, infrared, radio waves. Adapted from Gonzales and Woods CS 484, Spring 2008 ©2008, Selim Aksoy

Human visual system Color perception Light hits the retina, which contains photosensitive cells. These cells convert the spectrum into a few discrete values. Adapted from Steve Seitz, U of Washington CS 484, Spring 2008 ©2008, Selim Aksoy

Human visual system There are two types of photosensitive cells: Cones Sensitive to colored light, but not very sensitive to dim light. Rods Sensitive to achromatic light. We perceive color using three different types of cones. Each one is sensitive in a different region of the spectrum. 440 nm (BLUE) 545 nm (GREEN) 580 nm (RED) They have different sensitivities (we are more sensitive to green than red). Adapted from Octavia Camps, Penn State CS 484, Spring 2008 ©2008, Selim Aksoy

Factors that affect perception Light: the spectrum of energy that illuminates the object surface. Reflectance: ratio of reflected light to incoming light. Specularity: highly specular (shiny) vs. matte surface. Distance: distance to the light source. Angle: angle between surface normal and light source. Sensitivity: how sensitive is the sensor. Adapted from Linda Shapiro, U of Washington CS 484, Spring 2008 ©2008, Selim Aksoy

Color models They provide a standard way of specifying a particular color using a 3D coordinate system. Hardware oriented RGB: additive system (add colors to black) used for displays. CMY: subtractive system used for printing. YIQ: used for TV and is good for compression. Image processing oriented HSV: good for perceptual space for art, psychology and recognition. Adapted from Octavia Camps, Penn State CS 484, Spring 2008 ©2008, Selim Aksoy

Additive and subtractive colors Adapted from Gonzales and Woods CS 484, Spring 2008 ©2008, Selim Aksoy

RGB model Additive model. An image consists of 3 bands, one for each primary color. Appropriate for image displays. Adapted from Gonzales and Woods CS 484, Spring 2008 ©2008, Selim Aksoy

CMY model Cyan-Magenta-Yellow is a subtractive model which is good to model absorption of colors. Appropriate for paper printing. Adapted from Octavia Camps, Penn State CS 484, Spring 2008 ©2008, Selim Aksoy

CIE chromaticity model The Commission Internationale de l’Eclairage defined 3 standard primaries: X, Y, Z that can be added to form all visible colors. Y was chosen so that its color matching function matches the sum of the 3 human cone responses. CS 484, Spring 2008 ©2008, Selim Aksoy Adapted from Octavia Camps, Penn State

CIE chromaticity model x, y, z normalize X, Y, Z such that x + y + z = 1. Actually only x and y are needed because z = 1 - x - y. Pure colors are at the curved boundary. White is (1/3, 1/3, 1/3). Adapted from Octavia Camps, Penn State CS 484, Spring 2008 ©2008, Selim Aksoy

CIE Lab (L*a*b) model One luminance channel (L) and two color channels (a and b). In this model, the color differences which you perceive correspond to Euclidian distances in CIE Lab. The a axis extends from green (-a) to red (+a) and the b axis from blue (-b) to yellow (+b). The brightness (L) increases from the bottom to the top of the 3D model. http://www.fho-emden.de/~hoffmann/cielab03022003.pdf Adapted from Linda Shapiro, U of Washington CS 484, Spring 2008 ©2008, Selim Aksoy

YIQ model Have better compression properties. Luminance Y is encoded using more bits than chrominance values I and Q (humans are more sensitive to Y than I and Q). Luminance used by black/white TVs. All 3 values used by color TVs. Adapted from Octavia Camps, Penn State CS 484, Spring 2008 ©2008, Selim Aksoy

HSV model HSV: Hue, saturation, value are non-linear functions of RGB. Hue relations are naturally expressed in a circle. Adapted from Octavia Camps, Penn State CS 484, Spring 2008 ©2008, Selim Aksoy

HSV model Uniform: equal (small) steps give the same perceived color changes. Hue is encoded as an angle (0 to 2). Saturation is the distance to the vertical axis (0 to 1). Intensity is the height along the vertical axis (0 to 1). Adapted from Gonzales and Woods CS 484, Spring 2008 ©2008, Selim Aksoy

HSV model (Left) Image of food originating from a digital camera. (Center) Saturation value of each pixel decreased 20%. (Right) Saturation value of each pixel increased 40%. Adapted from Linda Shapiro, U of Washington CS 484, Spring 2008 ©2008, Selim Aksoy

Color models CMYK RGB HSV Adapted from Gonzales and Woods CS 484, Spring 2008 ©2008, Selim Aksoy

Examples: pseudocolor CS 484, Spring 2008 ©2008, Selim Aksoy

Examples: pseudocolor CS 484, Spring 2008 ©2008, Selim Aksoy

Examples: pseudocolor CS 484, Spring 2008 ©2008, Selim Aksoy

Examples: segmentation Can cluster on color values and pixel locations. Can use connected components and an approximate color criteria to find regions. Can train an algorithm to look for certain colored regions – for example, skin color. Original RGB image Color clusters by k-means CS 484, Spring 2008 ©2008, Selim Aksoy Adapted from Linda Shapiro, U of Washington

Examples: segmentation Skin color in RGB space: Purple region shows skin color samples from several people. Blue and yellow regions show skin in shadow or behind a beard. Adapted from Linda Shapiro, U of Washington CS 484, Spring 2008 ©2008, Selim Aksoy

Examples: segmentation (Left) Input video frame. (Center) Pixels classified according to RGB space. (Right) Largest connected component with aspect similar to a face. Adapted from Linda Shapiro, U of Washington CS 484, Spring 2008 ©2008, Selim Aksoy

Examples: histogram Histogram is fast and easy to compute. Size can easily be normalized so that different image histograms can be compared. Can match color histograms for database query or classification. Adapted from Linda Shapiro, U of Washington CS 484, Spring 2008 ©2008, Selim Aksoy

Examples: histogram CS 484, Spring 2008 ©2008, Selim Aksoy

Examples: image retrieval Adapted from Linda Shapiro, U of Washington CS 484, Spring 2008 ©2008, Selim Aksoy

Summary To print (RGB  CMY or grayscale) To compress images (RGB  YUV) Color information (U,V) can be compressed 4 times without significant degradation in perceptual quality. To compare images (RGB  CIE Lab) CIE Lab space is more perceptually uniform. Euclidean distance in Lab space hence meaningful. http://www.couleur.org/index.php?page=transformations CS 484, Spring 2008 ©2008, Selim Aksoy