SlideShare a Scribd company logo
1 of 59
Image Segmentation
Subject: FIP (181102)
Prof. Asodariya Bhavesh
ECD,SSASIT, Surat
Image Segmentation
• 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
992211 ...
i
ii zwzwzwzwR
Detection of Discontinuities
Point Detection
thresholdenonnegativa:where T
TR ≥
Detection of Discontinuities
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°).
Detection of Discontinuities
Line Detection
Detection of Discontinuities
Edge Detection
Detection of Discontinuities
Edge Detection
Detection of Discontinuities
Edge Detection
Detection of Discontinuities
Edge Detection
Detection of Discontinuities
Edge Detection
Detection of Discontinuities
Gradient Operators
• First-order derivatives:
– The gradient of an image f(x,y) at location (x,y) is
defined as the vector:
– The magnitude of this vector:
– The direction of this vector:
– It points in the direction of the greatest rate of change
of f at location (x,y)








=





=∇
∂
∂
∂
∂
y
f
x
f
y
x
G
G
f
[ ] 2
1
22
)(mag yx GGf +=∇=∇ f








= −
y
x
G
G
yx 1
tan),(α
Detection of Discontinuities
Gradient Operators
Detection of Discontinuities
Gradient Operators
Roberts cross-gradient operators
Prewitt operators
Sobel operators
Detection of Discontinuities
Gradient Operators
Prewitt masks for
detecting diagonal edges
Sobel masks for
detecting diagonal edges
yx GGf +≈∇
Detection of Discontinuities
Gradient Operators: Example
Detection of Discontinuities
Gradient Operators: Example
Detection of Discontinuities
Gradient Operators: Example
Detection of Discontinuities
Gradient Operators: Example
Detection of Discontinuities
Gradient Operators
• Second-order derivatives: (The Laplacian)
– The Laplacian of an 2D function f(x,y) is defined as
– Two forms in practice:
2
2
2
2
2
y
f
x
f
f
∂
∂
+
∂
∂
=∇
More Advanced Techniques for Edge Detection
Marr-Hildreth edge detector
Marr and Hildreth argued that
1) Intensity changes are dependent of image scale and so their
detection requires the use of operators different sizes and
2) That a sudden intensity change will give rise to a peak or trough
in the first derivative or, equivalently, to zero crossing in the second
derivative.
Two salient feature:
1)It should be differential operator capable of computing first or
second order derivatives at every point in an image
2)It should be capable of being tuned to act at any desired scale, so
that large operator can be used to detect blurry edges and small
operators to detect sharply focused fine detail
• Consider the function:
• The Laplacian of h is
• The Laplacian of a Gaussian sometimes is called the Mexican
hat function. It also can be computed by smoothing the image
with the Gaussian smoothing mask, followed by application of
the Laplacian mask.
deviationstandardthe:and
where)( 2222 2
2
σ
σ
yxrerh
r
+=−=
−
2
2
2
4
22
2
)( σ
σ
σ
r
e
r
rh
−





 −
−=∇
The Laplacian of a
Gaussian (LoG)
A Gaussian function
More Advanced Techniques for Edge Detection
• Marr-Hildreth edge detector
• Marr and Hildreth argued that the most satisfactory operator fulfilling these
conditions is the filter ∇2
G where, ∇2
is the Laplacian operator, and G is the
2-D Gaussian function
(LoG)GaussionaofLaplaciancalledisexpressionThis
2
),(
11
),(
),(
),(),(
),(
),(
2
22
2
22
2
22
2
22
2
22
2
22
2
4
222
2
2
24
2
2
24
2
2
2
2
2
2
2
2
2
2
2
2
2
σ
σσ
σσ
σ
σ
σ
σσσσ
σσ
yx
yxyx
yxyx
yx
e
yx
yxG
e
y
e
x
yxG
e
y
y
e
x
x
yxG
y
yxG
x
yxG
yxG
eyxG
+
−
+
−
+
−
+
−
+
−
+
−





 −+
=∇






−+





−=∇







 −
∂
∂
+







 −
∂
∂
=∇
∂
∂
+
∂
∂
=∇
=
More Advanced Techniques for Edge Detection
More Advanced Techniques for Edge Detection
Detection of Discontinuities
Gradient Operators: Example
Sobel gradient
Laplacian maskGaussian smooth function
Detection of Discontinuities
Gradient Operators: Example
Detection of Discontinuities
Gradient Operators: Example
Hough Transforms
Hough Transforms takes the images created by the edge detection
operators
Most of the time, the edge map generated by the edge detection
algorithms is disconnected
HT can be used to connect the disjointed edge points
It is used to fit the points as plane curves
Plane curves are lines, circles, and parabolas
The line equation is y = mx + c
However, the problem is that there are infinite line passing through one
points
Therefore, an edge point in an x-y plane is transformed to a c-m plane
Now equation of line is c = (-x)m + y
Hough Transforms
All the edge points in the x-y plane need to be fitted
All the points are transformed in c-m plane
The objective is to find the intersection point
A common intersection point indicates that the edges points which are
part of the line
If A and B are the points connected by a line in the spatial domain, then
they will be intersecting lines in the Hough Space (c-m plane)
To check whether they are intersecting lines, the c-m plane is partitioned
as accumulator lines
To find this, it can be assumed that the c-m plane can be partitioned as
an accumulator array
For every edge point (x,y), the corresponding accumulator element is
incremented in the accumulator array
At the end of this process, the accumulator values are checked
Significance is that this point gives us the line equation of the (x,y) space
Hough Transforms
Hough Transform steps:
1)Load the image
2)Find the edges of the image using any edge detector
3)Quantize the parameter space P
4)Repeat the following for all the pixels of the image:
if the pixel is an edge pixel, then
(a) c = (-x)m + y or calculate ρ
(b) P(c,m) = P(c,m) + 1 or increment position in P
5)Show the Hough Space
6)Find the local maxima in the parameter space
7)Draw the line using the local maxima
The major problem with this algorithm is that it does not work for
vertical lines, as they have a slope of infinity
Convert line into polar coordinates ρ = x cosӨ + ysinӨ, where Ө is the
angle between the line and x-axis, and ρ is the diameter
Edge Linking and Boundary Detection
Global Processing via the Hough Transform
• Hough transform: a way of finding edge points in an image
that lie along a straight line.
• Example: xy-plane v.s. ab-plane (parameter space)
baxy ii +=
Edge Linking and Boundary Detection
Global Processing via the Hough Transform
• The Hough transform consists of
finding all pairs of values of θ and
ρ which satisfy the equations
that pass through (x,y).
• These are accumulated in what is
basically a 2-dimensional
histogram.
• When plotted these pairs of θ
and ρ will look like a sine wave.
The process is repeated for all
appropriate (x,y) locations.
ρθθ =+ sincos yx
Edge Linking and Boundary Detection
Hough Transform Example
The intersection of the
curves corresponding
to points 1,3,5
2,3,4
1,4
Edge Linking and Boundary Detection
Hough Transform Example
Thresholding
• Assumption: the range of intensity levels covered by objects
of interest is different from the background.



