digital image processing in the name of god digital image processing lecture6: color image...

37
In The Name Of God Digital Image Processing Digital Image Processing Lecture6: Color Image Processing By: M. Ghelich Oghli M. Ghelich Oghli E-mail: E-mail: [email protected] [email protected] Fall 2012

Upload: aubrie-may

Post on 13-Dec-2015

219 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

In The Name Of God

Digital Image ProcessingDigital Image Processing

Lecture6:

Color Image Processing

By: M. Ghelich OghliM. Ghelich OghliE-mail: E-mail: [email protected][email protected]

Fall 2012

Page 2: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Visible Spectrum

Page 3: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Lighting conditions

Image taken lit by a flash.

Image taken lit by a tungsten lamp.

• The lighting conditions of the scene have a large effect on the colours recorded.

Page 4: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Color Representation

Page 5: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Indexed Images

Page 6: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Color characteristic

Hue : An attribute associated with the dominant Wavelength( or dominant color perceived by an observer)

Saturation: refers to relative purity or amount of white light mixed with hue( colors such as pink (red and white) are less saturated)

Hue & Saturation --> chromaticity

Brightness: chromatic notion of intensity

Page 7: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Color Models

RGB Color Model (space or system): each color appears in its primary components of red green and blue.

Page 8: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

RGB Color Space

Page 9: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

CMY and CMYK Color Model

Cyan Magenta and yellow color (secondary colors) is used to represent colors

Used mostly in printing devices

for better printing of black color, this color may be added to the system (CMYK system)

Page 10: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

CMYK Model Converting CMYK to RGB

Converting RGB to CMYK(semi-equivalent(

Page 11: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

HSI Color Model

Page 12: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

HSI Color Model

Page 13: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

HSI Color Model

Page 14: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Color Transformation

Page 15: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

• YCbCr (used in MPEG video)

Other Color Spaces

• YUV( used in PAL TV systems)

Page 16: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Color Image Processing

• Full color processing: the images in question typically are acquired with full color sensor

• Pseudo-color processing: assigning a color to a particular monochrome intensity or range of intensities.

Page 17: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Pseudocolor Image processing

Also Called false Image processing Definition: is the process of assigning color to monochrome

image Advantage: Human can discern thousands of colors compared to

one or two dozen shades of gray. Method: Intensity Slicing

Page 18: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Intensity Slicing

Page 19: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Intensity Slicing Single level slicing( X-ray Weld image)

Page 20: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Intensity Slicing Multi level slicing( radiation image)

Page 21: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Intensity Slicing

Page 22: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Gray Level to color Transformation

Page 23: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Basics of Full color Image Processing

• Per-color-component based processing: each color is processed individually and then is combined to obtain processed image

• Vector based processing: each color pixel is interpreted as vector and processed individually .

Page 24: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Basics of Full color Image Processing

Page 25: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Color Transformation

Gray level transformation

Color transformation

Page 26: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Color Transformation

Page 27: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Color Complement

Page 28: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Color Complement

Page 29: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Tone and Color Correction

Tone Correction: adjusting brightness and contrast of the image experimentally

methods

1- changing I in HSI model

2- mapping all colors of RGB or CMYK space with the same transformation

Page 30: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Tone correction

Page 31: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Color Correction

Page 32: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Color Image Smoothing

Page 33: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Color Image Smoothing

Page 34: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Color Image Smoothing

Page 35: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Color Image Smoothing

Page 36: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Color Image Laplacian

Page 37: Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli E-mail: m.g31_mesu@yahoo.com

Color Image Laplacian