SlideShare a Scribd company logo
1 of 23
Download to read offline
IMAGE SEGMENTATION
Introduction
 Image segmentation divides an image into regions
that are connected and have some similarity within
the region and some difference between adjacent
regions.
 The goal is usually to find individual objects in an
image.
 For the most part there are fundamentally two kinds
of approaches to segmentation: discontinuity and
similarity.
 Similarity may be due to pixel intensity, color or texture.
 Differences are sudden changes (discontinuities) in any of these, but
especially sudden changes in intensity along a boundary line, which is
called an edge.
Detection of Discontinuities
 There are three kinds of discontinuities of intensity:
points, lines and edges.
 The most common way to look for discontinuities is
to scan a small mask over the image. The mask
determines which kind of discontinuity to look for.







9
1
9
9
2
2
1
1 ...
i
i
i z
w
z
w
z
w
z
w
R
General 3x3
Mask
Point Detection
threshold
e
nonnegativ
a
:
where T
T
R 
Line Detection
 Only slightly more common than point detection is to
find a one pixel wide line in an image.
 For digital images the only three point straight lines are
only horizontal, vertical, or diagonal (+ or –45).
Line Masks
Line detection
Edge Detection
Edge Detection
Gradient operators
Roberts cross-gradient operators
Prewitt operators
Sobel operators
Edge Linking and Boundary Detection
Local Processing
 Two properties of edge points are useful for edge linking:
 the strength (or magnitude) of the detected edge points
 their directions (determined from gradient directions)
 This is usually done in local neighborhoods.
 Adjacent edge points with similar magnitude and direction are
linked.
 For example, an edge pixel with coordinates (x0,y0) in a
predefined neighborhood of (x,y) is similar to the pixel at (x,y)
if
threshold
e
nonnegativ
a
:
,
)
,
(
)
,
( 0
0 E
E
y
x
y
x
f 



threshold
angle
nonegative
a
:
,
)
,
(
)
,
( 0
0 A
A
y
x
y
x 


Example
In this example,
we can find the
license plate
candidate after
edge linking
process.
Thresholding
• Intensity histogram in Fig. 10.35(a) corresponds to an image f(x,y) composed of light
object on dark background.
• To extract object from the background, we have to set a threshold T, such that any point
(x, y) in image at which f(x, y) > T is called object point; otherwise, background point.
• The segmented image g(x, y) is given by:
(10.3-1)
Thresholding
• Intensity histogram in Fig. 10.35(b) corresponds to an image f(x,y) composed of two
types of light objects on a dark background.
• The segmented image g(x, y) is given by:
(10.3-2)
where, a, b and c are three distinct intensity values.
Basic Global Thresholding
The following iterative algorithm is used for obtaining basic global threshold.
Parameter ∆T controls the number of iterations. Larger ∆T is, fewer iterations the algorithm
will perform.
Optimum Global Thresholding OTSU
• The Otsu’s method is optimum in the sense that it maximizes the between-class variance.
• In addition, Otsu method is based entirely on computations performed on image
histogram, an easily obtainable 1D array.
• Otsu’s algorithm may be summarized as follows:
Segmentation using Otsu
Segmentation using Otsu
Region based segmentation
 Edges and thresholds sometimes do not give good
results for segmentation.
 Region-based segmentation is based on the
connectivity of similar pixels in a region.
 Each region must be uniform.
 Connectivity of the pixels within the region is very important.
 There are two main approaches to region-based
segmentation: region growing and region splitting.
Basic Formulation
 Let R represent the entire image region.
 Segmentation is a process that partitions R into subregions,
R1,R2,…,Rn, such that
where P(Rk): a logical predicate defined over the points in set
Rk
For example: P(Rk)=TRUE if all pixels in Rk have the same
gray level.
R
Ri
n
i


1
(a)
n
i
Ri ,...,
2
,
1
region,
connected
a
is
(b) 
j
i
j
i
R
R j
i 

 ,
and
all
for
(c) 
n
i
R
P i ,...,
2
,
1
for
TRUE
)
(
(d) 

j
i
j
i R
R
R
R
P and
regions
adjacent
any
for
FALSE
)
(
(e) 

Region Growing
Region splitting and merging
 Region splitting is the opposite of region growing.
 First there is a large region (possible the entire image).
 Then a predicate (measurement) is used to determine if the
region is uniform.
 If not, then the method requires that the region be split into
two regions.
 Then each of these two regions is independently tested by
the predicate (measurement).
 This procedure continues until all resulting regions are
uniform.
Region splitting and merging
 The main problem with region splitting is determining where
to split a region.
 One method to divide a region is to use a quadtree structure.
 Quadtree: a tree in which nodes have exactly four descendants.
Region splitting and merging
 The split and merge procedure:
 Split into four disjoint quadrants any region Ri for which P(Ri) =
FALSE.
 Merge any adjacent regions Rj and Rk for which P(Rj U Rk) = TRUE.
(the quadtree structure may not be preserved)
 Stop when no further merging or splitting is possible.

More Related Content

What's hot

Image degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem AshrafImage degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem AshrafMD Naseem Ashraf
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation pptGichelle Amon
 
Image Restoration
Image RestorationImage Restoration
Image RestorationPoonam Seth
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentationasodariyabhavesh
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationMostafa G. M. Mostafa
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filtersA B Shinde
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainA B Shinde
 
Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)VARUN KUMAR
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniquesSaideep
 