≤
>
=
Tyxf
Tyxf
yxg
),(if0
),(if1
),(
Single threshold Multiple threshold
Thresholding
The Role of Illumination
Thresholding
The Role of Illumination
(a) (c)
(e)(d)
),(),(),( yxryxiyxf =
),( yxi),( yxr
Thresholding
Basic Global Thresholding
Thresholding
Basic Global Thresholding
Thresholding
Basic Adaptive Thresholding
Thresholding
Basic Adaptive Thresholding
How to solve this problem?
Thresholding
Basic Adaptive Thresholding
Answer: subdivision
Thresholding
Optimal Global and Adaptive Thresholding
• This method treats pixel values as probability density functions.
• The goal of this method is to minimize the probability of
misclassifying pixels as either object or background.
• There are two kinds of error:
– mislabeling an object pixel as background, and
– mislabeling a background pixel as object.
Thresholding
Use of Boundary Characteristics
Thresholding
Thresholds Based on Several Variables
Color image
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.
Region-Based Segmentation
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 Rkhave the same gray
level.
RRi
n
i
=∪
=1
(a)
jijiRR ji ≠=∩ ,andallfor(c) φ
niRi ,...,2,1region,connectedais(b) =
niRP i ,...,2,1forTRUE)((d) ==
jiji RRRRP andregionsadjacentanyforFALSE)((e) =∪
Region Growing
• Thresholding still produces isolated image
• Region growing algorithms works on principle of similarity
• It states that a region is coherent if all the pixels of that region are
homogeneous with respect to some characteristics such as colour,
intensity, texture, or other statistical properties
• Thus idea is to pick a pixel inside a region of interest as a starting
point (also known as a seed point) and allowing it to grow
• Seed point is compared with its neighbours, and if the properties
match , they are merged together
• This process is repeated till the regions converge to an extent that no
further merging is possible
Region Growing Algorithm
• It is a process of grouping the pixels or subregions to get a bigger
region present in an image
•Selection of the initial seed: Initial seed that represent the ROI should
be given typically by the user. Can be chosen automatically. The seeds
can be either single or multiple
•Seed growing criteria: Similarity criterion denotes the minimum
difference in the grey levels or the average of the set of pixels. Thus, the
initial seed ‘grows’ by adding the neighbours if they share the same
properties as the initial seed
•Terminate process: If further growing is not possible then terminate
region growing process
Region Growing Algorithm
• Consider image shown in figure:
•Assume seed point indicated by underlines. Let the seed pixels 1 and 9
represent the regions C and D, respectively
•Subtract pixel from seed value
•If the difference is less than or equal to 4 (i.e. T=4), merge the pixel
with that region. Otherwise, merge the pixel with the other region.
Split and Merge Algorithm
• Region growing algorithm is slow
• So seed point can be extended to a seed region
• Instead of a single pixel, a node of a Regional adjacency graph (RAG)
a region itself is now considered as a starting point.
• The split process can be stated as follows:
1)Segment the image into regions R1, R2,….Rn using a set of thresholds
2)Create RAG. Use a similarity measure and formulate a homogeneity
test
3)The homogeneity test is designed based on the similarity criteria such
as intensity or any image statistics
4)Repeat step 3 until no further region exits that requires merging
Split and Merge Algorithm
•
8 8 8
8 8 8
Region-Based Segmentation
Region Growing
Region-Based Segmentation
Region Growing
• Fig. 10.41 shows the histogram of Fig. 10.40 (a). It is difficult to
segment the defects by thresholding methods. (Applying region
growing methods are better in this case.)
Figure 10.41Figure 10.40(a)
Split and Merge using Quadtree
• Entire image is assumed as a single region. Then the homogeneity test
is applied. If the conditions are not met, then the regions are split into
four quadrants.
• This process is repeated for each quadrant until all the regions meet
the required homogeneity criteria. If the regions are too small, then the
division process is stopped.
•1) Split and continue the subdivision process until some stopping
criteria is fulfilled. The stopping criteria often occur at a stage where no
further splitting is possible.
•2) Merge adjacent regions if the regions share any common criteria.
Stop the process when no further merging is possible
Region-Based Segmentation
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-Based Segmentation
Region Splitting
• 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-Based Segmentation
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(RjURk) = TRUE. (the quadtree structure may not
be preserved)
– Stop when no further merging or splitting is
possible.

