SlideShare a Scribd company logo
1 of 46
Download to read offline
Image Processing (KCS-062):
Unit-4: Image Segmentation
Dr. Radhey Shyam
Professor
Department of Computer Science and Engineering
BIET Lucknow
(Affiliated to Dr. A.P.J. Abdul Kalam Technical University (APJAKTU) Lucknow)
Unit-4has been written/prepared by Dr. Radhey Shyam, with grateful acknowledgement of others who
made their course contents freely available. Feel free to use this study material for your own academic
purposes. For any query, the communication can be made through my mail shyam0058@gmail.com.
Course Outcome of Unit-4, the students will be able to explain the basic concepts of Image Segmentation.
Date: June 22, 2021
93
C. Nikou – Digital Image Processing
Morphological Watersheds
• Visualize an image topographically in 3D
– The two spatial coordinates and the intensity (relief
representation).
• Three types of points
– Points belonging to a regional minimum.
– Points ta which a drop of water would fall certainly to
a regional minimum (catchment basin).
– Points at which the water would be equally likely to
fall to more than one regional minimum (crest lines
or watershed lines).
• Objective: find the watershed lines.
94
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
Image • Topographic representation.
• The height is proportional to
the image intensity.
• Backsides of structures are
shaded for better visualization.
95
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• A hole is punched in each regional minimum and the topography is
flooded by water from below through the holes.
• When the rising water is about to merge in catchment basins, a dam is
built to prevent merging.
• There will be a stage where only the tops of the dams will be visible.
• These continuous and connected boundaries are the result of the
segmentation.
96
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• Topographic representation of the image.
• A hole is punched in each regional minimum (dark
areas) and the topography is flooded by water (at
equal rate) from below through the holes.
Regional
minima
97
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• Before flooding.
• To prevent water from spilling through the image
borders, we consider that the image is surrounded
by dams of height greater than the maximum image
intensity.
98
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• First stage of flooding.
• The water covered areas corresponding to the dark
background.
99
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• Next stages of flooding.
• The water has risen into the other catchment basin.
100
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• Further flooding. The water has risen into the third
catchment basin.
101
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• Further flooding.
• The water from the left basin overflowed into the
right basin.
• A short dam is constructed to prevent water from
merging.
Short dam
102
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• Further flooding.
• The effect is more pronounced.
• The first dam is now longer.
• New dams are created.
Longer dam New dams
103
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• The process continues until the maximum level of flooding is
reached.
• The final dams correspond to the watershed lines which is
the result of the segmentation.
• Important: continuous segment boundaries.
Final watershed lines
superimposed on the
image.
104
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• Dams are constructed by morphological dilation.
Flooding step n-1.
Regional minima: M1 and M2.
Catchment basins associated: Cn-1(M1) and Cn-1(M2).
Cn-1(M1) Cn-1(M2)
1 1 1 2
[ 1] ( ) ( )
n n
C n C M C M
 
  
C[n-1] has two connected components.
105
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
Flooding step n-1. Flooding step n.
Cn-1(M1) Cn-1(M2)
• If we continue flooding, then we will have one connected
component.
• This indicates that a dam must be constructed.
• Let q be the merged connected component if we perform
flooding a step n.
q
106
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• Each of the connected components is dilated by
the SE shown, subject to:
1. The center of the SE has to be contained in q.
2. The dilation cannot be performed on points that
would cause the sets being dilated to merge.
q
107
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• In the first dilation, condition 1 was satisfied by every
point and condition 2 did not apply to any point.
• In the second dilation, several points failed condition 1
while meeting condition 2 (the points in the perimeter
which is broken).
Conditions
1. Center of SE in q.
2. No dilation if merging.
108
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• The only points in q that satisfied both conditions form
the 1-pixel thick path.
• This is the dam at step n of the flooding process.
• The points should satisfy both conditions.
Conditions
1. Center of SE in q.
2. No dilation if merging.
109
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• A common application
is the extraction of
nearly uniform, blob-
like objects from their
background.
• For this reason it is
generally applied to the
gradient of the image
and the catchment
basins correspond to
the blob like objects.
Image Gradient magnitude
Watersheds Watersheds
on the image
110
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• Noise and local minima lead generally to oversegmentation.
• The result is not useful.
• Solution: limit the number of allowable regions by additional
knowledge.
111
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• Markers (connected components):
– internal, associated with the objects
– external, associated with the background.
• Here the problem is the large number of local
minima.
• Smoothing may eliminate them.
• Define an internal marker (after smoothing):
• Region surrounded by points of higher
altitude.
– They form connected components.
– All points in the connected component have the
same intensity.
112
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• After smoothing, the internal markers are shown in light gray.
• The watershed algorithm is applied and the internal markers
are the only allowable regional minima.
• The resulting watersheds are the external markers (shown in
white).
113
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
• Each region defined by the external marker has a single internal marker
and part of the background.
• The problem is to segment each of these regions into two segments: a
single object and background.
• The algorithms we saw in this lecture may be used (including watersheds
applied to each individual region).
114
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
Final segmentation.
115
C. Nikou – Digital Image Processing
Morphological Watersheds (cont.)
Image Watersheds Watersheds with markers

