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

Similar documents
Digital Image Processing. Lecture # 8 Color Processing

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

Digital Image Processing (DIP)

Color Image Processing. Gonzales & Woods: Chapter 6

Color Image Processing

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

6 Color Image Processing

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

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

MODULE 4 LECTURE NOTES 1 CONCEPTS OF COLOR

Basics of Colors in Graphics Denbigh Starkey

Color Image Processing. Jen-Chang Liu, Spring 2006

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

Lecture 8. Color Image Processing

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

Introduction. The Spectral Basis for Color

Digital Image Processing

Color Image Processing

Digital Image Processing Color Models &Processing

Chapter 3 Part 2 Color image processing

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

Wireless Communication

CHAPTER 6 COLOR IMAGE PROCESSING

Digital Image Processing Chapter 6: Color Image Processing ( )

Chapter 2 Fundamentals of Digital Imaging

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

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

Color Image Processing EEE 6209 Digital Image Processing. Outline

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

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

COLOR and the human response to light

Colors in Images & Video

Additive and Subtractive Color Lab On Line PreAP

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

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

Additive Color Synthesis

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

COLOR. and the human response to light

Figure 1: Energy Distributions for light

EECS490: Digital Image Processing. Lecture #12

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

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

Color Theory: Defining Brown

Lecture Color Image Processing. by Shahid Farid

LECTURE 07 COLORS IN IMAGES & VIDEO

Interactive Computer Graphics

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

Digital Image Processing Chapter 6: Color Image Processing

Color Science. CS 4620 Lecture 15

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

Lecture 3: Grey and Color Image Processing

Chapter 6: Color Image Processing. Office room : 841

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

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

Color vision and representation

Introduction to Color Science (Cont)

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

check it out online at

05 Color. Multimedia Systems. Color and Science

Introduction to Color Theory

Chapter 4. Incorporating Color Techniques

CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2012 Lecture 4 September 12, 2012

Thursday, May 19, 16. Color Theory

Technology and digital images

Images and Colour COSC342. Lecture 2 2 March 2015

The Elements of Art: Photography Edition. Directions: Copy the notes in red. The notes in blue are art terms for the back of your handout.

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

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

The Principles of Chromatics

Reading instructions: Chapter 6

Mahdi Amiri. March Sharif University of Technology

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

Color. Chapter 6. (colour) Digital Multimedia, 2nd edition

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

USE OF COLOR IN REMOTE SENSING

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

Color images C1 C2 C3

Image and video processing

Digital Image Processing COSC 6380/4393

Christoph Wagner Colour Theory

Color Image Processing

Light waves of different wavelengths or combinations of wavelengths cause the human eye to detect different colors.

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

Colour (1) Graphics 2

Introduction to Color Theory

Hello, welcome to the video lecture series on Digital Image Processing.

VC 16/17 TP4 Colour and Noise

Introduction & Colour

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

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

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

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

CHAPTER 3 I M A G E S

COLOR AS A DESIGN ELEMENT

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

Color Reproduction. Chapter 6

Transcription:

Digital Image Processing Prof. P. K. Biswas Department of Electronics and Electrical Communications Engineering Indian Institute of Technology, Kharagpur Module 11 Lecture Number 52 Conversion of one Color Model to another 1 Hello, welcome to the video lecture series on Digital image processing. (Refer Slide Time: 00:30) In our last class we have started our discussion, we have covered the fundamentals of color image processing. We have seen what is a primary color and what is secondary color? We have seen the characteristics of different colors. We have seen the chromaticity diagram and the use of the chromaticity diagram. And we have started our discussion on color models and there we just started the discussion on RGB color model.

(Refer Slide Time: 01:05) Today we will start our discussion with the color model. So we will complete our discussion on RGB color model. We will also talk about the HSI or hue, saturation and intensity color model. We will see how we can convert the colors from one color model to another color model that is given a color in the RGB space, how we can convert this to a color in the HSI space and similarly given a color in the HSI space how we can convert that to the RGB space. Then will start our discussion on image, color image processing techniques. So will talk about pseudo image color processing and there mainly we will talk about two techniques, one is called intensity slicing and the other one is gray level to color image transformation. So let just briefly recapitulate what we have done in the last class.

(Refer Slide Time: 02:15) In the last class we have mentioned that all the colors of the visible light or the visible spectrum, color spectrum occupies a very narrow spectrum in the total electromagnetic band of frequency or band of spectrum and the visible spectrum the wavelength normally varies, from 400 nanometers to 700 nanometers. So at one end we have the violet and in the other end we have the red color. And out of this we normally take three color components. (Refer Slide Time: 02:50)