More Related Content

What's hot

Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersKarthika Ramachandran
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compressionasodariyabhavesh
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Kalyan Acharjya
 
digital image processing
digital image processingdigital image processing
digital image processingAbinaya B
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)asodariyabhavesh
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainMadhu Bala
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainA B Shinde
 
Fundamental steps in image processing
Fundamental steps in image processingFundamental steps in image processing
Fundamental steps in image processingPremaPRC211300301103
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processingkiruthiammu
 
Image enhancement
Image enhancementImage enhancement
Image enhancementAyaelshiwi
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersSuhaila Afzana
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainDEEPASHRI HK
 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image CompressionKalyan Acharjya
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point ProcessingGayathri31093
 

What's hot (20)

Edge detection
Edge detectionEdge detection
Edge detection
 
Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Sharpening spatial filters
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
digital image processing
digital image processingdigital image processing
digital image processing
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
 
Canny Edge Detection
Canny Edge DetectionCanny Edge Detection
Canny Edge Detection
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial Domain
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Fundamental steps in image processing
Fundamental steps in image processingFundamental steps in image processing
Fundamental steps in image processing
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
 

Similar to Chapter10 image segmentation

image segmentation image segmentation.pptx
image segmentation image segmentation.pptximage segmentation image segmentation.pptx
image segmentation image segmentation.pptxNaveenKumar5162
 
