Digital Image Processing (DIP)

Similar documents
Unit 8: Color Image Processing

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

Color Image Processing

Digital Image Processing

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

Digital Image Processing. Lecture # 8 Color Processing

Digital Image Processing Chapter 6: Color Image Processing ( )

Color Image Processing. Gonzales & Woods: Chapter 6

Digital Image Processing Color Models &Processing

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

Digital Image Processing Chapter 6: Color Image Processing

Chapter 3 Part 2 Color image processing

6 Color Image Processing

Color Image Processing EEE 6209 Digital Image Processing. Outline

CHAPTER 6 COLOR IMAGE PROCESSING

Color Image Processing. Jen-Chang Liu, Spring 2006

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

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

EECS490: Digital Image Processing. Lecture #12

Chapter 6: Color Image Processing. Office room : 841

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

Color Image Processing

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

Image and video processing

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

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

Color images C1 C2 C3

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

Color Image Processing

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

MODULE 4 LECTURE NOTES 1 CONCEPTS OF COLOR

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

Figure 1: Energy Distributions for light

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

Digital Image Processing COSC 6380/4393

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

Introduction. The Spectral Basis for Color

Colors in Images & Video

Lecture 3: Grey and Color Image Processing

Lecture 8. Color Image Processing

Color image processing

Bettina Selig. 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

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

Wireless Communication

Interactive Computer Graphics

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

Color Image Processing

Basics of Colors in Graphics Denbigh Starkey

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

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

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

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

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

Color vision and representation

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

LECTURE 07 COLORS IN IMAGES & VIDEO

Digital 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!

VC 16/17 TP4 Colour and Noise

Additive Color Synthesis

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

Chapter 2 Fundamentals of Digital Imaging

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

Color Image Processing II

COLOR and the human response to light

Imaging Process (review)

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

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

Comparing Sound and Light. Light and Color. More complicated light. Seeing colors. Rods and cones

COLOR. and the human response to light

Introduction & Colour

Color. Some slides are adopted from William T. Freeman

color & dye chemisty Explore in a scientific way! Learn how and why we see color, and how dye chemically reacts with fabric!

Colour (1) Graphics 2

Digital Image Processing

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

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

Introduction to Computer Vision and image processing

In a physical sense, there really is no such thing as color, just light waves of different wavelengths.

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

Multimedia Systems and Technologies

Introduction to Color Theory

Lecture Color Image Processing. by Shahid Farid

What is Color? Chapter 9: Color. Color Mixtures. Color Mixtures 10/29/2012. What is color? Color vocabulary

The human visual system

Understanding Color Theory Excerpt from Fundamental Photoshop by Adele Droblas Greenberg and Seth Greenberg

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

The Principles of Chromatics

Computers and Imaging

Digital Image Processing

Digital Image Processing

Light waves. VCE Physics.com. Light waves - 2

Light and Applications of Optics

Slide 1. Slide 2. Slide 3. Light and Colour. Sir Isaac Newton The Founder of Colour Science

Chapter 9: Color. What is Color? Wavelength is a property of an electromagnetic wave in the frequency range we call light

Werner Purgathofer

any kind, you have two receptive fields, one the small center region, the other the surround region.

Introduction to Color Science (Cont)

Introduction to Multimedia Computing

Transcription:

University of Kurdistan Digital Image Processing (DIP) Lecture 6: Color Image Processing Instructor: Kaveh Mollazade, Ph.D. Department of Biosystems Engineering, Faculty of Agriculture, University of Kurdistan, Sanandaj, IRAN. Contents This lecture will cover: Color fundamentals Color models Pseudocolour image processing Color image processing 1

Color fundamentals In 1666 Sir Isaac Newton discovered that when a beam of sunlight passes through a glass prism, the emerging beam is split into a spectrum of colors. 2 Color fundamentals (cont ) The colors that humans and most animals perceive in an object are determined by the nature of the light reflected from the object. For example, green objects reflect light with wavelengths primarily in the range of 500 570 nm while absorbing most of the energy at other wavelengths. Colours Absorbed 3

