Segmentation
Segmentation
Segmentation
IMAGE SEGMENTATION
IMAGE SEGMENTATION
• Segmentation divides an image into its constituent
regions or objects.
Image Segmentation= divide image into
(continuous) regions or sets of pixels
• process in which regions or features sharing similar
characteristics are identified and grouped together
• Segmentation allows to extract objects in image
• Segmentation should stop when the objects of
interest in an application have been isolated.
• Still under research
SEGMENTATION
• purpose to partition an image into meaningful
regions with respect to a particular application
• goal is to simplify and/or change the representation
of an image into something that is more meaningful
and easier to analyze
• used to locate objects and boundaries (lines,
curves, etc.) in images
• Based on shape, texture, and color, objects can be
identified
• Image segmentation techniques are extensively
used in similarity searches
Applications
• Content-based image
retrieval
• Machine vision
• Medical imaging
• Object detection
• Recognition Tasks
• Traffic control systems
• Video surveillance
Segmentation Techniques
Quadtree
R0 R1
R0
R3
R2 R1
• Eg: COBWEB,CURE,CHAMELEON
Agglomerative Hierarchical Clustering
• Seek to merge clusters to be larger and larger by
starting with N single point clusters
• Data objects are grouped in a bottom-up fashion.
• Initially each data object is in its own cluster.
• Then merge these atomic clusters into larger and
larger clusters, until all of the objects are in a single
cluster or until certain termination conditions are
satisfied.
• Termination condition can be specified by the user,
as the desired number of clusters.
• Three classes
1. Single –link algorithm
2. Complete link algorithm
3. Minimum variance algorithm
• Single –link algorithm
merges two cluster according to minimum distance between
the data samples from two clusters
Produce clusters with elongated shapes
• Complete link algorithm
Incorporates maximum distance between data samples in
clusters
Results in compact clusters
• Minimum variance algorithm
Combines two clusters in the sense of minimizing cost of
function
Forms a cluster with minimum increase in cost
Application in vector quantization(pair-wise nearest
neighbourhood algorithm)
Single –link algorithm steps
1. “Every point is its own cluster”
2. Find “most similar” pair of clusters
3. Merge it into a parent cluster
4. Repeat
Divisive Hierarchical Clustering
for i = 1,2,......K ,i≠j where Cj(k) = set of samples whose cluster centre is Zj(k)
3. Compute new cluster centres Zj(k + 1),j =1,2,....k Such that sum of squared
distance from all points in Cj(k) to the new cluster is minimized. The measure
which minimizes this is the sample mean of Cj(k). Thus new cluster centre is
5 4
4 3
3 2
1
2
0
1
0 1 2 3 4 5 6 7 8 9 10
0
0 1 2 3 4 5 6 7 8 9 10
10
10
9
9
8
8
7
7
6
6
5
5
4
4
3
3
2
2
1
1
0
0
0 1 2 3 4 5 6 7 8 9 10
0 1 2 3 4 5 6 7 8 9 10
K- Means Clustering
Pros
• Simple
• Fast for low dimensional data
• It can find pure sub clusters if large number of clusters
is specified
Cons
• K-Means cannot handle non-globular data of different
sizes and densities
• K-Means will not identify outliers
• K-Means is restricted to data which has the notion of a
center (centroid
Fuzzy clustering
• Depending on whether a pattern data belongs
to a single cluster or several clusters with
different degrees
Fuzzy clustering
• Represent the relationship between input pattern
data and clusters naturally
• Seeks to minimize a heuristic global cost function by
assigning some graded membership for each
pattern data in each cluster
• Allows each pattern for multiple assignments of
clusters
• Superior to hard clustering
Fuzzy clustering
• Pros:
– Allows a data point to be in multiple clusters
– A more natural representation of the behavior of
genes
• Cons:
– Need to define the number of clusters
– Need to determine membership cutoff value
– Clusters are sensitive to initial assignment of
centroids
Segmentation based on thresholding
• Produce pixels with similar intensities
• Technique to establish boundaries in images that
contain solid objects resting on a contrasting
background
• Requires an object with homogeneous intensity and
background with different intensity level, then
simple thresholding is used
Global thresholding
• simplest
• Thresholding is usually the first step in any segmentation
approach
• Single value thresholding can be given mathematically as
follows
• f(m,n) = 1 , if f(m,n) ≥ T
0 , else
• No indication to select T
• Should select in an optimal manner
• Simple thresholding schemes compare each pixels gray level
with a single global threshold. This is referred to as Global
Tresholding.
• If T depends on both gray level function and some local
function then it is referred as Local Thresholding.
Problem associated
• Pixels from different segments will overlap in their
use of intensities
• Reasons
1) noise
• Minimum error method estimate cluster
parameters
• Choose T to reduce classification error
2) variation in illumination across the image
• Variable thresholding
Example
Procedure
1.Select an initial estimate for T (typically the average grey level
in the image)
2.Segment the image using T to produce two groups of pixels:
G1 consisting of pixels with grey levels >T and G2 consisting
pixels with grey levels ≤ T
3.Compute the average grey levels of pixels in G1 to give μ1 and
G2 to give μ2
4.Compute a new threshold value:
T = μ1 + μ2 / 2