Digital Image Processing Chapter 6: Color Image Processing

Similar documents
Digital Image Processing (DIP)

6 Color Image Processing

Color Image Processing EEE 6209 Digital Image Processing. Outline

Chapter 6: Color Image Processing. Office room : 841

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

CHAPTER 6 COLOR IMAGE PROCESSING

Color Image Processing. Jen-Chang Liu, Spring 2006

Chapter 3 Part 2 Color image processing

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

Unit 8: Color Image Processing

Color Image Processing

Digital Image Processing

Digital Image Processing Chapter 6: Color Image Processing ( )

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

Digital Image Processing Color Models &Processing

Digital Image Processing. Lecture # 8 Color Processing

Color Image Processing

Color Image Processing. Gonzales & Woods: Chapter 6

Image and video processing

Color Image Processing II

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

Color Image Processing

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

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

Digital Image Processing COSC 6380/4393

Lecture 8. 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.

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

Color Models and Color Image Processing. CS 663, Ajit Rajwade

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

Digital Image Processing Chapter 6: Color Image Processing ( )

EECS490: Digital Image Processing. Lecture #12

Lecture 3: Grey and Color Image Processing

Digital Image Processing

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

Color Transformations

Color Image Processing

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

Reading instructions: Chapter 6

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

Colors in Images & Video

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

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

MODULE 4 LECTURE NOTES 1 CONCEPTS OF COLOR

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

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

Color images C1 C2 C3

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

Introduction to Multimedia Computing

Interactive Computer Graphics

Color Image Processing

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

LECTURE 07 COLORS IN IMAGES & VIDEO

Wireless Communication

VC 16/17 TP4 Colour and Noise

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

COLOR and the human response to light

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

Afdeling Toegepaste Wiskunde/ Division of Applied Mathematics Colour image processing(6.4 and 6.5) SLIDE 1/10

Color Science. CS 4620 Lecture 15

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

Additive Color Synthesis

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

COLOR. and the human response to light

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

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

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

Color. Some slides are adopted from William T. Freeman

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

Lecture 7Colour. Kristína Lidayová Wednesday 23 October

Image acquisition. Midterm Review. Digitization, line of image. Digitization, whole image. Geometric transformations. Interpolation 10/26/2016

Introduction to Color Science (Cont)

Introduction to Computer Vision and image processing

Introduction. The Spectral Basis for Color

Lecture Color Image Processing. by Shahid Farid

Color image processing

A Pigment Fortification tactic for Humanoid Imagining

Figure 1: Energy Distributions for light

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

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

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

Introduction to Color Theory

Colorimetry and Color Modeling

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

Digital Image Processing

Colour (1) Graphics 2

Digital Image Processing

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

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

Multimedia Systems and Technologies

Color vision and representation

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

Homogeneous Representation Representation of points & vectors. Properties. Homogeneous Transformations

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

Werner Purgathofer

The Principles of Chromatics

Imaging Process (review)

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

CS6640 Computational Photography. 6. Color science for digital photography Steve Marschner

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

Transcription:

Digital Image Processing Chapter 6: Color Image Processing

Spectrum of White Light 1666 Sir Isaac Newton, 24 ear old, discovered white light spectrum.

Electromagnetic Spectrum Visible light wavelength: from around 400 to 700 nm 1. For an achromatic monochrome light source, there is onl 1 attribute to describe the qualit: intensit 2. For a chromatic light source, there are 3 attributes to describe the qualit: Radiance = total amount of energ flow from a light source Watts Luminance = amount of energ received b an observer lumens Brightness = intensit

Sensitivit of Cones in the Human Ee 6-7 millions cones in a human ee - 65% sensitive to Red light - 33% sensitive to Green light - 2 % sensitive to Blue light Primar colors: Defined CIE in 1931 Red = 700 nm Green = 546.1nm Blue = 435.8 nm CIE = Commission i Internationale de l Eclairage l The International Commission on Illumination

Primar and Secondar Colors Primar color Secondar colors Primar color Primar color