More Related Content

Similar to Ip unit 4 modified on 22.06.21

Carved visual hulls for image based modeling
Carved visual hulls for image based modelingCarved visual hulls for image based modeling
Carved visual hulls for image based modelingaftab alam
 
De-convolution on Digital Images
De-convolution on Digital ImagesDe-convolution on Digital Images
De-convolution on Digital ImagesMd. Shohel Rana
 
Stixel based real time object detection for ADAS using surface normal
Stixel based real time object detection for ADAS using surface normalStixel based real time object detection for ADAS using surface normal
Stixel based real time object detection for ADAS using surface normalTaeKang Woo
 
NUMBER PLATE IMAGE DETECTION FOR FAST MOTION VEHICLES USING BLUR KERNEL ESTIM...
NUMBER PLATE IMAGE DETECTION FOR FAST MOTION VEHICLES USING BLUR KERNEL ESTIM...NUMBER PLATE IMAGE DETECTION FOR FAST MOTION VEHICLES USING BLUR KERNEL ESTIM...
NUMBER PLATE IMAGE DETECTION FOR FAST MOTION VEHICLES USING BLUR KERNEL ESTIM...paperpublications3
 
Convolutional Neural Network for pixel-wise skyline detection
Convolutional Neural Network for pixel-wise skyline detectionConvolutional Neural Network for pixel-wise skyline detection
Convolutional Neural Network for pixel-wise skyline detectionDarian Frajberg
 
Novel DCT based watermarking scheme for digital images
Novel DCT based watermarking scheme for digital imagesNovel DCT based watermarking scheme for digital images
Novel DCT based watermarking scheme for digital imagesIDES Editor
 
4.Do& Martion- Contourlet transform (Backup side-4)
4.Do& Martion- Contourlet transform (Backup side-4)4.Do& Martion- Contourlet transform (Backup side-4)
4.Do& Martion- Contourlet transform (Backup side-4)Nashid Alam
 
Handwritten Digit Recognition and performance of various modelsation[autosaved]
Handwritten Digit Recognition and performance of various modelsation[autosaved]Handwritten Digit Recognition and performance of various modelsation[autosaved]
Handwritten Digit Recognition and performance of various modelsation[autosaved]SubhradeepMaji
 
Deep Learning Approach in Characterizing Salt Body on Seismic Images - by Zhe...
Deep Learning Approach in Characterizing Salt Body on Seismic Images - by Zhe...Deep Learning Approach in Characterizing Salt Body on Seismic Images - by Zhe...
Deep Learning Approach in Characterizing Salt Body on Seismic Images - by Zhe...Yan Xu
 
Crack Detection of Wall Using MATLAB
Crack Detection of Wall Using MATLABCrack Detection of Wall Using MATLAB
Crack Detection of Wall Using MATLABvivatechijri
 