Module-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdfModule-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdfvikasmittal92
 
Open GL T0074 56 sm3
Open GL T0074 56 sm3Open GL T0074 56 sm3
Open GL T0074 56 sm3Roziq Bahtiar
 
Line Detection using Hough transform .pptx
Line Detection using Hough transform .pptxLine Detection using Hough transform .pptx
Line Detection using Hough transform .pptxshubham loni
 
image segmentation by ppres.pptx
image segmentation by ppres.pptximage segmentation by ppres.pptx
image segmentation by ppres.pptxmohan134666
 
Spatial Filtering in intro image processingr
Spatial Filtering in intro image processingrSpatial Filtering in intro image processingr
Spatial Filtering in intro image processingrkumarankit06875
 
Fuzzy Logic Based Edge Detection
Fuzzy Logic Based Edge DetectionFuzzy Logic Based Edge Detection
Fuzzy Logic Based Edge DetectionDawn Raider Gupta
 
Various object detection and tracking methods
Various object detection and tracking methodsVarious object detection and tracking methods
Various object detection and tracking methodssujeeshkumarj
 
09 cie552 image_featuresi
09 cie552 image_featuresi09 cie552 image_featuresi
09 cie552 image_featuresiElsayed Hemayed
 
Image segmentation for high resolution images
Image segmentation for high resolution imagesImage segmentation for high resolution images
Image segmentation for high resolution imagesjeet patalia
 
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTIONEDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTIONcscpconf
 
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTIONEDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTIONcsitconf
 
edge Linking dip.pptx
  edge Linking dip.pptx  edge Linking dip.pptx
edge Linking dip.pptxMruthyunjayaS
 
Visible surface determination
Visible  surface determinationVisible  surface determination
Visible surface determinationPatel Punit
 
Performance of Efficient Closed-Form Solution to Comprehensive Frontier Exposure
Performance of Efficient Closed-Form Solution to Comprehensive Frontier ExposurePerformance of Efficient Closed-Form Solution to Comprehensive Frontier Exposure
Performance of Efficient Closed-Form Solution to Comprehensive Frontier Exposureiosrjce
 

Similar to Chapter10 image segmentation (20)

image segmentation image segmentation.pptx
image segmentation image segmentation.pptximage segmentation image segmentation.pptx
image segmentation image segmentation.pptx
 
Module-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdfModule-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdf
 
Open GL T0074 56 sm3
Open GL T0074 56 sm3Open GL T0074 56 sm3
Open GL T0074 56 sm3
 
Edge detection
Edge detectionEdge detection
Edge detection
 
Line Detection using Hough transform .pptx
Line Detection using Hough transform .pptxLine Detection using Hough transform .pptx
Line Detection using Hough transform .pptx
 
image segmentation by ppres.pptx
image segmentation by ppres.pptximage segmentation by ppres.pptx
image segmentation by ppres.pptx
 
Spatial Filtering in intro image processingr
Spatial Filtering in intro image processingrSpatial Filtering in intro image processingr
Spatial Filtering in intro image processingr
 
Fuzzy Logic Based Edge Detection
Fuzzy Logic Based Edge DetectionFuzzy Logic Based Edge Detection
Fuzzy Logic Based Edge Detection
 
Mk slides.ppt
Mk slides.pptMk slides.ppt
Mk slides.ppt
 
2. filtering basics
2. filtering basics2. filtering basics
2. filtering basics
 
Various object detection and tracking methods
Various object detection and tracking methodsVarious object detection and tracking methods
Various object detection and tracking methods
 
09 cie552 image_featuresi
09 cie552 image_featuresi09 cie552 image_featuresi
09 cie552 image_featuresi
 