Color fundamentals (cont ) Chromatic light spans the electromagnetic spectrum from approximately 400 to 700 nm. As we mentioned before human color vision is achieved through 6 to 7 million cones in each eye. 4 Color fundamentals (cont ) Approximately 66% of these cones are sensitive to red light, 33% to green light and 6% to blue light. Absorption curves for the different cones have been determined experimentally. Strangely these do not match the CIE standards for red (700nm), green (546.1nm), and blue (435.8nm) light as the standards were developed before the experiments! 5

Color fundamentals (cont ) 6 Primary & secondary colors of light Additive primary colors: RGB use in the case of light sources such as color monitors. RGB add together to get white. Subtractive primary colors: CMY use in the case of pigments in printing devices. CMY add together to get Black. 7

Color fundamentals (cont ) 3 basic qualities are used to describe the quality of a chromatic light source: Radiance: the total amount of energy that flows from the light source (measured in watts). Luminance: the amount of energy an observer perceives from the light source (measured in lumens). o Note we can have high radiance, but low luminance. Brightness: a subjective (practically unmeasurable) notion that embodies the intensity of light. We ll return to these later on. 8 CIE chromacity diagram Specifying colors systematically can be achieved using the CIE chromacity diagram. On this diagram, the x-axis represents the proportion of red and the y- axis represents the proportion of green used. The proportion of blue used in a colour is calculated as: z = 1 (x + y) 9

CIE chromacity diagram (cont ) Green: 62% green, 25% red and 13% blue. Red: 32% green, 67% red and 1% blue. 10 CIE chromacity diagram (cont ) Any color located on the boundary of the chromacity chart is fully saturated. The point of equal energy has equal amounts of each color and is the CIE standard for pure white. Any straight line joining two points in the diagram defines all of the different colors that can be obtained by combining these two colors additively. This can be easily extended to three points. 11

CIE chromacity diagram (cont ) This means the entire color range cannot be displayed based on any three colors. The triangle shows the typical color gamut produced by RGB monitors. The strange shape is the gamut achieved by high quality color printers. 12 Color models From the previous discussion it should be obvious that there are different ways to model color. We will consider three very popular models used in color image processing: RGB (Red Green Blue) CMY (Cyan Magenta Yellow)/CMYK (Cyan Magenta Yellow Black) HSI (Hue Saturation Intensity) 13

RGB color model In the RGB model, each color appears in its primary spectral components of red, green, and blue. The model is based on a Cartesian coordinate system. RGB values are at 3 corners. Cyan, magenta, and yellow are at three other corners. Black is at the origin. White is the corner furthest from the origin. Different colors are points on or inside the cube represented by RGB vectors. 14 RGB color model (cont ) 15

RGB color model (cont ) Images represented in the RGB color model consist of three component images one for each primary color. When fed into a monitor these images are combined to create a composite color image. The number of bits used to represent each pixel is referred to as the color depth. A 24-bit image is often referred to as a full-color image as it allows = 16,777,216 colors. 16 RGB color model (cont ) 17

CMY/CMYK color model Color printer and copier Deposit colored pigment on paper Relationship with RGB model: C = Cyan M = Magenta Y = Yellow K = Black Example :surface coated with pure cyan does not contain red (C = 1 R) 18 HSI color model RGB is useful for hardware implementations and is serendipitously related to the way in which the human visual system works. However, RGB is not a particularly intuitive way in which to describe colors. Rather when people describe colors they tend to use hue, saturation, and brightness. RGB is great for color generation, but HSI is great for color description. 19

The HSI color model (cont ) 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. 20 HSI, Intensity & RGB Intensity can be extracted from RGB images which is not surprising if we stop to think about it. Remember the diagonal on the RGB color cube that we saw previously ran from black to white. Now consider if we stand this cube on the black vertex and position the white vertex directly above it. 21