Fisheye Omnidirectional View in Autonomous Driving II
Fisheye Omnidirectional View in Autonomous Driving IIFisheye Omnidirectional View in Autonomous Driving II
Fisheye Omnidirectional View in Autonomous Driving IIYu Huang
 
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...Hemantha Kulathilake
 
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision Group
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision GroupDTAM: Dense Tracking and Mapping in Real-Time, Robot vision Group
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision GroupLihang Li
 
Introduction to computer vision
Introduction to computer visionIntroduction to computer vision
Introduction to computer visionMarcin Jedyk
 
Remote Sensing Sattelite image Digital Image Analysis.pptx
Remote Sensing Sattelite image Digital Image Analysis.pptxRemote Sensing Sattelite image Digital Image Analysis.pptx
Remote Sensing Sattelite image Digital Image Analysis.pptxhabtamuawulachew1
 

Similar to Ip unit 4 modified on 22.06.21 (20)

Segmentation Techniques -II
Segmentation Techniques -IISegmentation Techniques -II
Segmentation Techniques -II
 
Carved visual hulls for image based modeling
Carved visual hulls for image based modelingCarved visual hulls for image based modeling
Carved visual hulls for image based modeling
 
De-convolution on Digital Images
De-convolution on Digital ImagesDe-convolution on Digital Images
De-convolution on Digital Images
 
Stixel based real time object detection for ADAS using surface normal
Stixel based real time object detection for ADAS using surface normalStixel based real time object detection for ADAS using surface normal
Stixel based real time object detection for ADAS using surface normal
 
NUMBER PLATE IMAGE DETECTION FOR FAST MOTION VEHICLES USING BLUR KERNEL ESTIM...
NUMBER PLATE IMAGE DETECTION FOR FAST MOTION VEHICLES USING BLUR KERNEL ESTIM...NUMBER PLATE IMAGE DETECTION FOR FAST MOTION VEHICLES USING BLUR KERNEL ESTIM...
NUMBER PLATE IMAGE DETECTION FOR FAST MOTION VEHICLES USING BLUR KERNEL ESTIM...
 
Convolutional Neural Network for pixel-wise skyline detection
Convolutional Neural Network for pixel-wise skyline detectionConvolutional Neural Network for pixel-wise skyline detection
Convolutional Neural Network for pixel-wise skyline detection
 
Novel DCT based watermarking scheme for digital images
Novel DCT based watermarking scheme for digital imagesNovel DCT based watermarking scheme for digital images
Novel DCT based watermarking scheme for digital images
 
4.Do& Martion- Contourlet transform (Backup side-4)
4.Do& Martion- Contourlet transform (Backup side-4)4.Do& Martion- Contourlet transform (Backup side-4)
4.Do& Martion- Contourlet transform (Backup side-4)
 
Tele immersion
Tele immersionTele immersion
Tele immersion
 
Handwritten Digit Recognition and performance of various modelsation[autosaved]
Handwritten Digit Recognition and performance of various modelsation[autosaved]Handwritten Digit Recognition and performance of various modelsation[autosaved]
Handwritten Digit Recognition and performance of various modelsation[autosaved]
 
Deep Learning Approach in Characterizing Salt Body on Seismic Images - by Zhe...
Deep Learning Approach in Characterizing Salt Body on Seismic Images - by Zhe...Deep Learning Approach in Characterizing Salt Body on Seismic Images - by Zhe...
Deep Learning Approach in Characterizing Salt Body on Seismic Images - by Zhe...
 
Crack Detection of Wall Using MATLAB
Crack Detection of Wall Using MATLABCrack Detection of Wall Using MATLAB
Crack Detection of Wall Using MATLAB
 
presentation.ppt
presentation.pptpresentation.ppt
presentation.ppt
 
G04654247
G04654247G04654247
G04654247
 
Fisheye Omnidirectional View in Autonomous Driving II
Fisheye Omnidirectional View in Autonomous Driving IIFisheye Omnidirectional View in Autonomous Driving II
Fisheye Omnidirectional View in Autonomous Driving II
 
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...
 
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision Group
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision GroupDTAM: Dense Tracking and Mapping in Real-Time, Robot vision Group
DTAM: Dense Tracking and Mapping in Real-Time, Robot vision Group
 