Image segmentation for high resolution images
Image segmentation for high resolution imagesImage segmentation for high resolution images
Image segmentation for high resolution images
 
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTIONEDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
 
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTIONEDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
 
cv1.ppt
cv1.pptcv1.ppt
cv1.ppt
 
edge Linking dip.pptx
  edge Linking dip.pptx  edge Linking dip.pptx
edge Linking dip.pptx
 
EDGE DETECTION
EDGE DETECTIONEDGE DETECTION
EDGE DETECTION
 
Visible surface determination
Visible  surface determinationVisible  surface determination
Visible surface determination
 
Performance of Efficient Closed-Form Solution to Comprehensive Frontier Exposure
Performance of Efficient Closed-Form Solution to Comprehensive Frontier ExposurePerformance of Efficient Closed-Form Solution to Comprehensive Frontier Exposure
Performance of Efficient Closed-Form Solution to Comprehensive Frontier Exposure
 

More from asodariyabhavesh

wirelessSlidesCh04 (2).ppt
wirelessSlidesCh04 (2).pptwirelessSlidesCh04 (2).ppt
wirelessSlidesCh04 (2).pptasodariyabhavesh
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processingasodariyabhavesh
 
Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processingasodariyabhavesh
 
Arm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furberArm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furberasodariyabhavesh
 
Introduction of digital communication
Introduction of digital communicationIntroduction of digital communication
Introduction of digital communicationasodariyabhavesh
 

More from asodariyabhavesh (6)

wirelessSlidesCh04 (2).ppt
wirelessSlidesCh04 (2).pptwirelessSlidesCh04 (2).ppt
wirelessSlidesCh04 (2).ppt
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processing
 
Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processing
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Arm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furberArm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furber
 
Introduction of digital communication
Introduction of digital communicationIntroduction of digital communication
Introduction of digital communication
 

Recently uploaded

High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
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
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 

Recently uploaded (20)

High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
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
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 