HSI, Intensity & RGB (cont ) Now the intensity component of any color can be determined by passing a plane perpendicular to the intensity axis and containing the color point. The intersection of the plane with the intensity axis gives us the intensity component of the color. 22 HSI, Hue & RGB In a similar way we can extract the hue from the RGB color cube. Consider a plane defined by the three points cyan, black, and white. All points contained in this plane must have the same hue (cyan) as black and white cannot contribute hue information to a color. 23

The HSI color model Consider if we look straight down at the RGB cube as it was arranged previously. We would see a hexagonal shape with each primary color separated by 120 and secondary colors at 60 from the primaries. So the HSI model is composed of a vertical intensity axis and the locus of color points that lie on planes perpendicular to that axis. 24 The HSI color model (cont ) To the right we see a hexagonal shape and an arbitrary color point. The hue is determined by an angle from a reference point, usually red. The saturation is the distance from the origin to the point. The intensity is determined by how far up the vertical intensity axis this hexagonal plane sits (not apparent from this diagram). 25

The HSI color model (cont ) 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. 26 HSI model examples 27

HSI model examples 28 Converting from RGB to HSI Given a color as R, G, and B its H, S, and I values are calculated as follows: 29

Converting from HSI to RGB Given a color as H, S, and I it s R, G, and B values are calculated as follows: RG sector (0 <= H < 120 ) GB sector (120 <= H < 240 ) BR sector (240 <= H <= 360 ) 30 HSI & RGB RGB Colour Cube H, S, and I Components of RGB Color Cube 31

Manipulating images in the HSI model In order to manipulate an image under the HSI model we: First convert it from RGB to HSI. Perform manipulations under HSI. Finally convert the image back from HSI to RGB. RGB Image HSI Image RGB Image Manipulations 32 RGB -> HSI -> RGB RGB Image Hue Saturation Intensity 33

RGB -> HSI -> RGB (cont ) Hue Saturation Intensity RGB Image 34 Pseudocolor image processing Pseudocolor (also called false color) image processing consists of assigning colors to grey values based on a specific criterion. The principle use of pseudocolor 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. 35

Pseudocolor image processing Intensity slicing Intensity slicing and color coding are the simplest kinds of pseudocolor 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. 36 Pseudocolor image processing Intensity slicing (cont ) 37

Pseudocolor image processing Intensity slicing (cont ) In general intensity slicing can be summarized as: Let [0, L-1] represent the grey scale. Let l 0 represent black [f(x, y) = 0] and let l L-1 represent white [f(x, y) = L-1]. Suppose P planes perpendicular to the intensity axis are defined at levels l 1, l 2,, l p. Assuming that 0 < P < L-1 then the P planes partition the grey scale into P + 1 intervals V 1, V 2,,V P+1. Grey level color assignments can then be made according to the relation: where ck is the color associated with the k th intensity level V k defined by the partitioning planes at l = k 1 and l= k. 38 Pseudocolor image processing Intensity thresholding 39

Intensity slicing example 40 Intensity thresholding example 1 41

Intensity thresholding example 2 42 Pseudocolor image processing Color transformation intensity Assigning colors to gray levels based on specific mapping functions Red component Green component Blue component 43

Pseudocolor image processing Color transformation intensity example An X-ray image of a garment bag An X-ray image of a garment bag with a simulated explosive device Transformations Transformations Color coded images 44 Pseudocolor coding Used in the case where there are many monochrome images such as multispectral satellite images. 45

Pseudocolor coding example 1 Visible blue = 450-520 nm Max water penetration 1 2 Visible green = 520-600 nm Measuring plant 3 Red 4 Red 2 Green 2 Green 1 Blue 1 Blue 3 4 Visible red = 630-690 nm Plant discrimination Near infrared = 760-900 nm Biomass and shoreline mapping Color composite images 46 Pseudocolor coding example 2 Psuedocolor rendition of Jupiter moon Yellow areas = older sulfur deposits. Red areas = material ejected from active volcanoes. A close-up 47

Summary We have looked at: Color fundamentals RGB, CMY/CMYK, and HSI color models Pseudocolour image processing Color image processing 48