Primar and Secondar Colors cont. Additive primar colors: RGB use in the case of light sources such as color monitors RGB add together to get white Subtractive primar colors: CMY use in the case of pigments in printing devices White subtracted t b CMY to get Black

Color Characterization Hue: dominant color corresponding to a dominant wavelength of miture light wave Saturation: Rl Relative purit or amount of white light lihmied with a hue inversel proportional to amount of white light added Brightness: Intensit Hue Saturation Chromaticit amount of red X, green Y and blue Z to form an particular ou o ed, g ee d b ue o o p cu color is called tristimulus.

CIE Chromaticit Diagram Trichromatic ih i coefficients: ffii X X Y Z X Y Y Z z X Z Y Z z 1 Points on the boundar are full saturated colors

Color Gamut of Color Monitors and Printing Devices Color Monitors Printing devices

RGB Color Model Purpose of color models: to facilitate the specification of colors in some standard RGB color models: - based on cartesian coordinate sstem

RGB Color Cube R = 8 bits G = 8 bits B = 8 bits Color depth 24 bits = 16777216 colors Hidden faces of the cube

RGB Color Model cont. Red fied at 127

Safe RGB Colors Safe RGB colors: a subset of RGB colors. There are 216 colors common in most operating sstems.

RGB Safe-color Cube The RGB Cube is divided into 6 intervals on each ais to achieve the total 6 3 = 216 common colors. However, for 8 bit color representation, there are the total 256 colors. Therefore, the remaining 40 colors are left to OS.

CMY and CMYK Color Models CMY and CMYK Color Models C = Can M Magenta M = Magenta Y = Yellow K = Black K Black G R M C 1 1 B Y 1

HSI Color Model RGB, CMY models are not good for human interpreting HSI Color model: Hue: Dominant color Saturation: ti Relative purit inversel proportional to amount of white light added Color carring if informationi Intensit: Brightness

Relationship Between RGB and HSI Color Models RGB HSI

Hue and Saturation on Color Planes 1. A dot is the plane is an arbitrar color 2. Hue is an angle from a red ais. 3. Saturation is a distance to the point.

HSI Color Model cont. Intensit is given b a position on the vertical ais.

HSI Color Model Intensit is given b a position on the vertical ais.

Eample: HSI Components of RGB Cube RGB Cube Hue Saturation Intensit

Converting Colors from RGB to HSI Converting Colors from RGB to HSI G B G B H if 360 if 1 2 1 B R G R 2 1/ 2 1 2 cos B G B R G R B G R S 3 1 B G R 3 1 B G R I 3

Converting Colors from HSI to RGB RG sector: 0 H 120 GB sector: 120 H 240 H H 120 R S cos H I 1 cos60 H R I 1 S B I 1 S S cos H G I 1 cos60 H G 1 R B B 1 R G BR sector: 240 H 360 H H 240 B G I 1 I 1 S S cos H cos60 H R 1 G B

Eample: HSI Components of RGB Colors RGB Image Hue St Saturationti It Intensit

Eample: Manipulating HSI Components RGB Image Hue Hue Saturation Saturation Intensit Intensit RGB Image

Color Image Processing There are 2 tpes of color image processes 1. Pseudocolor image process: Assigning i colors to gra values based on a specific criterion. Gra scale images to be processed ma be a single image or multiple images such as multispectral images 2. Full color image process: The process to manipulate real color images such as color photographs.

Pseudocolor Image Processing Pseudo color = false color : In some case there is no color concept for a gra scale image but we can assign false colors to an image. Wh we need to assign colors to gra scale image? Answer: Human can distinguish i i different colors better than different shades of gra.

Intensit Slicing or Densit Slicing Formula: g, C C 2 if if f, T f, T 1 C 1 = Color No. 1 C 2 = Color No. 2 T Color C 2 C 1 A gra scale image viewed as a 3D surface. 0 T L-1 Intensit

