SlideShare uma empresa Scribd logo
1 de 46
Baixar para ler 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

Mais conteúdo relacionado

Semelhante a 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
 

Semelhante a 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
 

Mais de 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
 

Mais de 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
 

Último

Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfrs7054576148
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 

Último (20)

Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 

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