That is red, green and blue as the primary color components because we have mentioned that in our eye there of three types of cells, cone cells, which are responsible for color sensation. There are maximum, there are some cones say which are responsible for color sensation, there are maximum there are some cone cells which are responsible which sense the light in the red wavelength. There are some cone cells which sense the green light, and there are some cone cells which sense the blue light. And this light is mixed together in different proportions in an appropriate way so that we can have the sensation of different colors. And this is the main reason why we say that red, green and blue they are the primary colors and by mixing these three primary color in different proportions we can generate almost all the colors in the visible spectrum. Then we have talked about two different colors, two types colors, one is the color of light other one is the color of the pigment. Now color of the light as we see any particular object we can see the color which is reflected from the object, because of the wavelength of the light which gets reflected from the object surface. Now when it comes to pigments color and the color falls on it then the pigments color it absorbs a particular wavelength out of the three primary colors and reflects the other wavelengths. So the primary colors of light are really the secondary colors of pigments and the secondary colors of light they are the primary colors of pigments. And because of this the colors of light they are called additive primaries, whereas the colors of the pigments they are called subtractive primaries.

(Refer Slide Time: 04:50) And here you can see in this particular slide that the three primaries of light red, green and blue when they are mixed together then red and green mixed together form what is called from the yellow light. Then green and blue when they are mixed together this two form cyan, and red and blue mixed together form the magenta and red, green and blue all this three colors together form. What is the white light? Similarly, even it comes to pigments primaries, yellow which is a secondary color for light is a primary color of a pigment. Similarly, magenta, which is a secondary color of light is also a primary color of pigment. Cyan which is a secondary color of light is a primary color of pigments. And here you find that when this pigments primaries they are mixed together then they form what are the primary colors of light. So yellow and magenta this two together form the red light. Yellow and cyan mixed together form the green light. And magenta and cyan joint together, mixed together form the blue light. However, all these three pigments primaries that is yellow, magenta and cyan mixed together form the black light. So this is the black color so by mixing different colors of light or the different colors of different colors of primary colors of light or different primaries of the pigments we can generate all types of different colors in the visible spectrum.

(Refer Slide Time: 06:50) Then we have also seen what is the chromaticity diagram and we have seen the usefulness of the chromaticity diagram. So the chromaticity diagram is useful mainly to identify that in which proportions different primary colors are to be mixed together to generate any color, so if I take three points in this chromaticity diagram. So one corresponding to green, one for the primary red, and other for the primary blue. Then given any point within this chromaticity diagram I can find out that in which proportions red, green and blue there are to be mixed. So here you find the horizontal axis tells the red component. The vertical axis gives us the green component and the blue component so if I write this as x and this as y then the green component z = 1- x + y. So I can find out that how much of red, how much of green and how much of blue these three components are to be mixed to generate a color which is at this particular location in this chromaticity diagram. It also tells us that what are all different possible shades of any of the pure color which are available in the light spectrum that can be generated by mixing different amount of white light to it. So you find that we have a point of equal energy that you have mentioned in the last class in this chromaticity diagram which is white as per CIE standard. So, if I take any pure color on the boundary of this chromaticity diagram and join this with this with white point then all the color

point, all the colors along this line they tell us that if I mix different amount of white light to this pure color then what are the different shades of this color that can be generated. (Refer Slide Time: 09:20) Then we have started our discussion on the color model and we have said that color model is very, very useful to specify any particular color. And the, we have said we started our discussion on RGB color model and we have discussed in our last class that RGB color model is basically represented by a Cartesian coordinate system. Where the three primary colors of light that is red, green and blue they are represented along three Cartesian coordinate axes. So we have as per this diagram, we have this red axis, we have the green axis and we have the blue axis. And in this Cartesian coordinate system the colors, colors space is represented by a unit cube. So when I say it is unit that means the colors are represented in a normalized form. So in this unit cube you find that at the center of the cube. We have R, G and B all these 3 components are equal to zero. So these points represent black. Similarly, the farthest vertex from this black point or the origin, where the R = 1, G = 1 and B = 1. That means all these three primary colors are mixed in equal proportions, and this point represents white. The red color is placed at location (1,0,0), where the R = 1, G = 0 and B = 0. Green is located at location (0,1,0), where both R and B components are equal to 0 and G = 1. And blue is located at