Intensit Slicing Eample An X-ra image of a weld with cracks After assigning a ellow color to piels with value 255 and a blue color to all other piels.

Multi Level Intensit Slicing g, Ck for lk 1 f, lk Color C k = Color No. k l k = Threshold level k C k C k-1 C 3 C 2 C 1 0 l 1 l 2 l 3 l k-1 l k Intensit L-1

Multi Level Intensit Slicing Eample g, Ck for lk 1 f, l k C k = Color No. k l k = Threshold level k An X-ra image of the Picker Throid Phantom. After densit slicing into 8 colors

Color Coding Eample A unique color is assigned to each intensit value. Gra-scale image of average monthl rainfall. Color map Color coded image South America region

Gra Level to Color Transformation Assigning colors to gra levels based on specific mapping functions Red component Gra scale image Green component Blue component

Gra Level to Color Transformation Eample An X-ra image of a garment bag An X-ra image of a garment bag with a simulated eplosive device Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition. Transformations Color coded images

Gra Level to Color Transformation Eample An X-ra image of a garment bag An X-ra image of a garment bag with a simulated eplosive device Transformations Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition. Color coded images

Pseudocolor Coding Used in the case where there are man monochrome images such as multispectral satellite images.

Pseudocolor Coding Eample Visible blue = 0.45-0.52 m Ma water penetration Visible green = 0.52-0.60 m Measuring plant 1 2 Color composite images 3 4 Red = 1 Red = 1 Green = 2 Green = 2 Blue = 3 Blue = 4 Visible iibl red Near infrared = 0.63-0.69 m = 0.76-0.90 m Plant discrimination Biomass and shoreline mapping Washington D.C. area

Pseudocolor Coding Eample Psuedocolor rendition of Jupiter moon Io Yellow areas = older sulfur deposits. Red areas = material ejected from active volcanoes. Aclose close-up

Basics of Full-Color Image Processing 2 Methods: 1. Per-color-component processing: process each component separatel. 2. Vector processing: treat each piel as a vector to be processed. Eample of per-color-component processing: smoothing an image B smoothing each RGB component separatel.

Eample: Full-Color Image and Variouis Color Space Components Color image CMYK components RGB components HSI components

Color Transformation Use to transform colors to colors. Formulation: g, T f, f, = input color image, g, = output color image T = operation on f over a spatial neighborhood of, When onl data at one piel is used in the transformation, we can epress the transformation as: s i Ti r1, r2,, rn i= 1, 2,, n Where r i = color component of f, For RGB images, n = 3 s i = color component of g,

Eample: Color Transformation Eample: Color Transformation Form la for RGB:,, k kr s R R Formula for RGB:,,,, kr s kr s B B G G k Formula for HSI: k = 0.7,, kr s I I Formula for CMY: 1,, k kr s C C I H,S 1 1,, 1,, k kr s k kr s k kr s M M C C These 3 transformations give the same results 1,, k kr s Y Y the same results.

Color Complements Color complement replaces each color with its opposite color in the color circle of the Hue component. This operation is analogous to image negative in a gra scale image. Color circle

Color Complement Transformation Eample

Color Slicing Transformation We can perform slicing in color space: if the color of each piel is far from a desired color more than threshold distance, we set that color to some specific color such as gra, otherwise we keep the original color unchanged. or s i 0.5 ri if rj a j otherwise W 2 an 1 j n i= 1, 2,, n Set to gra Keep the original color s i 0.5 ri if n j1 r otherwise j a j 2 R 2 0 i= 1, 2,, n Set to gra Keep the original color

Color Slicing Transformation Eample After color slicing Original image

Tonal Correction Eamples In these eamples, onl brightness and contrast are adjusted while keeping color unchanged. This can be done b using the same transformation for all RGB components. Contrast enhancement Power law transformations

Color Balancing Correction Eamples Color imbalance: primar color components in white area are not balance. We can measure these components b using a color spectrometer. Color balancing can be performed b adjusting color components separatel as seen in this slide.

