Digital Image Processing Color Models &Processing

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

Unit 8: Color Image Processing

Color Image Processing

Digital Image Processing. Lecture # 8 Color Processing

Digital Image Processing (DIP)

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

6 Color Image Processing

Chapter 3 Part 2 Color image processing

Color Image Processing. Jen-Chang Liu, Spring 2006

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

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

Color Image Processing. Gonzales & Woods: Chapter 6

Lecture 8. Color Image Processing

Digital Image Processing

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

COLOR and the human response to light

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

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

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

Lecture Color Image Processing. by Shahid Farid

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

Wireless Communication

COLOR. and the human response to light

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

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

Mahdi Amiri. March Sharif University of Technology

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

Color Image Processing

Color Image Processing EEE 6209 Digital Image Processing. Outline

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

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

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

Colors in Images & Video

Digital Image Processing Chapter 6: Color Image Processing ( )

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

CHAPTER 6 COLOR IMAGE PROCESSING

Color and Color Model. Chap. 12 Intro. to Computer Graphics, Spring 2009, Y. G. Shin

Chapter 6: Color Image Processing. Office room : 841

Color image processing

Digital Image Processing Chapter 6: Color Image Processing

Introduction. The Spectral Basis for Color

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

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

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

Hello, welcome to the video lecture series on Digital image processing. (Refer Slide Time: 00:30)

Imaging Process (review)

Lecture 3: Grey and Color Image Processing

Color images C1 C2 C3

LECTURE 07 COLORS IN IMAGES & VIDEO

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

Color Image Processing

The Principles of Chromatics

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

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

Andrea Torsello DAIS Università Ca Foscari via Torino 155, Mestre (VE) Color Vision

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

Color Image Processing

Introduction to Computer Vision and image 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!

Digital Image Processing COSC 6380/4393

Test 1: Example #2. Paul Avery PHY 3400 Feb. 15, Note: * indicates the correct answer.

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

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

Digital Image Processing

Introduction & Colour

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

Image and video processing

Introduction to Multimedia Computing

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

Colorimetry and Color Modeling

Color Science. CS 4620 Lecture 15

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

Reading instructions: Chapter 6

EECS490: Digital Image Processing. Lecture #12

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

Computers and Imaging

Color images C1 C2 C3

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

MODULE 4 LECTURE NOTES 1 CONCEPTS OF COLOR

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

Colour (1) Graphics 2

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

Images and Colour COSC342. Lecture 2 2 March 2015

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

Figure 1: Energy Distributions for light

VC 16/17 TP4 Colour and Noise

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

Introduction to Color Theory

Color and Color Models

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

Multimedia Systems and Technologies

Introduction to Color Theory

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

Color Image Processing II

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

Interactive Computer Graphics

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

Color Image Processing

IMAGE PROCESSING >COLOR SPACES UTRECHT UNIVERSITY RONALD POPPE

Transcription:

Digital Image Processing Color Models &Processing Dr. Hatem Elaydi Electrical Engineering Department Islamic University of Gaza Fall 2015 Nov 16, 2015

Color interpretation Color spectrum vs. electromagnetic spectrum Why does CIE standard specify R, G, B as the primary colors? Are there actually single special band as R, G, or B? What is additive color system? What is subtractive color system? What is hue and saturation? or what is chromaticity? What is chromaticity diagram? tristimulus? Why can't the three primary colors generate all the visible colors specified in the diagram? Where is brown? Comment on the different usages of RGB, CMYK, HSI, and L*a*b* color models. What is the color gamut of color monitors, color printing devices, and L*a*b*? Color processing What is the difference between tonal and color correction? What is the difference between processing using RGB model vs. HSI model? 2

Color spectrum When passing through a prism, a beam of sunlight is decomposed into a spectrum of colors: violet, blue, green, yellow, orange, red 1666, Sir Isaac Newton 3

Electromagnetic energy spectrum Ultraviolet visible light infrared The longer the wavelength (meter), the lower the frequency (Hz), and the lower the energy (electron volts) The discovery of infrared (1800, Sir Frederick William Herschel) What is infrared? http://coolcosmos.ipac.caltech.edu/cosmic_classroom/ir_tutorial/ 4

A typical spectral reflectance pattern of green vegetation 5

Primary colors of human vision Detailed experimental curve Curve available in in 1965 Cones are divided into three sensible categories 65% of cones are sensitive to red light 33% are sensitive to green light 2% are sensitive to blue light For this reason, red, green, and blue are referred to as the primary colors of human vision. CIE standard designated three specific wavelength to these three colors in 1931. Red (R) = 700 nm Green (G) = 546.1 nm Blue (B) = 435.8 nm 6

RGB model Color models Color monitor, color video cameras CMY model Color printers HIS, HSV model Color image manipulation YIQ : Color TV, Y(luminance), I(Inphase), Q(quadrature) 7

CIE Standard CIE: International Commission on Illumination (Comission Internationale de l Eclairage). Human perception based standard (1931), established with color matching experiment Standard observer: a composite of a group of 15 to 20 people

CIE xyy Space Irregular 3D volume shape is difficult to understand Chromaticity diagram (the same color of the varying intensity, Y, should all end up at the same point)

Color Image Processing RGB Model Pixel depth nr of bits used to represent each pixel Full color image (24 bits)

Primary colors of pigment A primary color of pigment refers to one that absorbs the primary color of the light, but reflects the other two. Primary color of pigments are magenta, cyan, and yellow Secondary color of pigments are then red, green, and blue 11

