DIP unit 4
DIP unit 4
Bhavana Tiwari
Unit IV
Color Image Processing, Color Models and Representation, Laws of Color Matching, Chromaticity Diagram, Color
Enhancement, Color Image Segmentation, Color Edge Detection
Color Image Processing 2
3
4
5
6
8
9
10
12
13
Color Models 14
15
16
17
18
19
20
21
22
23
24
DIGITAL IMAGE
PROCESSING
COLOR IMAGE
SEGMENTATION
INTRODUCTION
• Image segmentation divides the image into regions that are connected
and have some similarity within the region and have some difference
between adjacent regions.
For example if you have to find all the red apples in a picture color segmentation
helps you focus only on the red parts . This makes task like detecting objects ,
sorting items or analyzing pictures faster and simpler.
• COMMON COLOR SPACES:
Thresholding
Thresholding is a fundamental technique in Digital Image Processing (DIP) used to convert
2
a grayscale image into a binary image (black and white) by segmenting pixels based on
intensity values.
I(x,y)={1 if I(x,y)>T, otherwise 0
Edge L i nki n g
3 Edge linking in Digital Image Processing (DIP) refers to the process of connecting edge
pixels in an image to form continuous edges or boundaries of objects. After edge detection,
edge pixels often appear as disconnected points due to noise or variations in intensity, so
edge linking ensures that these points form coherent, smooth edges.
Types of Color Edge Detection
2 Blurriness
Edges in blurry images are harder to detect.
3 Computational Cost
Some algorithms can be computationally expensive.
Advantages of Color
Edge Detection
3
1
Accuracy Robustness Efficiency
Precise edge Insensitive to Computationally
location, noise and efficient
even in minor algorithms
complex variations. available.
scenes.
Applications of Color Edge
Detection
Medical Imaging Robotics Autonomous Driving
Analyzing medical scans. Object recognition for robots. Lane detection and object recognition.
COLOUR
E N H A N C E M E N T IN
D I G I TA L I M A G E
PROCESSING
I N T R O D U C T I O N TO
COLOUR
ENHANCEMENT
Co lo u r e n h a n c e m e n t is a critical
asp ect of digital i m a g e p ro cess in g. It
involves adjustin g the bri g htn ess,
contrast, a n d saturation of i m a g e s to
improve their visual appeal a n d
usefulness.
U N D E R S TA N D I N G
C O L O U R S PA C E S
Different c o l o u r s p a c e s like
R G B , C M Y K , a n d H S V p lay a
s i g n i fi c a n t role in i m a g e
p ro cess ing . E a c h s p a c e h a s its
o w n w a y of rep res en ti n g colours,
w h i c h i m p a c t s h o w i m a g e s are
enhanced. Understan ding these
s p a c e s is essential for effective
c o l o u r ma ni pu l a ti o n .
HISTOGRAM EQUALIZATION
H i s t o g r a m e q u a l i z a t i o n is a
p owerful t e c h n i q u e u s e d to
i mp r o v e t h e contrast of i m a g e s .
B y red istribu ting t h e intensity
values, it e n h a n c e s t h e visibility
of features in a n i m a g e . This
m e t h o d is especially effective
for i m a g e s wi th p o o r contrast.
Saturation Ad ju stment
Te c h n i q u e s
A d j u st i n g s at u rat i o n c a n m a ke
i m a g e s m o r e vibrant a n d eye-
catchi ng. Te c h n i q ue s s u c h as
S e l e c t i ve C o l o u r i n g a n d V i b ra n c e
A d j u s t m e n t allow for ta rg eted
e n h a n c e m e n t wi t ho ut
oversaturating t he entire i m a g e ,
p re s e r vi ng natural s k i n to ne s a n d
textures.
EXAMPLE-
SHARPENING TECHNIQUES
I m a g e sharpening enhances the e dg es and
fi n e details, m a k i n g a n i m a g e ap p e a r
clearer a n d m o r e d efi n ed .
CONTRAST TECHNIQUES
T h e t e r m c o n t r a s t refe rs t o t h e a m o u n t of
c o l o r o r g r a y s c a l e d i ffere nti a ti o n t h a t
e xi s ts b e t w e e n v ar i o u s i m a g e f e a tu re s i n
both a na log a n d digital images.
EXAMPLE-
NOISE TECHNIQUES
BRIGHTNESS TECHNIQUES
I n i m a g e pr oce ss in g, br i g h t n e s s is t h e overall
l i g h t n e s s of a n i m a g e , w h i c h c a n b e a d j u s t e d b y
c h a n g i n g t he valu e of e a c h pixel.
S o m e O t h e r Te c h n i q u e s
• S h a d o ws
• Hue
• Te m p e ra t u re
• Wa r m t h
• G ra i n
• V i g n e tt e
• Gain
• Gamma& Lift
EXAMPLE-
EXAMPLE-
Applications
1 . I m a g e Editing
2 . I m a ge Compression
3 . C o m p u t e r Vision
4. Medi cal I m a g i n g
CHALLENGES
C o m p u t a t i o n a l co mp l exi ty: Co lor transforms c a n b e
c o mp u t a t i o n a l l y expensive, esp ecially for h i g h - reso l ution i m a g e s
or real-t i m e applications. T his c a n limit their practical use,
particularly i n resou rce-co ns t r ai n ed en viron me n t s .
R o b u s t n e s s to n o i s e a n d variation: Co lor t rans fo rms c a n b e
sensitive to variations in l igh ti ng, i m a g e noise, a n d o ther s o u rc es
of variation. Thi s c a n r e d u c e their a c c u r a c y a n d reliability,
esp ecially for a pp l i ca ti o ns s u c h a s m e d i c a l i m a g i n g or c o m p u t e r
vision.
S u b j ect i v i ty of col or p erc ep t i on : Color p e r c e p t i on c a n vary
acro ss i n dividuals a n d cultures, w h i c h c a n m a k e it difficult to
estab li sh co nsi sten t color s t a n d a r d s or to a ch i ev e s p e c i fi c color
effects.
CONCLUSION AND FUTURE DIRECTIONS
• The Chromaticity Diagram is a 2D representation of color, often based on the CIE 1931 color
space, which maps color perception in terms of human vision. It’s used in digital image
processing to describe and analyze colors in an image, especially for applications in color
correction, display calibration, and color gamut mapping.
CIE XYZ Color Space:
The chromaticity diagram is typically derived from the CIE XYZ color space, where X, Y, and Z
are tristimulus values representing how a color is perceived. This color space is device-independent
and is designed to mimic human color perception.
Chromaticity Coordinates (x, y):
The chromaticity diagram is a 2D plane that plots color in terms of chromaticity coordinates 𝑥x and
𝑦y, which are derived as follows:
This mapping excludes the brightness component (Y), focusing solely on hue and
saturation. Digital image processing systems often use chromaticity diagrams to
define the gamut of display devices or color transformations between color spaces.