3d scanning pipeline
3d scanning pipeline3d scanning pipeline
3d scanning pipeline
 
Introduction to computer vision
Introduction to computer visionIntroduction to computer vision
Introduction to computer vision
 
Remote Sensing Sattelite image Digital Image Analysis.pptx
Remote Sensing Sattelite image Digital Image Analysis.pptxRemote Sensing Sattelite image Digital Image Analysis.pptx
Remote Sensing Sattelite image Digital Image Analysis.pptx
 

More from Dr. Radhey Shyam

KIT-601-L-UNIT-1 (Revised) Introduction to Data Analytcs.pdf
KIT-601-L-UNIT-1 (Revised) Introduction to Data Analytcs.pdfKIT-601-L-UNIT-1 (Revised) Introduction to Data Analytcs.pdf
KIT-601-L-UNIT-1 (Revised) Introduction to Data Analytcs.pdfDr. Radhey Shyam
 
SE-UNIT-3-II-Software metrics, numerical and their solutions.pdf
SE-UNIT-3-II-Software metrics, numerical and their solutions.pdfSE-UNIT-3-II-Software metrics, numerical and their solutions.pdf
SE-UNIT-3-II-Software metrics, numerical and their solutions.pdfDr. Radhey Shyam
 
Introduction to Data Analytics and data analytics life cycle
Introduction to Data Analytics and data analytics life cycleIntroduction to Data Analytics and data analytics life cycle
Introduction to Data Analytics and data analytics life cycleDr. Radhey Shyam
 
KIT-601 Lecture Notes-UNIT-2.pdf
KIT-601 Lecture Notes-UNIT-2.pdfKIT-601 Lecture Notes-UNIT-2.pdf
KIT-601 Lecture Notes-UNIT-2.pdfDr. Radhey Shyam
 
KIT-601 Lecture Notes-UNIT-1.pdf
KIT-601 Lecture Notes-UNIT-1.pdfKIT-601 Lecture Notes-UNIT-1.pdf
KIT-601 Lecture Notes-UNIT-1.pdfDr. Radhey Shyam
 
Deep-Learning-2017-Lecture5CNN.pptx
Deep-Learning-2017-Lecture5CNN.pptxDeep-Learning-2017-Lecture5CNN.pptx
Deep-Learning-2017-Lecture5CNN.pptxDr. Radhey Shyam
 
SE UNIT-3 (Software metrics).pdf
SE UNIT-3 (Software metrics).pdfSE UNIT-3 (Software metrics).pdf
SE UNIT-3 (Software metrics).pdfDr. Radhey Shyam
 
Ip unit 3 modified of 26.06.2021
Ip unit 3 modified of 26.06.2021Ip unit 3 modified of 26.06.2021
Ip unit 3 modified of 26.06.2021Dr. Radhey Shyam
 
Ip unit 2 modified on 8.6.2021
Ip unit 2 modified on 8.6.2021Ip unit 2 modified on 8.6.2021
Ip unit 2 modified on 8.6.2021Dr. Radhey Shyam
 

More from Dr. Radhey Shyam (20)

KIT-601-L-UNIT-1 (Revised) Introduction to Data Analytcs.pdf
KIT-601-L-UNIT-1 (Revised) Introduction to Data Analytcs.pdfKIT-601-L-UNIT-1 (Revised) Introduction to Data Analytcs.pdf
KIT-601-L-UNIT-1 (Revised) Introduction to Data Analytcs.pdf
 
SE-UNIT-3-II-Software metrics, numerical and their solutions.pdf
SE-UNIT-3-II-Software metrics, numerical and their solutions.pdfSE-UNIT-3-II-Software metrics, numerical and their solutions.pdf
SE-UNIT-3-II-Software metrics, numerical and their solutions.pdf
 
Introduction to Data Analytics and data analytics life cycle
Introduction to Data Analytics and data analytics life cycleIntroduction to Data Analytics and data analytics life cycle
Introduction to Data Analytics and data analytics life cycle
 
