Image Segmentation
Image Segmentation
TYPES OF SEGMENTATION
1. THRESHOLD BASED SEGMENTATION
Threshold t may be
midway between two peaks with grey values p1 and p2
HISTOGRAM OVERLAP
Image Closing
using 9*9 square
NEED FOR LOCAL THRESHOLDING
Global threshold: The threshold was the same for the
entire image.
Pixel Pixel
value 240 value 120
STEPS:
If we divide the image into n subimages.
Then the grey value of bone pixels in each subimage
will be relatively constant, because the gradient
effect is comparatively.
For each subimage, we can now find an appropriate
Line detection
Gy
( x, y ) tan (
1
)
Gx
Edge detection:
Laplacian operation
2 f 2 f
f 2 2
2
x y
r2
r 2 2 2 2
h(r )
2
e
4
REGION-BASED SEGMENTATION
SRG
Region growing: Groups pixels or sub-region into
larger regions.
step1:
Start with a set of “seed” points and from
these grow regions by appending to each
seed those neighboring pixels that have
properties similar to the seed.
step2:
Region splitting and merging
4
1
REGION-BASED SEGMENTATION
SRG
Advantage:
With good connectivity
Disadvantage:
Initial seed-points:
different sets of initial seed-point cause different segmented
result
Time-consuming problem
4
2
REGION-BASED SEGMENTATION
USRG
Unseeded region growing:
no explicit seed selection is necessary, the
seeds can be generated by the
segmentation procedure automatically.
It is similar to SRG except the choice of
seed point
4
3
REGION-BASED SEGMENTATION
USRG
Advantage:
easy to use
can readily incorporate high level knowledge of the
image composition through region threshold
Disadvantage:
slow speed
4
4
REGION-BASED SEGMENTATION
FAST SCANNING(1)
Fast scanning Algorithm:
The fast scanning
algorithm somewhat
resembles unseeded
region growing
the number of clusters of
both two algorithm would
not be decided before
image passing through
them.
45
REGION-BASED SEGMENTATION
FAST SCANNING(2)
4
6
REGION-BASED SEGMENTATION
FAST SCANNING(3)
Last step:
47
REGION-BASED SEGMENTATION
FAST SCANNING
Advantage:
The speed is very fast
The result of segmentation will be intact with good
connectivity
Disadvantage:
The matching of physical object is not good
It can be improved by morphology and geometric
mathematic
4
8
REGION-BASED SEGMENTATION
FAST SCANNING-IMPROVED BY MORPHOLOGY
erosion
dilation
49
REGION-BASED SEGMENTATION
FAST SCANNING-IMPROVED BY
MORPHOLOGY
dilation erosion
50
REGION-BASED SEGMENTATION
FAST SCANNING-IMPROVED BY MORPHOLOGY
opening closing
51
Erosion=>Dilation Dilation=>Erosion
CLUSTERING SEGMENTATION
WHAT IS CLUSTER ANALYSIS?
Finding groups of objects such that the objects in a group
will be similar (or related) to one another and different from
(or unrelated to) the objects in other groups
Inter-cluster
Intra-cluster distances are
distances are maximized
minimized
NOTION OF A CLUSTER CAN BE AMBIGUOUS
8 contiguous clusters
TYPES OF CLUSTERS: DENSITY-BASED
Density-based
A cluster is a dense region of points, which is separated by
low-density regions, from other regions of high density.
Used when the clusters are irregular or intertwined, and
when noise and outliers are present.
6 density-based clusters
EUCLIDEAN DENSITY – CENTER-BASED
Euclidean density is the number of points within
a specified radius of the point
K-MEANS
Choose a fixed number of Algorithm
clusters fix cluster centers; allocate
points to closest cluster
fix allocation; compute
Choose cluster centers and
best cluster centers
point-cluster allocations to
minimize error x could be any set of
features for which we can
can’t do this by search,
compute a distance
because there are too
(careful about scaling)
many possible allocations.
2
iclusters jelements of i'th cluster
x j i
Image Clusters on intensity Clusters on color
K-means Clusters
MATCHING
If we want to locate an object in an image, and we
have available an example of what it should look like
(a template), we can find this object by matching the
template to various image locations until we have
found the object.