Chapter10 image segmentation

  • 1. Image Segmentation Subject: FIP (181102) Prof. Asodariya Bhavesh ECD,SSASIT, Surat
  • 2. Image Segmentation • 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 992211 ... i ii zwzwzwzwR
  • 4. Detection of Discontinuities Point Detection thresholdenonnegativa:where T TR ≥
  • 5. Detection of Discontinuities 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°).
  • 12. Detection of Discontinuities Gradient Operators • First-order derivatives: – The gradient of an image f(x,y) at location (x,y) is defined as the vector: – The magnitude of this vector: – The direction of this vector: – It points in the direction of the greatest rate of change of f at location (x,y)         =      =∇ ∂ ∂ ∂ ∂ y f x f y x G G f [ ] 2 1 22 )(mag yx GGf +=∇=∇ f         = − y x G G yx 1 tan),(α
  • 14. Detection of Discontinuities Gradient Operators Roberts cross-gradient operators Prewitt operators Sobel operators
  • 15. Detection of Discontinuities Gradient Operators Prewitt masks for detecting diagonal edges Sobel masks for detecting diagonal edges
  • 16. yx GGf +≈∇ Detection of Discontinuities Gradient Operators: Example
  • 20. Detection of Discontinuities Gradient Operators • Second-order derivatives: (The Laplacian) – The Laplacian of an 2D function f(x,y) is defined as – Two forms in practice: 2 2 2 2 2 y f x f f ∂ ∂ + ∂ ∂ =∇
  • 21. More Advanced Techniques for Edge Detection Marr-Hildreth edge detector Marr and Hildreth argued that 1) Intensity changes are dependent of image scale and so their detection requires the use of operators different sizes and 2) That a sudden intensity change will give rise to a peak or trough in the first derivative or, equivalently, to zero crossing in the second derivative. Two salient feature: 1)It should be differential operator capable of computing first or second order derivatives at every point in an image 2)It should be capable of being tuned to act at any desired scale, so that large operator can be used to detect blurry edges and small operators to detect sharply focused fine detail
  • 22. • Consider the function: • The Laplacian of h is • The Laplacian of a Gaussian sometimes is called the Mexican hat function. It also can be computed by smoothing the image with the Gaussian smoothing mask, followed by application of the Laplacian mask. deviationstandardthe:and where)( 2222 2 2 σ σ yxrerh r +=−= − 2 2 2 4 22 2 )( σ σ σ r e r rh −       − −=∇ The Laplacian of a Gaussian (LoG) A Gaussian function More Advanced Techniques for Edge Detection
  • 23. • Marr-Hildreth edge detector • Marr and Hildreth argued that the most satisfactory operator fulfilling these conditions is the filter ∇2 G where, ∇2 is the Laplacian operator, and G is the 2-D Gaussian function (LoG)GaussionaofLaplaciancalledisexpressionThis 2 ),( 11 ),( ),( ),(),( ),( ),( 2 22 2 22 2 22 2 22 2 22 2 22 2 4 222 2 2 24 2 2 24 2 2 2 2 2 2 2 2 2 2 2 2 2 σ σσ σσ σ σ σ σσσσ σσ yx yxyx yxyx yx e yx yxG e y e x yxG e y y e x x yxG y yxG x yxG yxG eyxG + − + − + − + − + − + −       −+ =∇       −+      −=∇         − ∂ ∂ +         − ∂ ∂ =∇ ∂ ∂ + ∂ ∂ =∇ = More Advanced Techniques for Edge Detection
  • 24. More Advanced Techniques for Edge Detection
  • 25. Detection of Discontinuities Gradient Operators: Example Sobel gradient Laplacian maskGaussian smooth function
  • 28. Hough Transforms Hough Transforms takes the images created by the edge detection operators Most of the time, the edge map generated by the edge detection algorithms is disconnected HT can be used to connect the disjointed edge points It is used to fit the points as plane curves Plane curves are lines, circles, and parabolas The line equation is y = mx + c However, the problem is that there are infinite line passing through one points Therefore, an edge point in an x-y plane is transformed to a c-m plane Now equation of line is c = (-x)m + y
  • 29. Hough Transforms All the edge points in the x-y plane need to be fitted All the points are transformed in c-m plane The objective is to find the intersection point A common intersection point indicates that the edges points which are part of the line If A and B are the points connected by a line in the spatial domain, then they will be intersecting lines in the Hough Space (c-m plane) To check whether they are intersecting lines, the c-m plane is partitioned as accumulator lines To find this, it can be assumed that the c-m plane can be partitioned as an accumulator array For every edge point (x,y), the corresponding accumulator element is incremented in the accumulator array At the end of this process, the accumulator values are checked Significance is that this point gives us the line equation of the (x,y) space
  • 30. Hough Transforms Hough Transform steps: 1)Load the image 2)Find the edges of the image using any edge detector 3)Quantize the parameter space P 4)Repeat the following for all the pixels of the image: if the pixel is an edge pixel, then (a) c = (-x)m + y or calculate ρ (b) P(c,m) = P(c,m) + 1 or increment position in P 5)Show the Hough Space 6)Find the local maxima in the parameter space 7)Draw the line using the local maxima The major problem with this algorithm is that it does not work for vertical lines, as they have a slope of infinity Convert line into polar coordinates ρ = x cosӨ + ysinӨ, where Ө is the angle between the line and x-axis, and ρ is the diameter
  • 31. Edge Linking and Boundary Detection Global Processing via the Hough Transform • Hough transform: a way of finding edge points in an image that lie along a straight line. • Example: xy-plane v.s. ab-plane (parameter space) baxy ii +=
  • 32. Edge Linking and Boundary Detection Global Processing via the Hough Transform • The Hough transform consists of finding all pairs of values of θ and ρ which satisfy the equations that pass through (x,y). • These are accumulated in what is basically a 2-dimensional histogram. • When plotted these pairs of θ and ρ will look like a sine wave. The process is repeated for all appropriate (x,y) locations. ρθθ =+ sincos yx
  • 33. Edge Linking and Boundary Detection Hough Transform Example The intersection of the curves corresponding to points 1,3,5 2,3,4 1,4
  • 34.
  • 35. Edge Linking and Boundary Detection Hough Transform Example
  • 36. Thresholding • Assumption: the range of intensity levels covered by objects of interest is different from the background.    ≤ > = Tyxf Tyxf yxg ),(if0 ),(if1 ),( Single threshold Multiple threshold
  • 37. Thresholding The Role of Illumination
  • 38. Thresholding The Role of Illumination (a) (c) (e)(d) ),(),(),( yxryxiyxf = ),( yxi),( yxr
  • 44. Thresholding Optimal Global and Adaptive Thresholding • This method treats pixel values as probability density functions. • The goal of this method is to minimize the probability of misclassifying pixels as either object or background. • There are two kinds of error: – mislabeling an object pixel as background, and – mislabeling a background pixel as object.
  • 45. Thresholding Use of Boundary Characteristics
  • 46. Thresholding Thresholds Based on Several Variables Color image
  • 47. 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.
  • 48. Region-Based Segmentation 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 Rkhave the same gray level. RRi n i =∪ =1 (a) jijiRR ji ≠=∩ ,andallfor(c) φ niRi ,...,2,1region,connectedais(b) = niRP i ,...,2,1forTRUE)((d) == jiji RRRRP andregionsadjacentanyforFALSE)((e) =∪
  • 49. Region Growing • Thresholding still produces isolated image • Region growing algorithms works on principle of similarity • It states that a region is coherent if all the pixels of that region are homogeneous with respect to some characteristics such as colour, intensity, texture, or other statistical properties • Thus idea is to pick a pixel inside a region of interest as a starting point (also known as a seed point) and allowing it to grow • Seed point is compared with its neighbours, and if the properties match , they are merged together • This process is repeated till the regions converge to an extent that no further merging is possible
  • 50. Region Growing Algorithm • It is a process of grouping the pixels or subregions to get a bigger region present in an image •Selection of the initial seed: Initial seed that represent the ROI should be given typically by the user. Can be chosen automatically. The seeds can be either single or multiple •Seed growing criteria: Similarity criterion denotes the minimum difference in the grey levels or the average of the set of pixels. Thus, the initial seed ‘grows’ by adding the neighbours if they share the same properties as the initial seed •Terminate process: If further growing is not possible then terminate region growing process
  • 51. Region Growing Algorithm • Consider image shown in figure: •Assume seed point indicated by underlines. Let the seed pixels 1 and 9 represent the regions C and D, respectively •Subtract pixel from seed value •If the difference is less than or equal to 4 (i.e. T=4), merge the pixel with that region. Otherwise, merge the pixel with the other region.
  • 52. Split and Merge Algorithm • Region growing algorithm is slow • So seed point can be extended to a seed region • Instead of a single pixel, a node of a Regional adjacency graph (RAG) a region itself is now considered as a starting point. • The split process can be stated as follows: 1)Segment the image into regions R1, R2,….Rn using a set of thresholds 2)Create RAG. Use a similarity measure and formulate a homogeneity test 3)The homogeneity test is designed based on the similarity criteria such as intensity or any image statistics 4)Repeat step 3 until no further region exits that requires merging
  • 53. Split and Merge Algorithm • 8 8 8 8 8 8
  • 55. Region-Based Segmentation Region Growing • Fig. 10.41 shows the histogram of Fig. 10.40 (a). It is difficult to segment the defects by thresholding methods. (Applying region growing methods are better in this case.) Figure 10.41Figure 10.40(a)
  • 56. Split and Merge using Quadtree • Entire image is assumed as a single region. Then the homogeneity test is applied. If the conditions are not met, then the regions are split into four quadrants. • This process is repeated for each quadrant until all the regions meet the required homogeneity criteria. If the regions are too small, then the division process is stopped. •1) Split and continue the subdivision process until some stopping criteria is fulfilled. The stopping criteria often occur at a stage where no further splitting is possible. •2) Merge adjacent regions if the regions share any common criteria. Stop the process when no further merging is possible
  • 57. Region-Based Segmentation 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.
  • 58. Region-Based Segmentation Region Splitting • 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.
  • 59. Region-Based Segmentation 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(RjURk) = TRUE. (the quadtree structure may not be preserved) – Stop when no further merging or splitting is possible.