KCS-501-3.pdf
KCS-501-3.pdfKCS-501-3.pdf
KCS-501-3.pdf
 
KIT-601 Lecture Notes-UNIT-2.pdf
KIT-601 Lecture Notes-UNIT-2.pdfKIT-601 Lecture Notes-UNIT-2.pdf
KIT-601 Lecture Notes-UNIT-2.pdf
 
KIT-601 Lecture Notes-UNIT-1.pdf
KIT-601 Lecture Notes-UNIT-1.pdfKIT-601 Lecture Notes-UNIT-1.pdf
KIT-601 Lecture Notes-UNIT-1.pdf
 
KCS-055 U5.pdf
KCS-055 U5.pdfKCS-055 U5.pdf
KCS-055 U5.pdf
 
KCS-055 MLT U4.pdf
KCS-055 MLT U4.pdfKCS-055 MLT U4.pdf
KCS-055 MLT U4.pdf
 
Deep-Learning-2017-Lecture5CNN.pptx
Deep-Learning-2017-Lecture5CNN.pptxDeep-Learning-2017-Lecture5CNN.pptx
Deep-Learning-2017-Lecture5CNN.pptx
 
SE UNIT-3 (Software metrics).pdf
SE UNIT-3 (Software metrics).pdfSE UNIT-3 (Software metrics).pdf
SE UNIT-3 (Software metrics).pdf
 
SE UNIT-2.pdf
SE UNIT-2.pdfSE UNIT-2.pdf
SE UNIT-2.pdf
 
SE UNIT-1 Revised.pdf
SE UNIT-1 Revised.pdfSE UNIT-1 Revised.pdf
SE UNIT-1 Revised.pdf
 
SE UNIT-3.pdf
SE UNIT-3.pdfSE UNIT-3.pdf
SE UNIT-3.pdf
 
Ip unit 5
Ip unit 5Ip unit 5
Ip unit 5
 
Ip unit 3 modified of 26.06.2021
Ip unit 3 modified of 26.06.2021Ip unit 3 modified of 26.06.2021
Ip unit 3 modified of 26.06.2021
 
Ip unit 2 modified on 8.6.2021
Ip unit 2 modified on 8.6.2021Ip unit 2 modified on 8.6.2021
Ip unit 2 modified on 8.6.2021
 
Ip unit 1
Ip unit 1Ip unit 1
Ip unit 1
 
Cc unit 5
Cc unit 5Cc unit 5
Cc unit 5
 
Cc unit 4 updated version
Cc unit 4 updated versionCc unit 4 updated version
Cc unit 4 updated version
 
Cc unit 3 updated version
Cc unit 3 updated versionCc unit 3 updated version
Cc unit 3 updated version
 

