11 Image Segmentation
11 Image Segmentation
Technology (NUST)
School of Electrical Engineering and Computer Science
(SEECS)
GLOBAL
LOCAL
T mean
T median
max min
T
2
Thresholding - Global
Estimate an initial T
Region Growing
Region growing: groups pixels or subregions into larger regions.
Pixel aggregation: starts with a set of “seed” points and from these
grows regions by appending to each seed points those neighboring
pixels that have similar properties (such as gray level).
Example
2. Region Splitting Segmentation
Region Splitting
• Initially take the image as a whole to be the area of interest.
• Look at the area of interest and decide if all pixels contained in the region satisfy some
similarity constraint.
• If FALSE split the area of interest (usually into four equal sub-areas) and consider each of
the sub-areas as the area of interest in turn.
Region Merging
Region merging is the opposite of region splitting.
Merge adjacent regions Ri and Rj for which:
P( Ri R j ) True
Region Splitting/Merging
Stop when no further split or merge is possible
2. Region Splitting Segmentation
Example
39
5. Mean Shift Segmentation
Region of
interest
Center of
mass
Mean Shift
vector
Objective : Find the densest region
Distribution of identical billiard balls
5. Mean Shift Segmentation
Region of
interest
Center of
mass
Mean Shift
vector
Objective : Find the densest region
Distribution of identical billiard balls
5. Mean Shift Segmentation
Region of
interest
Center of
mass
Mean Shift
vector
Objective : Find the densest region
Distribution of identical billiard balls
5. Mean Shift Segmentation
Region of
interest
Center of
mass
Mean Shift
vector
Objective : Find the densest region
Distribution of identical billiard balls
5. Mean Shift Segmentation
Region of
interest
Center of
mass
Mean Shift
vector
Objective : Find the densest region
Distribution of identical billiard balls
5. Mean Shift Segmentation
Region of
interest
Center of
mass
Mean Shift
vector
Objective : Find the densest region
Distribution of identical billiard balls
5. Mean Shift Segmentation
Region of
interest
Center of
mass
Attraction basin : the region for which all trajectories lead to the same mode
Mean Shift Segmentation Extension
MSS Is scale (search window size) sensitive. Solution, use all scales:
190cm
130cm
60kg 90kg
Features
190cm
130cm
60kg 90kg
Feature Space
Height
Weight
K-NN Algorithm
Who’s this?
Height
Weight
K-NN Algorithm
Height
Weight
K-NN Algorithm
Height
Weight
K-NN Algorithm
Height
Weight
K-NN Algorithm
“Euclidean distance” d (w w1 ) (h h1 )
2 2
(w, h)
Height
d
(w1, h1)
Weight
K-NN Algorithm
Who’s this?
Who’s this?
Who’s this?
Decision Boundary
This technique is to identify all the third type of points for segmentation
6. Watershed Segmentation - Visualization
Basic Steps
2. The 3D topography is
flooded from below
gradually
- M1, M2:
- Sets of coordinates of points in
the two regional minima
- Cn-1(M1), Cn-1(M2)
- Sets of coordinates of points in
the catchment basins associated
with M1 M2 at stage n-1 of
flooding (catchment basins up to
the flooding level)
- C[n-1]
- Union of Cn-1(M1), Cn-1(M2)
6. Watershed Segmentation
• Steps
• Repeatedly dilate Cn-1(M1), Cn-1(M2) by
the 3×3 structuring element shown,
subject to the following condition
• Constrained to q (center of the
structuring element can not go beyond
q during dilation
6. Watershed Segmentation