Color Image Processing

Similar documents
Color. Used heavily in human vision. Color is a pixel property, making some recognition problems easy

Imaging Process (review)

Color: Readings: Ch 6: color spaces color histograms color segmentation

Color. Used heavily in human vision. Color is a pixel property, making some recognition problems easy

Colors in Images & Video

LECTURE 07 COLORS IN IMAGES & VIDEO

Image and video processing (EBU723U) Colour Images. Dr. Yi-Zhe Song

Light. intensity wavelength. Light is electromagnetic waves Laser is light that contains only a narrow spectrum of frequencies

Digital Image Processing Color Models &Processing

Wireless Communication

COLOR and the human response to light

Color Image Processing. Gonzales & Woods: Chapter 6

Multimedia Systems Color Space Mahdi Amiri March 2012 Sharif University of Technology

Color & Graphics. Color & Vision. The complete display system is: We'll talk about: Model Frame Buffer Screen Eye Brain

Lecture 8. Color Image Processing

Color Image Processing

COLOR. and the human response to light

COLOR. Elements of color. Visible spectrum. The Human Visual System. The Fovea. There are three types of cones, S, M and L. r( λ)

CS 565 Computer Vision. Nazar Khan PUCIT Lecture 4: Colour

the eye Light is electromagnetic radiation. The different wavelengths of the (to humans) visible part of the spectra make up the colors.

Introduction to Multimedia Computing

Color and Perception. CS535 Fall Daniel G. Aliaga Department of Computer Science Purdue University

Digital Image Processing. Lecture # 8 Color Processing

Chapter 3 Part 2 Color image processing

Reading instructions: Chapter 6

Color images C1 C2 C3

Mahdi Amiri. March Sharif University of Technology

Raster Graphics. Overview קורס גרפיקה ממוחשבת 2008 סמסטר ב' What is an image? What is an image? Image Acquisition. Image display 5/19/2008.

קורס גרפיקה ממוחשבת 2008 סמסטר ב' Raster Graphics 1 חלק מהשקפים מעובדים משקפים של פרדו דוראנד, טומס פנקהאוסר ודניאל כהן-אור

COLOR. Elements of color. Visible spectrum. The Fovea. Lecture 3 October 30, Ingela Nyström 1. There are three types of cones, S, M and L

Bettina Selig. Centre for Image Analysis. Swedish University of Agricultural Sciences Uppsala University

To discuss. Color Science Color Models in image. Computer Graphics 2

Lecture 3: Grey and Color Image Processing

Digital Image Processing COSC 6380/4393. Lecture 20 Oct 25 th, 2018 Pranav Mantini

6 Color Image Processing

Color image processing

For a long time I limited myself to one color as a form of discipline. Pablo Picasso. Color Image Processing

Visual Perception. Overview. The Eye. Information Processing by Human Observer

IMAGE PROCESSING >COLOR SPACES UTRECHT UNIVERSITY RONALD POPPE

Stamp Colors. Towards a Stamp-Oriented Color Guide: Objectifying Classification by Color. John M. Cibulskis, Ph.D. November 18-19, 2015

Digital Image Processing. Lecture # 6 Corner Detection & Color Processing

Colour. Why/How do we perceive colours? Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow!

Computer Graphics. Si Lu. Fall er_graphics.htm 10/02/2015

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

Introduction & Colour

Images and Colour COSC342. Lecture 2 2 March 2015

Colour. Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow!) Colour Lecture!

Introduction to computer vision. Image Color Conversion. CIE Chromaticity Diagram and Color Gamut. Color Models

Unit 8: Color Image Processing

Color Image Processing EEE 6209 Digital Image Processing. Outline

Multimedia Systems and Technologies

Understand brightness, intensity, eye characteristics, and gamma correction, halftone technology, Understand general usage of color

Colour. Cunliffe & Elliott, Chapter 8 Chapman & Chapman, Digital Multimedia, Chapter 5. Autumn 2016 University of Stirling

Color Theory: Defining Brown

Introduction. The Spectral Basis for Color

The Principles of Chromatics

Reading. Foley, Computer graphics, Chapter 13. Optional. Color. Brian Wandell. Foundations of Vision. Sinauer Associates, Sunderland, MA 1995.

Fig Color spectrum seen by passing white light through a prism.

Prof. Feng Liu. Fall /02/2018

Colors in images. Color spaces, perception, mixing, printing, manipulating...

Lecture Color Image Processing. by Shahid Farid

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

VIDEO AND IMAGE PROCESSING USING DSP AND PFGA. Chapter 1: Introduction to Image Processing. Contents

Digital Image Processing (DIP)

Prof. Feng Liu. Winter /09/2017

YIQ color model. Used in United States commercial TV broadcasting (NTSC system).

Color Image Processing. Jen-Chang Liu, Spring 2006

EECS490: Digital Image Processing. Lecture #12

Announcements. Electromagnetic Spectrum. The appearance of colors. Homework 4 is due Tue, Dec 6, 11:59 PM Reading:

Introduction to Computer Vision CSE 152 Lecture 18

Dr. Shahanawaj Ahamad. Dr. S.Ahamad, SWE-423, Unit-06

Introduction to Computer Vision and image processing

MATH 5300 Lecture 3- Summary Date: May 12, 2008 By: Violeta Constantin