Recently uploaded

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
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
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
(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
 
(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
 
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
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
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
 
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
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
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)

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
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
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
(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...
 
(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...
 
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
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
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...
 
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
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
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, ...
 

Ip unit 4 modified on 22.06.21

  • 1. Image Processing (KCS-062): Unit-4: Image Segmentation Dr. Radhey Shyam Professor Department of Computer Science and Engineering BIET Lucknow (Affiliated to Dr. A.P.J. Abdul Kalam Technical University (APJAKTU) Lucknow) Unit-4has been written/prepared by Dr. Radhey Shyam, with grateful acknowledgement of others who made their course contents freely available. Feel free to use this study material for your own academic purposes. For any query, the communication can be made through my mail shyam0058@gmail.com. Course Outcome of Unit-4, the students will be able to explain the basic concepts of Image Segmentation. Date: June 22, 2021
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24. 93 C. Nikou – Digital Image Processing Morphological Watersheds • Visualize an image topographically in 3D – The two spatial coordinates and the intensity (relief representation). • Three types of points – Points belonging to a regional minimum. – Points ta which a drop of water would fall certainly to a regional minimum (catchment basin). – Points at which the water would be equally likely to fall to more than one regional minimum (crest lines or watershed lines). • Objective: find the watershed lines.
  • 25. 94 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) Image • Topographic representation. • The height is proportional to the image intensity. • Backsides of structures are shaded for better visualization.
  • 26. 95 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • A hole is punched in each regional minimum and the topography is flooded by water from below through the holes. • When the rising water is about to merge in catchment basins, a dam is built to prevent merging. • There will be a stage where only the tops of the dams will be visible. • These continuous and connected boundaries are the result of the segmentation.
  • 27. 96 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • Topographic representation of the image. • A hole is punched in each regional minimum (dark areas) and the topography is flooded by water (at equal rate) from below through the holes. Regional minima
  • 28. 97 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • Before flooding. • To prevent water from spilling through the image borders, we consider that the image is surrounded by dams of height greater than the maximum image intensity.
  • 29. 98 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • First stage of flooding. • The water covered areas corresponding to the dark background.
  • 30. 99 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • Next stages of flooding. • The water has risen into the other catchment basin.
  • 31. 100 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • Further flooding. The water has risen into the third catchment basin.
  • 32. 101 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • Further flooding. • The water from the left basin overflowed into the right basin. • A short dam is constructed to prevent water from merging. Short dam
  • 33. 102 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • Further flooding. • The effect is more pronounced. • The first dam is now longer. • New dams are created. Longer dam New dams
  • 34. 103 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • The process continues until the maximum level of flooding is reached. • The final dams correspond to the watershed lines which is the result of the segmentation. • Important: continuous segment boundaries. Final watershed lines superimposed on the image.
  • 35. 104 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • Dams are constructed by morphological dilation. Flooding step n-1. Regional minima: M1 and M2. Catchment basins associated: Cn-1(M1) and Cn-1(M2). Cn-1(M1) Cn-1(M2) 1 1 1 2 [ 1] ( ) ( ) n n C n C M C M      C[n-1] has two connected components.
  • 36. 105 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) Flooding step n-1. Flooding step n. Cn-1(M1) Cn-1(M2) • If we continue flooding, then we will have one connected component. • This indicates that a dam must be constructed. • Let q be the merged connected component if we perform flooding a step n. q
  • 37. 106 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • Each of the connected components is dilated by the SE shown, subject to: 1. The center of the SE has to be contained in q. 2. The dilation cannot be performed on points that would cause the sets being dilated to merge. q
  • 38. 107 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • In the first dilation, condition 1 was satisfied by every point and condition 2 did not apply to any point. • In the second dilation, several points failed condition 1 while meeting condition 2 (the points in the perimeter which is broken). Conditions 1. Center of SE in q. 2. No dilation if merging.
  • 39. 108 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • The only points in q that satisfied both conditions form the 1-pixel thick path. • This is the dam at step n of the flooding process. • The points should satisfy both conditions. Conditions 1. Center of SE in q. 2. No dilation if merging.
  • 40. 109 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • A common application is the extraction of nearly uniform, blob- like objects from their background. • For this reason it is generally applied to the gradient of the image and the catchment basins correspond to the blob like objects. Image Gradient magnitude Watersheds Watersheds on the image
  • 41. 110 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • Noise and local minima lead generally to oversegmentation. • The result is not useful. • Solution: limit the number of allowable regions by additional knowledge.
  • 42. 111 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • Markers (connected components): – internal, associated with the objects – external, associated with the background. • Here the problem is the large number of local minima. • Smoothing may eliminate them. • Define an internal marker (after smoothing): • Region surrounded by points of higher altitude. – They form connected components. – All points in the connected component have the same intensity.
  • 43. 112 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • After smoothing, the internal markers are shown in light gray. • The watershed algorithm is applied and the internal markers are the only allowable regional minima. • The resulting watersheds are the external markers (shown in white).
  • 44. 113 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) • Each region defined by the external marker has a single internal marker and part of the background. • The problem is to segment each of these regions into two segments: a single object and background. • The algorithms we saw in this lecture may be used (including watersheds applied to each individual region).
  • 45. 114 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) Final segmentation.
  • 46. 115 C. Nikou – Digital Image Processing Morphological Watersheds (cont.) Image Watersheds Watersheds with markers