Sunteți pe pagina 1din 21

Advanced Digital Image Processing

Lecture #4

Dr. Md. Hasanuzzaman


Associate Professor
Department of Computer Science & Engineering
Dhaka University

July 23, 2007

November 2, 2021 Advanced Digital Image Processing, 1


Lecturer #4
Contents

 Color Coordinate System


 Color Conversion System

 Color Based Segmentation

 Line and Edge Detection

November 2, 2021 Advanced Digital Image Processing, 2


Lecturer #4
Color Coordinate Systems

 CIE spectral primary system RGB


 YIQ (NTSC transmission system)
 HSV (Hue, Saturation, Value)
 L*a*b* (brightness, red-green content, yellow-
blue content)

*CIE=Commission Internationale de l’Eclairage

November 2, 2021 Advanced Digital Image Processing, 3


Lecturer #4
YIQ Components
 Y=Luminance Component
 I,Q=Chrominance components

 Y, I, Q are different for different persons


skin colors.

November 2, 2021 Advanced Digital Image Processing, 4


Lecturer #4
RGB to YIQ Conversion
• RGB images converted to YIQ color coordinate
systems using linear transformation matrix

Y   0.299 0.587 0.114   R 


 I    0.596 0.274 0.322  G 
    
Q   0.211 0.523 0.312   B 
Example: Y=0.299R+0.587G+0.114B
November 2, 2021 Advanced Digital Image Processing, 5
Lecturer #4
Y-component

November 2, 2021 Advanced Digital Image Processing, 6


Lecturer #4
I-component

November 2, 2021 Advanced Digital Image Processing, 7


Lecturer #4
Q-component

November 2, 2021 Advanced Digital Image Processing, 8


Lecturer #4
Segmentation Using Person
Specific Skin-color Information
 This method uses different threshold values for
the YIQ components for different persons.
 The thresholds are predetermined for each
person in the training phase
 After identifying the person, these values are
used to segment skin regions

November 2, 2021 Advanced Digital Image Processing, 9


Lecturer #4
Results of Skin Region Segmentation

Without person-specific skin-color thresholds


November 2, 2021 Advanced Digital Image Processing, 10
Lecturer #4
Results of Skin Region Segmentation

Using person-specific skin-color thresholds

November 2, 2021 Advanced Digital Image Processing, 11


Lecturer #4
Example of Color-Based
Face Detection

November 2, 2021 Advanced Digital Image Processing, 12


Lecturer #4
Example of Face Detection (1)

November 2, 2021 Advanced Digital Image Processing, 13


Lecturer #4
Example of Face Detection (2)

November 2, 2021 Advanced Digital Image Processing, 14


Lecturer #4
HSV Color Coordinates

 Hue (H) is the attribute of visual sensation that


corresponds to color perception associated with
the dominant colors
 saturation (S) implies the relative purity of the
color content
 value (V) measures the brightness of a color

November 2, 2021 Advanced Digital Image Processing, 15


Lecturer #4
HSV Color Coordinates
 1  ( R  G )  ( R  B) 
 1 2 
H 1  cos  , (1)
 ( R  G ) 2  ( R  B )(G  B ) 
 

H  360  H 1 ;
max( R , G , B )  min( R, G , B )
S  ,
max( R, G , B )
max( R, G , B )
V  , ( 2)
255

November 2, 2021 Advanced Digital Image Processing, 16


Lecturer #4
Example of Hand-Gesture
Recognition

November 2, 2021 Advanced Digital Image Processing, 17


Lecturer #4
Edge Detection

Edges often occur at points where there is a large variation in


the luminance values in an image, or occluding boundaries, of the
objects in a scene.

However, large luminance changes can also correspond to


surface markings on objects.

Points of tangent discontinuity in the luminance signal (rather


than simple discontinuity) can also signal an object boundary in
the scene
November 2, 2021 Advanced Digital Image Processing, 18
Lecturer #4
Example of Edge Detection (2)

November 2, 2021 Advanced Digital Image Processing, 19


Lecturer #4
List of Reference Books

 Rafael C. Gonzalez, “Digital Image Processing”.


 Anil K. Jain, “Fundamental of Digital Image
Processing”.
 Dana H. Ballard, “Computer Vision”
 David H. Hubel, “Eye, Brain, and Vision”
 Dwayne Phillips, “Image Processing in C”

November 2, 2021 Advanced Digital Image Processing, 20


Lecturer #4
End of Today’s Lecture

Questions?

Thanks to all!

November 2, 2021 Advanced Digital Image Processing, 21


Lecturer #4

S-ar putea să vă placă și