IFT3355: Infographie Couleur. Victor Ostromoukhov, Pierre Poulin Dép. I.R.O. Université de Montréal

Color Image Processing

The Science Seeing of process Digital Media. The Science of Digital Media Introduction

Color Science. What light is. Measuring light. CS 4620 Lecture 15. Salient property is the spectral power distribution (SPD)

Color & Compression. Robin Strand Centre for Image analysis Swedish University of Agricultural Sciences Uppsala University

Color images C1 C2 C3

VC 16/17 TP4 Colour and Noise

Computer Graphics Si Lu Fall /27/2016

CHAPTER 6 COLOR IMAGE PROCESSING

12 Color Models and Color Applications. Chapter 12. Color Models and Color Applications. Department of Computer Science and Engineering 12-1

Color and perception Christian Miller CS Fall 2011

The human visual system

CIE tri-stimulus experiment. Color Value Functions. CIE 1931 Standard. Color. Diagram. Color light intensity for visual color match

Today. Color. Color and light. Color and light. Electromagnetic spectrum 2/7/2011. CS376 Lecture 6: Color 1. What is color?

Color. Bilkent University. CS554 Computer Vision Pinar Duygulu

Performance Analysis of Color Components in Histogram-Based Image Retrieval

Figure 1: Energy Distributions for light

Colour spaces. Project for the Digital signal processing course

Lecture: Color. Juan Carlos Niebles and Ranjay Krishna Stanford AI Lab. Lecture 1 - Stanford University

Image processing & Computer vision Xử lí ảnh và thị giác máy tính

Image Processing for Mechatronics Engineering For senior undergraduate students Academic Year 2017/2018, Winter Semester

University of British Columbia CPSC 314 Computer Graphics Jan-Apr Tamara Munzner. Color.

Chapter 6: Color Image Processing. Office room : 841

Color Science. CS 4620 Lecture 15

MULTIMEDIA SYSTEMS

IMAGES AND COLOR. N. C. State University. CSC557 Multimedia Computing and Networking. Fall Lecture # 10

Color Image Processing

Transcription:

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, Fall 2012 2012, Selim Aksoy 2

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, Fall 2012 2012, Selim Aksoy 3

Human visual system There are two types of photosensitive cells: Cones Rods Sensitive to colored light, but not very sensitive to dim light. 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, Fall 2012 2012, Selim Aksoy 4

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, Fall 2012 2012, Selim Aksoy 5

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, Fall 2012 2012, Selim Aksoy 6

Additive and subtractive colors Adapted from Gonzales and Woods CS 484, Fall 2012 2012, Selim Aksoy 7

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, Fall 2012 2012, Selim Aksoy 8

CMY model Cyan-Magenta-Yellow is a subtractive model which is good to model absorption of colors. Appropriate for paper printing. = B G R Y M C 1 1 1 CS 484, Fall 2012 2012, Selim Aksoy 9 Adapted from Octavia Camps, Penn State

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. X 0.6067 0.1736 0.2001 R = Y 0.2988 0.5868 0.1143 G Z 0.0000 0.0661 1. 1149 B R 1.9107 = G 0.9843 B 0.0583 0.5326 1.9984 0.1185 0.2883 X 0.0283 Y 0.8986 Z CS 484, Fall 2012 2012, Selim Aksoy Adapted from Octavia Camps, Penn State 10

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, Fall 2012 2012, Selim Aksoy 11

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, Fall 2012 2012, Selim Aksoy 12

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. Y I Q = 0.299 0.596 0.212 0.587 0.275 0.532 0.114 R 0.321 G 0.311 B Adapted from Octavia Camps, Penn State CS 484, Fall 2012 2012, Selim Aksoy 13

HSV model HSV: Hue, saturation, value are non-linear functions of RGB. Hue relations are naturally expressed in a circle. ( R+ G+ B) I = 3 min( R, G, B) S = 1 I 1 1/ 2[( R H = cos ( R G) H = 360 cos G) + ( R B)] [ + ( R B)( G B) ] 2 1 1/ 2[( R G) + ( R Adapted from Octavia Camps, Penn State CS 484, Fall 2012 2012, Selim Aksoy 14 if B)] [( R G) + ( R B)( G B) ] 2 B< G if B> G

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, Fall 2012 2012, Selim Aksoy 15

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, Fall 2012 2012, Selim Aksoy 16

Color models CMYK RGB HSV Adapted from Gonzales and Woods CS 484, Fall 2012 2012, Selim Aksoy 17

Examples: pseudocolor CS 484, Fall 2012 2012, Selim Aksoy 18

Examples: pseudocolor CS 484, Fall 2012 2012, Selim Aksoy 19

Examples: pseudocolor CS 484, Fall 2012 2012, Selim Aksoy 20

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, Fall 2012 2012, Selim Aksoy Adapted from Linda Shapiro, U of Washington 21

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, Fall 2012 2012, Selim Aksoy 22

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, Fall 2012 2012, Selim Aksoy 23

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, Fall 2012 2012, Selim Aksoy 24

Examples: histogram CS 484, Fall 2012 2012, Selim Aksoy 25

Examples: image retrieval Adapted from Linda Shapiro, U of Washington CS 484, Fall 2012 2012, Selim Aksoy 26

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=transfor mations CS 484, Fall 2012 2012, Selim Aksoy 27