Edge linking in image processing
Edge linking in image processingEdge linking in image processing
Edge linking in image processingVARUN KUMAR
 
Fourier descriptors & moments
Fourier descriptors & momentsFourier descriptors & moments
Fourier descriptors & momentsrajisri2
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentationramya marichamy
 
Image pre processing - local processing
Image pre processing - local processingImage pre processing - local processing
Image pre processing - local processingAshish Kumar
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processingasodariyabhavesh
 
Image segmentation
Image segmentationImage segmentation
Image segmentationkhyati gupta
 
Image segmentation
Image segmentationImage segmentation
Image segmentationRania H
 
Digital Image Processing: An Introduction
Digital Image Processing: An IntroductionDigital Image Processing: An Introduction
Digital Image Processing: An IntroductionMostafa G. M. Mostafa
 

What's hot (20)

Image degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem AshrafImage degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem Ashraf
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation ppt
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Histogram Equalization
Histogram EqualizationHistogram Equalization
Histogram Equalization
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Segmentation
SegmentationSegmentation
Segmentation
 
Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
 
Edge linking in image processing
Edge linking in image processingEdge linking in image processing
Edge linking in image processing
 
Fourier descriptors & moments
Fourier descriptors & momentsFourier descriptors & moments
Fourier descriptors & moments
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Image pre processing - local processing
Image pre processing - local processingImage pre processing - local processing
Image pre processing - local processing
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processing
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Digital Image Processing: An Introduction
Digital Image Processing: An IntroductionDigital Image Processing: An Introduction
Digital Image Processing: An Introduction
 

Similar to IMAGE SEGMENTATION TECHNIQUES

image segmentation by ppres.pptx
image segmentation by ppres.pptximage segmentation by ppres.pptx
image segmentation by ppres.pptxmohan134666
 
Chapter10_Segmentation.ppt
Chapter10_Segmentation.pptChapter10_Segmentation.ppt
Chapter10_Segmentation.pptMrsSDivyaBME
 
Notes on image processing
Notes on image processingNotes on image processing
Notes on image processingMohammed Kamel
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfnagwaAboElenein
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slidesBHAGYAPRASADBUGGE
 
chAPTER1CV.pptx is abouter computer vision in artificial intelligence
chAPTER1CV.pptx is abouter computer vision in artificial intelligencechAPTER1CV.pptx is abouter computer vision in artificial intelligence
chAPTER1CV.pptx is abouter computer vision in artificial intelligenceshesnasuneer
 
computervision1.pptx its about computer vision
computervision1.pptx its about computer visioncomputervision1.pptx its about computer vision
computervision1.pptx its about computer visionshesnasuneer
 