the vertex location (0,0,1), where both red and green components are equal to 0 and B = 1. So these are the locations red, green and blue. That is (1,0,0), (0,1,0) and (0,0,1), these are the location of three primary colors of light that is red, green and blue. And you find that in this cube we have also placed the secondary colors of light which are basically the primary colors of pigment that is cyan, magenta and yellow. So these three colors cyan, magenta and yellow they are placed in other three corners, other three vertices of this unit cube. Now find that from this diagram if I joined these two points that is black at location (0,0,0), with white at location (1,1,1) then the line joining this two points black and white this represents what is called a gray scale. So all the points on this particular line will have different gray shades they will not exhibit any colors component. Now given any specific colors having some proportions of red, green and blue that colors will be represented by a single point in this unit cube, in a normalized form or we can also say that, that colors will be represented by a vector, or vector is drawn from the origin to the point representing that particular colors having a specific proportion of red, green and blue. (Refer Slide Time: 13:45) So this is what is the RGB color model and you find that from this RGB color model. We can also have the cyan, magenta and yellow components by simple transformation. So given any point in the RGB color plane what we can do is, if I look at the different color shades on

different faces of this colors cube, you find that the shades will appear like this. So in this color cube you find that we have said that the point (1,0,0) that represents red and you find that along the horizontal axis the color varies from red to yellow. Similarly, this is a point, which is (1,1,1), so this point represents white color. And in this particular case all these color components that is red, green and blue, each of this color component are represented by 8 bits that means we have all together 24 different colors shades which can be generated in this particular color model. So the total number of colors that can be generated is 2 24. And you can easily imagine that is huge number of colors which can be a generated, if we assign 8 bits to each of the colors components that is red, green and blue. But in most of the cases what is useful is called safe RGB model. The safe RGB model, in safe RGB model we don t consider all possible colors that means all the 2 24 different colors. But rather the number of different colors which are used in such cases is 216. So this 216 colors can be generated by having 6 different colors in red, 6 different color shades in green and 6 different colors shades in blue. So from that right hand side we have drawn a safe RGB color cube. So here you find that we have six different shades of any of the colors that is red, green and blue. And using the six different shades we can generate up to 2 16 different colors and this 216 different colors and these 216 different colors are known as safe RGB colors because they can have displayed in any type of color monitor, so you should remember that in case of true RGB though we can have total of 2 24 different colors but all the color displays may not have the provision of displaying all 2 24 colors but we can display 216 colors in all in almost all the color displays. So this is what is called safe RGB color model. And the corresponding cube is the safe RGB colors cube. So it is quite obvious from this discussion that any color image will have three different color components one component color for red, one color component for green and one color component for blue.

(Refer Slide Time: 16:55) So if I take this particular color image, you find that the top left image is a color image and the other three are the three planes of it. So the red color component of this color image is represented in red, the green color component is represented in green and the blue color component is represented in blue. So here you find that though here represented these three different components in different colors that is red, green and blue but they are actually monochrome images. And these monochrome images or black and white images and these black and white images are used to excite the corresponding phosphor dot on the color screen. So this, the red component will activate the red dot, the green component will activate the green dots and the blue component will activate the blue dots and when these three dots are activating, activated together with different intensities that gives you different color sensations. So obviously for any type color image like this we will have three different planes one plane corresponding to the red component the other plane corresponding to the green component and a plane corresponding to the blue component. Now, as we said that this red, green and blue they are mostly useful for the display purpose. But when it comes to color printing the model which is used is the CMY model or cyan, magenta and yellow model. So for the image, color image printing purpose we have to talk about the CMY model. However, the CMY can be very easily generated from the RGB model.

So as it is obvious from the color cube, the RGB cube that we have a drawn and the way the CYM cyan, magenta and yellow colors are placed at different vertices on that RGB cube, from there it is quite obvious that specified any color in the RGB model we can very easily convert that to CMY model. (Refer Slide Time: 19:45) The conversion is simply like this that given RGB components, so we have the red, green and blue components of a particular color. And what we want to do is, we want to convert this into CMY space. And the conversion from RGB to CMY is very simple. What we have to do is, we C 1 R have to simply make this conversion that M = 1 - G. So here we remember that this RGB Y 1 B components are represented in the normalized form. And similarly by this expression the CMY components that we get that will also be represented in normalized form. And as we have said earlier that equal amounts of cyan, magenta and yellow should give us what is a black color. So if we mix cyan, magenta and yellow these three pigments primaries in equal proportions then I should then, we should get the black color. But in practice what we get is not a pure black but this generates a muddy black. So to take care of this problem along with CM and Y cyan, magenta and yellow another component is also specified which is the black component and when we also specify the black component.

In that case we get another color model which is the CMYK model, so the cyan, magenta and yellow, so this is CMYK model. So cyan, magenta and yellow that is they are same as in CMY model. But we are specifying an additional color which is black giving us the CMYK model. So you find that in case of CMYK model we actually have four different components cyan, magenta, yellow and black. However, given the RGB we can very easily convert that to CMY. Similarly, the reverse is also true given a specification, a color in the CMY space we can very easily convert that to a color in the RGB space. Thank you.