Lecture 08 Image Segmentation
Lecture 08 Image Segmentation
Outline
2
ITS69204
Topic 8
Image Segmentation
3
ITS69204
Topic 8
Image Segmentation
From a machine learning point of view, later, these identified labels can be further used for
both supervised and unsupervised training. 4
ITS69204
Topic 8
Image Segmentation
5
ITS69204
Topic 8
Image Segmentation
6
ITS69204
Topic 8
Image Segmentation
7
ITS69204
Topic 8
Image Segmentation
• Based on the two approaches, there are various forms of techniques can be
applied in Image Segmentation Algorithms.
• These techniques can be classified into 3 broader categories:
• Structural Segmentation Techniques
• Stochastic Segmentation Techniques
• Hybrid Techniques
8
ITS69204
Topic 8
Image Segmentation
9
ITS69204
Topic 8
Image Segmentation
Hybrid Techniques
• Make use of a combination of structural method and stochastic methods.
• Use both the structural information of a region as well as the discrete pixel
information of the image.
10
ITS69204
Topic 8
Image Segmentation
Based on the image segmentation approaches and the type of processing that is
needed to be incorporated to attain a goal, the following image segmentation
techniques can be applied:
1. Threshold Method
2. Edge Based Segmentation
3. Region Based Segmentation
4. Clustering Based Segmentation
11
ITS69204
Topic 8
Image Segmentation
1. Threshold Method
• This is perhaps the most basic and yet powerful technique to identify the
required objects in an image.
• Based on the intensity, the pixels in an image get divided by comparing the
pixel’s intensity with a threshold value.
12
ITS69204
Topic 8
Image Segmentation
1. Threshold Method
• Thresholding is useful when the objects in the image in question are assumed
to be having more intensity than the background of the image.
• At its simpler level, the threshold value T is considered to be a constant.
• But this approach may be futile considering the amount of noise that the image
contains (so, we can either keep it constant or change it dynamically based on the image
properties)
13
ITS69204
Topic 8
Image Segmentation
A. Simple Thresholding
• This technique replaces the pixels in an image with either black or white.
• If the intensity of a pixel (Ii,j) at position (i,j) is less than the threshold (T),
then → replace with black pixel. If it is more → replace with white pixel.
• This is a binary approach to thresholding.
14
ITS69204
Topic 8
Image Segmentation
B. Otsu binarization
In global thresholding, an arbitrary value is used for threshold and it remains a
constant. But,
15
ITS69204
Topic 8
Image Segmentation
16
ITS69204
Topic 8
Image Segmentation
17
ITS69204
Topic 8
Image Segmentation
C. Adaptive Thresholding
Adaptive approach → the algorithm divides the image into smaller portions and
calculates the threshold for those portions of the image.
Advantages:
can obtain different thresholds for different regions of the same image.
gives better results for images with varying illumination.
able to automatically calculate the threshold value.
The threshold value can be the mean of neighborhood area or it can be the weighted sum of
neighborhood values.
18
ITS69204
Topic 8
Image Segmentation
19
ITS69204
Topic 8
Image Segmentation
• Basic edge detection operators are used to detect edge discontinuities and
hence mark the edge boundaries.
o Sobel
o Canny
o Roberts
o Prewitts
Study and Comparison of Different Edge Detection Operators for Image Segmentation 20
ITS69204
Topic 8
Image Segmentation
21
ITS69204
Topic 8
Image Segmentation
A. Region Growing
It’s a bottom-up method where we begin with a smaller set of pixel and start
accumulating or iteratively merging it based on certain pre-determined similarity
constraints.
Algorithm steps:
1. starts with an arbitrary seed pixel and compare it with its neighboring pixels.
2. If there is a match in neighboring pixels, then they are added to the initial seed
pixel (region growing).
3. When reach saturation (region growth halt) → chooses another seed pixel.
4. Repeat process 1, 2, 3.
22
ITS69204
Topic 8
Image Segmentation
A. Region Growing
Advantages: this methods often achieve effective segmentation.
Disadvantages: When the algorithm lets a region grow completely before trying
other seeds → resulted in biases (the segmentation in favor of the first segmented region)
To counter this effect:-
begin with the user inputs of similarities first
no single region is allowed to dominate
multiple regions allowed to grow simultaneously
23
ITS69204
Topic 8
Image Segmentation
A. Region Growing
Region growth, also a pixel based algorithm like thresholding but the major
difference is. Region growing techniques are preferable for noisy images, where it
is highly difficult to detect the edges.
24
ITS69204
Topic 8
Image Segmentation
A. Region Growing
25
ITS69204
Topic 8
Image Segmentation
This is a divide and conquers method as opposed to the region growth algorithm.
• Clustering are unsupervised algorithms (no pre-defined set of features, classes, or groups).
• It helps in fetching the underlying, hidden information from the data
(such as structures, clusters, and groupings that are usually unknown from a heuristic point of view).
• The clustering based techniques segment the image into clusters (disjoint
groups) of pixels with similar characteristics.
• Some of the efficient clustering algorithms:
k-means
improved k means
fuzzy c-mean (FCM)
improved fuzzy c mean algorithm (IFCM)
28
ITS69204
Topic 8
Image Segmentation
Techniques Remarks
Fuzzy C-means (FCM) allows pixels to be clustered into more than one
cluster. (a group of pixels can belong to more than one cluster or
group and they can have varying levels of associativity per group).
29
ITS69204
Topic 8
Image Segmentation
Avanda
Ascocentrum
30
ITS69204
Topic 8
Image Segmentation
Thank You