Image Acquisition and Representation
Image Acquisition and RepresentationImage Acquisition and Representation
Image Acquisition and RepresentationAmnaakhaan
 
quantization and sampling presentation ppt
quantization and sampling presentation pptquantization and sampling presentation ppt
quantization and sampling presentation pptKNaveenKumarECE
 
ImageSegmentation (1).ppt
ImageSegmentation (1).pptImageSegmentation (1).ppt
ImageSegmentation (1).pptNoorUlHaq47
 
ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.pptAVUDAI1
 

Similar to IMAGE SEGMENTATION TECHNIQUES (20)

image segmentation by ppres.pptx
image segmentation by ppres.pptximage segmentation by ppres.pptx
image segmentation by ppres.pptx
 
ImSeg04.ppt
ImSeg04.pptImSeg04.ppt
ImSeg04.ppt
 
Im seg04
Im seg04Im seg04
Im seg04
 
ImSeg04 (2).ppt
ImSeg04 (2).pptImSeg04 (2).ppt
ImSeg04 (2).ppt
 
Chapter10_Segmentation.ppt
Chapter10_Segmentation.pptChapter10_Segmentation.ppt
Chapter10_Segmentation.ppt
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
Notes on image processing
Notes on image processingNotes on image processing
Notes on image processing
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
chAPTER1CV.pptx is abouter computer vision in artificial intelligence
chAPTER1CV.pptx is abouter computer vision in artificial intelligencechAPTER1CV.pptx is abouter computer vision in artificial intelligence
chAPTER1CV.pptx is abouter computer vision in artificial intelligence
 
computervision1.pptx its about computer vision
computervision1.pptx its about computer visioncomputervision1.pptx its about computer vision
computervision1.pptx its about computer vision
 
regions
regionsregions
regions
 
Image Acquisition and Representation
Image Acquisition and RepresentationImage Acquisition and Representation
Image Acquisition and Representation
 
IR.pptx
IR.pptxIR.pptx
IR.pptx
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
quantization and sampling presentation ppt
quantization and sampling presentation pptquantization and sampling presentation ppt
quantization and sampling presentation ppt
 
3rd unit.pptx
3rd unit.pptx3rd unit.pptx
3rd unit.pptx
 
ImageSegmentation (1).ppt
ImageSegmentation (1).pptImageSegmentation (1).ppt
ImageSegmentation (1).ppt
 
ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.ppt
 

More from Visvesvaraya National Institute of Technology, Nagpur, Maharashtra, India (10)

Wavelet transform
Wavelet transformWavelet transform
Wavelet transform
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filtering
 
Radon transform numerical & Fourier slice theorem
Radon transform numerical & Fourier slice theoremRadon transform numerical & Fourier slice theorem
Radon transform numerical & Fourier slice theorem
 
Pixel relationships
Pixel relationshipsPixel relationships
Pixel relationships
 
Morphological image processing
Morphological image processingMorphological image processing
Morphological image processing
 
Mathematical tools in dip
Mathematical tools in dipMathematical tools in dip
Mathematical tools in dip
 
Image transforms
Image transformsImage transforms
Image transforms
 
Image restoration and reconstruction
Image restoration and reconstructionImage restoration and reconstruction
Image restoration and reconstruction
 
Histogram processing
Histogram processingHistogram processing
Histogram processing
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 

Recently uploaded

UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniquesugginaramesh
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 

Recently uploaded (20)

young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Comparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization TechniquesComparative Analysis of Text Summarization Techniques
Comparative Analysis of Text Summarization Techniques
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 