Histogram Equalization of a Full-Color Image Histogram equalization of a color image can be performed b adjusting color intensit uniforml while leaving color unchanged. The HSI model is suitable for histogram equalization where onl Intensit I component is equalized. s k T rk pr rj k j0 n j N k j0 where r and s are intensit components of input and output color image.

Histogram Equalization of a Full-Color Image Original image After histogram equalization After increasing saturation component Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Color Image Smoothing Color Image Smoothing 2 Methods: 1. Per-color-plane method: for RGB, CMY color models Smooth each color plane using moving averaging and Smooth each color plane using moving averaging and the combine back to RGB S R K,, 1 S S G K K,,, 1, 1, c c S B K,, 1 2. Smooth onl Intensit component of a HSI image while leaving H ds difi d H and S unmodified. Note: 2 methods are not equivalent.

Color Image Smoothing Eample cont. Color image Red Green Blue

Color Image Smoothing Eample cont. Color image HSI Components Hue Saturation Intensit

Color Image Smoothing Eample cont. Smooth all RGB components Smooth onl I component of HSI faster

Color Image Smoothing Eample cont. Difference between smoothed results from 2 methods in the previous slide.

Color Image Sharpening We can do in the same manner as color image smoothing: 1. Per-color-plane method for RGB,CMY images 2. Sharpening onl I component of a HSI image Sharpening all RGB components Sharpening onl I component of HSI

Color Image Sharpening Eample cont. Difference between sharpened results from 2 methods in the previous slide.

Color Segmentation 2 Methods: 1. Segmented in HSI color space: A thresholding function based on color information in H and S Components. We rarel use I component for color image segmentation. 2. Segmentation in RGB vector space: A thresholding h function based on distance in a color vector space.

Color Segmentation in HSI Color Space Cl Color image Hue 1 2 3 4 Saturation Intensit Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Color Segmentation in HSI Color Space cont. Binar thresholding of S component Product of 2 and 5 with T = 10% 5 6 Red piels Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition. 7 8 Histogram of 6 Segmentation of red color piels

Color Segmentation in HSI Color Space cont. Cl Color image Segmented results of red piels Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Color Segmentation in RGB Vector Space 1. Each point with R,G,B coordinate in the vector space represents one color. 2. Segmentation is based on distance thresholding in a vector space g, 1 0 Du,v = distance function if if D c,, ct D c,, c T T T c T = color to be segmented. c, = RGB vector at piel,.

Eample: Segmentation in RGB Vector Space Color image Reference color c T to be segmented c average color of piel in the bo c T Results of segmentation in RGB vector space with Threshold value T = 1.25 times the SD of R,G,B values In the bo

Gradient of a Color Image Since gradient is define onl for a scalar image, there is no concept of gradient for a color image. We can t compute gradient of each color component and combine the results to get the gradient of a color image. Red Green Blue We see 2 objects. We see 4 objects. Edges

Gradient of a Color Image cont. Gradient of a Color Image cont. One wa to compute the maimum rate of change of a color image One wa to compute the maimum rate of change of a color image which is close to the meaning of gradient is to use the following formula: Gradient computed in RGB color space: p p 2 1 sin 2 2 cos2 1 g g g g g F sin 2 2 cos2 2 g g g g g F g 2 1 g g 2g tan 2 1 1 2 2 2 B G R g 2 2 2 B G R g B B G G R R g g

Gradient of a Color Image Eample 2 Original image Obtained using the formula in the previous slide 3 Sum of gradients of Difference each color between component 2 and 3 3

Gradient of a Color Image Eample Red Green Blue Gradients of each color component

Noise in Color Images Noise can corrupt each color component independentl. AWGN 2 =800 AWGN 2 =800 AWGN 2 =800 Ni Noise is less noticeable in a color image Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2 nd Edition.

Noise in Color Images Hue Saturation Intensit

Noise in Color Images Salt & pepper noise in Green component He Hue Saturation Intensit

Color Image Compression Original image JPEG2000 File After loss compression with ratio 230:1