Additive vs. Subtractive color system involves light emitted directly from a source mixes various amounts of red, green and blue light to produce other colors. Combining one of these additive primary colors with another produces the additive secondary colors cyan, magenta, yellow. Combining all three primary colors produces white. Subtractive color starts with an object that reflects light and uses colorants to subtract portions of the white light illuminating an object to produce other colors. If an object reflects all the white light back to the viewer, it appears white. If an object absorbs (subtracts) all the light illuminating it, it appears black. 12

Color characterization Brightness: chromatic notion of intensity Hue: dominant color perceived by an observer Saturation: relative purity or the amount of white mixed with a hue G 120 o S H R 0 o 240 o B 13

Color Image Processing CMY Model Color Printer, Color Copier RGB data CMY B G R Y M C 1 1 1 B G R Q I Y 0.311 0.523 0.212 0.321 0.275 0.596 0.114 0.587 0.299 Q I Y B G R 1.705 1.108 1 0.647 0.272 1 0.620 0.956 1

The HSI Color Model This color model is based on polar coordinates, not Cartesian coordinates. The HSI model uses three measures to describe colors: Hue: A color attribute that describes a pure color (pure yellow, orange or red) Saturation: Gives a measure of how much a pure color is diluted with white light Intensity: Brightness is nearly impossible to measure because it is so subjective. Instead we use intensity. Intensity is the same achromatic notion that we have seen in grey level images

Color Image Processing

The HSI Color Model Because the only important things are the angle and the length of the saturation vector this plane is also often represented as a circle or a triangle

HSV Hexcone Intuitive interface to color

RGB -> HSI -> RGB RGB Image Hue Saturation Intensity

RGB -> HSI -> RGB Hue Saturation Intensity RGB Image

Color Image Processing RGB to HSI Conversion 1,,, where 0 ), ( 3 1 B G R I B G R I 0 0 2 1 if }, ) )( ( ) ( )] ( ) [( 2 1 { cos b g B G B R G R B R G R H 0 0 if, 360 b g H H }),, (min{ 3 1 B G R B G R S I B b I G g /, / where 0 0

Color Image Processing HSI to RGB Conversion 1 B 3 1 R (1 S) [1 3 G 1 R B S cos H ] cos(60 H ) assume 0 H 120

HSI-to-RGB conversion For 120 o <= H < 240 o For 240 o <= H < 360 o ( H -120 ) ( - H) é S cos ù G = I ê1 + ú, R = I, ë cos 180 û ( 1- S) B = I - R - G B ( H - 240 ) ( 300 - H) é S cos ù = I ê1 + ú, G = I, ë cos û ( 1- S) R = I - G - B 23

Chromatic images Colour Represented by vector not scalar Red, Green, Blue (RGB) Hue, Saturation, Value (HSV) luminance, chrominance (Yuv, Luv) S=0 Green Red Green V=0 Hue degrees: Red, 0 deg Green 120 deg Blue 240 deg

Lab: Photoshop Photoshop uses this model to get more control over color It s named CIE Lab model (refined from the original CIE model Liminance: L Chrominance: a ranges from green to red and b ranges from blue to yellow

Luv and UVW A color model for which, a unit change in luminance and chrominance are uniformly perceptible U = 13 W* (u - u o ); V = 13 W* (v - v o ); W = 25 ( 100 Y ) 1/3-17 where Y, u and v can be calculated from : X = O.607 Rn + 0.174 Gn + 0.200Bn Y = 0.299 Rn + 0.587 Gn + 0.114Bn Z = 0.066 Gn + 1.116 Bn x = X / ( X + Y + Z ) y = Y / ( X + Y + Z ) z = Z / ( X + Y + Z ) u = 4x / ( -2x + 12y + 3 ) v = 6y / ( -2x + 12y + 3 ) Luv is derived from UVW and Lab, with all components guaranteed to be positive

Yuv and YCrCb: digital video Initially, for PAL analog video, it is now also used in CCIR 601 standard for digital video Y (luminance) is the CIE Y primary. Y = 0.299R + 0.587G + 0.114B Chrominance is defined as the difference between a color and a reference white at the same luminance. It can be represented by U and V -- the color differences. U = B Y; V = R - Y YCrCb is a scaled and shifted version of YUV and used in JPEG and MPEG (all components are positive) Cb = (B - Y) / 1.772 + 0.5; Cr = (R - Y) / 1.402 + 0.5

Examples (RGB, HSV, Luv)

Gamma correction Without gamma correction, how will (0,255,127) look like? Normally gamma is within 1.7 and 2.8 Who is responsible for Gamma correction? SGI does it for you PC/Mac etc, you should do it yourself

No gamma correction

Gamma corrected to 1.7

Pseudo color Image Processing Pseudo color (also called false color) image processing consists of assigning colors to grey values based on a specific criterion The principle use of pseudo color image processing is for human visualization Humans can discern between thousands of color shades and intensities, compared to only about two dozen or so shades of grey

Pseudo Color Image Processing Intensity Slicing Intensity slicing and color coding is one of the simplest kinds of pseudo color image processing First we consider an image as a 3D function mapping spatial coordinates to intensities (that we can consider heights) Now consider placing planes at certain levels parallel to the coordinate plane If a value is one side of such a plane it is rendered in one color, and a different color if on the other side

Color Image Processing

Color Image Processing

Color Image Processing

Color Image Processing

Color Image Processing

Color Image Processing