Ch07_Color Image Processing
Ch07_Color Image Processing
1
Color Fundamentals
4
…cont’d
5
…cont’d
7
…cont’d
9
7.2 Color Models (color space or
color system)
The color model aims to facilitate the
specification of colors in some standard way.
In digital image processing, commonly used
color models are:
RGB (Red, Green, Blue)
CMY (Cyan, Magenta, Yellow)
CMYK (Cyan, Magenta, Yellow, Black)
HSI (Hue, Saturation, Intensity)
10
The RGB Model
12
CMY Model
13
CMYK Model
14
HSI Model
15
…cont’d
16
7.3 Basics of Full-Color Image
Processing
Full-color image processing approaches fall
into two major categories:
Processing each grayscale component image
individually, then form a composite color
image from the individually processed
components.
Processing color pixels directly.
Full-color images have at least three
components, and hence color pixels are
vectors.
17
…cont’d
21
…cont’d
(a) (b) 22
…cont’d
In (a), averaging would be done by summing
the intensities of all the pixels in the 2-D
neighborhood, then dividing the result by the
total number of pixels in the neighborhood.
In (b), averaging would be done by summing
all the voxels in the 3-D neighborhood, then
dividing the result by the total number of
voxels in the neighborhood.
Each of the three component of the average
voxel is the sum of the pixels in the single
image neighborhood centered on that
location. 23
…cont’d
24
7.4 Morphological image
processing
Mathematical morphology a tool used for
extracting image components that are useful
in the representation and description of
region shape, such as boundaries, skeletons,
and the convex hull.
In image processing, we use morphology with
two types of sets of pixels: objects and
structuring elements (SE’s).
Objects are defined as sets of foreground
pixels.
25
…cont’d
26
…cont’d
27
…cont’d
29
…cont’d
30
…cont’d
31
For morphological image processing, we
need a structuring element.
It is similar to a mask used in spatial
convolution.
Morphological operations are defined for two
images.
The image being processed is the active
image, and the second image is called
(kernel) or (structuring element)
32
…cont’d
Dilation operation:
Given a set A and the structuring element B,
the dilation of A with B is defined as:
35
…cont’d
Erosion operation:
Erosion of A with B is given by:
Closing operation:
The closing of set A by structuring element B,
is defined as
39
…cont’d
Opening Operation
The opening of set A by structuring element B,
is defined as
41
…