IMAGE SEGMENTATION TECHNIQUES

  • 2. Introduction  Image segmentation divides an image into regions that are connected and have some similarity within the region and some difference between adjacent regions.  The goal is usually to find individual objects in an image.  For the most part there are fundamentally two kinds of approaches to segmentation: discontinuity and similarity.  Similarity may be due to pixel intensity, color or texture.  Differences are sudden changes (discontinuities) in any of these, but especially sudden changes in intensity along a boundary line, which is called an edge.
  • 3. Detection of Discontinuities  There are three kinds of discontinuities of intensity: points, lines and edges.  The most common way to look for discontinuities is to scan a small mask over the image. The mask determines which kind of discontinuity to look for.        9 1 9 9 2 2 1 1 ... i i i z w z w z w z w R General 3x3 Mask
  • 5. Line Detection  Only slightly more common than point detection is to find a one pixel wide line in an image.  For digital images the only three point straight lines are only horizontal, vertical, or diagonal (+ or –45). Line Masks
  • 9. Gradient operators Roberts cross-gradient operators Prewitt operators Sobel operators
  • 10. Edge Linking and Boundary Detection Local Processing  Two properties of edge points are useful for edge linking:  the strength (or magnitude) of the detected edge points  their directions (determined from gradient directions)  This is usually done in local neighborhoods.  Adjacent edge points with similar magnitude and direction are linked.  For example, an edge pixel with coordinates (x0,y0) in a predefined neighborhood of (x,y) is similar to the pixel at (x,y) if threshold e nonnegativ a : , ) , ( ) , ( 0 0 E E y x y x f     threshold angle nonegative a : , ) , ( ) , ( 0 0 A A y x y x   
  • 11. Example In this example, we can find the license plate candidate after edge linking process.
  • 12. Thresholding • Intensity histogram in Fig. 10.35(a) corresponds to an image f(x,y) composed of light object on dark background. • To extract object from the background, we have to set a threshold T, such that any point (x, y) in image at which f(x, y) > T is called object point; otherwise, background point. • The segmented image g(x, y) is given by: (10.3-1)
  • 13. Thresholding • Intensity histogram in Fig. 10.35(b) corresponds to an image f(x,y) composed of two types of light objects on a dark background. • The segmented image g(x, y) is given by: (10.3-2) where, a, b and c are three distinct intensity values.
  • 14. Basic Global Thresholding The following iterative algorithm is used for obtaining basic global threshold. Parameter ∆T controls the number of iterations. Larger ∆T is, fewer iterations the algorithm will perform.
  • 15. Optimum Global Thresholding OTSU • The Otsu’s method is optimum in the sense that it maximizes the between-class variance. • In addition, Otsu method is based entirely on computations performed on image histogram, an easily obtainable 1D array. • Otsu’s algorithm may be summarized as follows:
  • 18. Region based segmentation  Edges and thresholds sometimes do not give good results for segmentation.  Region-based segmentation is based on the connectivity of similar pixels in a region.  Each region must be uniform.  Connectivity of the pixels within the region is very important.  There are two main approaches to region-based segmentation: region growing and region splitting.
  • 19. Basic Formulation  Let R represent the entire image region.  Segmentation is a process that partitions R into subregions, R1,R2,…,Rn, such that where P(Rk): a logical predicate defined over the points in set Rk For example: P(Rk)=TRUE if all pixels in Rk have the same gray level. R Ri n i   1 (a) n i Ri ,..., 2 , 1 region, connected a is (b)  j i j i R R j i    , and all for (c)  n i R P i ,..., 2 , 1 for TRUE ) ( (d)   j i j i R R R R P and regions adjacent any for FALSE ) ( (e)  
  • 21. Region splitting and merging  Region splitting is the opposite of region growing.  First there is a large region (possible the entire image).  Then a predicate (measurement) is used to determine if the region is uniform.  If not, then the method requires that the region be split into two regions.  Then each of these two regions is independently tested by the predicate (measurement).  This procedure continues until all resulting regions are uniform.
  • 22. Region splitting and merging  The main problem with region splitting is determining where to split a region.  One method to divide a region is to use a quadtree structure.  Quadtree: a tree in which nodes have exactly four descendants.
  • 23. Region splitting and merging  The split and merge procedure:  Split into four disjoint quadrants any region Ri for which P(Ri) = FALSE.  Merge any adjacent regions Rj and Rk for which P(Rj U Rk) = TRUE. (the quadtree structure may not be preserved)  Stop when no further merging or splitting is possible.