SlideShare a Scribd company logo
Image Segmentation
Bahadir K. Gunturk EE 7730 - Image Analysis I 2
Image Segmentation
 Group similar components (such as, pixels in an
image, image frames in a video) to obtain a compact
representation.
 Applications: Finding tumors, veins, etc. in medical
images, finding targets in satellite/aerial images,
finding people in surveillance images, summarizing
video, etc.
 Methods: Thresholding, K-means clustering, etc.
Bahadir K. Gunturk EE 7730 - Image Analysis I 3
Image Segmentation
 Segmentation algorithms for monochrome images
generally are based on one of two basic properties of gray-
scale values:
 Discontinuity
 The approach is to partition an image based on abrupt changes
in gray-scale levels.
 The principal areas of interest within this category are detection
of isolated points, lines, and edges in an image.
 Similarity
 The principal approaches in this category are based on
thresholding, region growing, and region splitting/merging.
Bahadir K. Gunturk EE 7730 - Image Analysis I 4
Thresholding
 Suppose that an image, f(x,y), is composed of light objects
on a dark backround, and the following figure is the
histogram of the image.
 Then, the objects can be extracted by comparing pixel
values with a threshold T.
Bahadir K. Gunturk EE 7730 - Image Analysis I 5
Thresholding
Bahadir K. Gunturk EE 7730 - Image Analysis I 6
Thresholding
Bahadir K. Gunturk EE 7730 - Image Analysis I 7
Thresholding
 It is also possible to extract objects that have a specific
intensity range using multiple thresholds.
Extension to color images is straightforward: There are three color
channels, in each one specify the intensity range of the object… Even if
objects are not separated in a single channel, they might be with all the
channels… Application example: Detecting/Tracking faces based on skin
color…
Bahadir K. Gunturk EE 7730 - Image Analysis I 8
Thresholding
 Non-uniform illumination may change the histogram in a
way that it becomes impossible to segment the image
using a single global threshold.
 Choosing local threshold values may help.
Bahadir K. Gunturk EE 7730 - Image Analysis I 9
Thresholding
Bahadir K. Gunturk EE 7730 - Image Analysis I 10
Thresholding
 Adaptive thresholding
Bahadir K. Gunturk EE 7730 - Image Analysis I 11
Thresholding
Almost constant
illumination
Separation of
objects…
Bahadir K. Gunturk EE 7730 - Image Analysis I 12
Region-Oriented Segmentation
 Region Growing
 Region growing is a procedure that groups pixels or
subregions into larger regions.
 The simplest of these approaches is pixel aggregation, which
starts with a set of “seed” points and from these grows
regions by appending to each seed points those neighboring
pixels that have similar properties (such as gray level, texture,
color, shape).
 Region growing based techniques are better than the edge-
based techniques in noisy images where edges are difficult to
detect.
Region Growing
Bahadir K. Gunturk EE 7730 - Image Analysis I 13
Bahadir K. Gunturk EE 7730 - Image Analysis I 14
Region-Oriented Segmentation
Bahadir K. Gunturk EE 7730 - Image Analysis I 15
Region-Oriented Segmentation
Bahadir K. Gunturk EE 7730 - Image Analysis I 16
Region-Oriented Segmentation
 Region Splitting
 Region growing starts from a set of seed points.
 An alternative is to start with the whole image as a single
region and subdivide the regions that do not satisfy a
condition of homogeneity.
 Region Merging
 Region merging is the opposite of region splitting.
 Start with small regions (e.g. 2x2 or 4x4 regions) and merge
the regions that have similar characteristics (such as gray
level, variance).
 Typically, splitting and merging approaches are used
iteratively.
Bahadir K. Gunturk EE 7730 - Image Analysis I 17
Region-Oriented Segmentation
Bahadir K. Gunturk EE 7730 - Image Analysis I 18
Watershed Segmentation Algorithm
 Visualize an image in 3D: spatial coordinates and gray levels.
 In such a topographic interpretation, there are 3 types of points:
 Points belonging to a regional minimum
 Points at which a drop of water would fall to a single minimum.
(The catchment basin or watershed of that minimum.)
 Points at which a drop of water would be equally likely to fall to more
than one minimum. (The divide lines or watershed lines.)
Watershed lines
Bahadir K. Gunturk EE 7730 - Image Analysis I 19
Watershed Segmentation Algorithm
 The objective is to find watershed lines.
 The idea is simple:
 Suppose that a hole is punched in each regional minimum and that the entire
topography is flooded from below by letting water rise through the holes at a
uniform rate.
 When rising water in distinct catchment basins is about the merge, a dam is
built to prevent merging. These dam boundaries correspond to the watershed
lines.
Bahadir K. Gunturk EE 7730 - Image Analysis I 20
Watershed Segmentation Algorithm
Bahadir K. Gunturk EE 7730 - Image Analysis I 21
 Start with all pixels with the lowest possible value.
 These form the basis for initial watersheds
 For each intensity level k:
 For each group of pixels of intensity k
 If adjacent to exactly one existing region, add these pixels to that
region
 Else if adjacent to more than one existing regions, mark as
boundary
 Else start a new region
Watershed Segmentation Algorithm
Bahadir K. Gunturk EE 7730 - Image Analysis I 22
Watershed Segmentation Algorithm
Watershed algorithm might be used on the gradient image instead of the
original image.
Bahadir K. Gunturk EE 7730 - Image Analysis I 23
Watershed Segmentation Algorithm
Due to noise and other local irregularities of the gradient, oversegmentation
might occur.
Bahadir K. Gunturk EE 7730 - Image Analysis I 24
Watershed Segmentation Algorithm
A solution is to limit the number of regional minima. Use markers to specify
the only allowed regional minima.
Bahadir K. Gunturk EE 7730 - Image Analysis I 25
Watershed Segmentation Algorithm
A solution is to limit the number of regional minima. Use markers to specify
the only allowed regional minima. (For example, gray-level values might be
used as a marker.)
26
 External markers:
 Points along the watershed
line along highest points.
 Internal markers:
(1) That is surrounded higher points .
(2) Points in region form a connected component
(3) All points in connected component have the same
intensity.
Markers
Bahadir K. Gunturk EE 7730 - Image Analysis I 27
Use of Motion In Segmentation
Take the difference between a reference image and a subsequent image to
determine the stationary elements and nonstationary image components.
Bahadir K. Gunturk EE 7730 - Image Analysis I 28
K-Means Clustering
1. Partition the data points into K clusters randomly. Find the
centroids of each cluster.
2. For each data point:
 Calculate the distance from the data point to each cluster.
 Assign the data point to the closest cluster.
3. Recompute the centroid of each cluster.
4. Repeat steps 2 and 3 until there is no further change in
the assignment of data points (or in the centroids).
Bahadir K. Gunturk EE 7730 - Image Analysis I 29
K-Means Clustering
Bahadir K. Gunturk EE 7730 - Image Analysis I 30
K-Means Clustering
Bahadir K. Gunturk EE 7730 - Image Analysis I 31
K-Means Clustering
Bahadir K. Gunturk EE 7730 - Image Analysis I 32
K-Means Clustering
Bahadir K. Gunturk EE 7730 - Image Analysis I 33
K-Means Clustering
Bahadir K. Gunturk EE 7730 - Image Analysis I 34
K-Means Clustering
Bahadir K. Gunturk EE 7730 - Image Analysis I 35
K-Means Clustering
Bahadir K. Gunturk EE 7730 - Image Analysis I 36
K-Means Clustering
Bahadir K. Gunturk EE 7730 - Image Analysis I 37
K-Means Clustering
 Example
Duda et al.
Bahadir K. Gunturk EE 7730 - Image Analysis I 38
K-Means Clustering
 RGB vector
xj  i
2
jelements of i' thcluster






iclusters
K-means clustering minimizes
Bahadir K. Gunturk EE 7730 - Image Analysis I 39
Clustering
 Example
D. Comaniciu and P.
Meer, Robust Analysis
of Feature Spaces:
Color Image
Segmentation, 1997.
Bahadir K. Gunturk EE 7730 - Image Analysis I 40
K-Means Clustering
 Example
Original K=5 K=11
Bahadir K. Gunturk EE 7730 - Image Analysis I 41
K-means, only color is used
in segmentation, four clusters
(out of 20) are shown here.
Bahadir K. Gunturk EE 7730 - Image Analysis I 42
K-means, color and position
is used in segmentation, four
clusters (out of 20) are shown
here.
Each vector is (R,G,B,x,y).
Bahadir K. Gunturk EE 7730 - Image Analysis I 43
K-Means Clustering: Axis Scaling
 Features of different types may have different scales.
 For example, pixel coordinates on a 100x100 image vs. RGB
color values in the range [0,1].
 Problem: Features with larger scales dominate
clustering.
 Solution: Scale the features.

More Related Content

What's hot

Unit ii
Unit iiUnit ii
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
asodariyabhavesh
 
Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domain
Ashish Kumar
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
ABIRAMI M
 
IMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESIMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUES
Vicky Kumar
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
Inamul Hossain Imran
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
kavitha muneeshwaran
 
NOISE FILTERS IN IMAGE PROCESSING
NOISE FILTERS IN IMAGE PROCESSINGNOISE FILTERS IN IMAGE PROCESSING
NOISE FILTERS IN IMAGE PROCESSING
Animesh Singh Sengar
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing Presentation
Revanth Chimmani
 
Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)
VARUN KUMAR
 
Edge Detection using Hough Transform
Edge Detection using Hough TransformEdge Detection using Hough Transform
Edge Detection using Hough Transform
Mrunal Selokar
 
Edge linking in image processing
Edge linking in image processingEdge linking in image processing
Edge linking in image processing
VARUN KUMAR
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
Suhaila Afzana
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & Descriptors
PundrikPatel
 
Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processing
asodariyabhavesh
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
A B Shinde
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
kiruthiammu
 
EDGE DETECTION
EDGE DETECTIONEDGE DETECTION
EDGE DETECTION
VIKAS SINGH BHADOURIA
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
Rania H
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
Tawose Olamide Timothy
 

What's hot (20)

Unit ii
Unit iiUnit ii
Unit ii
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domain
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
IMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESIMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUES
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 
NOISE FILTERS IN IMAGE PROCESSING
NOISE FILTERS IN IMAGE PROCESSINGNOISE FILTERS IN IMAGE PROCESSING
NOISE FILTERS IN IMAGE PROCESSING
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing Presentation
 
Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)
 
Edge Detection using Hough Transform
Edge Detection using Hough TransformEdge Detection using Hough Transform
Edge Detection using Hough Transform
 
Edge linking in image processing
Edge linking in image processingEdge linking in image processing
Edge linking in image processing
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & Descriptors
 
Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processing
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
 
EDGE DETECTION
EDGE DETECTIONEDGE DETECTION
EDGE DETECTION
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
 

Similar to Watershed

L91.ppt
L91.pptL91.ppt
L91.ppt
Sumit457840
 
C0363016021
C0363016021C0363016021
C0363016021
theijes
 
Lw3620362041
Lw3620362041Lw3620362041
Lw3620362041
IJERA Editor
 
Cj36511514
Cj36511514Cj36511514
Cj36511514
IJERA Editor
 
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSINGTYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
Kamana Tripathi
 
mathpsy2012 poster_Shweta_3(1)
mathpsy2012 poster_Shweta_3(1)mathpsy2012 poster_Shweta_3(1)
mathpsy2012 poster_Shweta_3(1)
Shweta Gupte
 
Marker Controlled Segmentation Technique for Medical application
Marker Controlled Segmentation Technique for Medical applicationMarker Controlled Segmentation Technique for Medical application
Marker Controlled Segmentation Technique for Medical application
Rushin Shah
 
A Method of Survey on Object-Oriented Shadow Detection & Removal for High Res...
A Method of Survey on Object-Oriented Shadow Detection & Removal for High Res...A Method of Survey on Object-Oriented Shadow Detection & Removal for High Res...
A Method of Survey on Object-Oriented Shadow Detection & Removal for High Res...
IJERA Editor
 
IJET-V2I6P17
IJET-V2I6P17IJET-V2I6P17
Mn3621372142
Mn3621372142Mn3621372142
Mn3621372142
IJERA Editor
 
AUTOMATIC DOMINANT REGION SEGMENTATION FOR NATURAL IMAGES
AUTOMATIC DOMINANT REGION SEGMENTATION FOR NATURAL IMAGES AUTOMATIC DOMINANT REGION SEGMENTATION FOR NATURAL IMAGES
AUTOMATIC DOMINANT REGION SEGMENTATION FOR NATURAL IMAGES
cscpconf
 
Automatic dominant region segmentation for natural images
Automatic dominant region segmentation for natural imagesAutomatic dominant region segmentation for natural images
Automatic dominant region segmentation for natural images
csandit
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
Chetan Hulsure
 
image segmentation by ppres.pptx
image segmentation by ppres.pptximage segmentation by ppres.pptx
image segmentation by ppres.pptx
mohan134666
 
Fpga implementation of image segmentation by using edge detection based on so...
Fpga implementation of image segmentation by using edge detection based on so...Fpga implementation of image segmentation by using edge detection based on so...
Fpga implementation of image segmentation by using edge detection based on so...
eSAT Journals
 
Fpga implementation of image segmentation by using edge detection based on so...
Fpga implementation of image segmentation by using edge detection based on so...Fpga implementation of image segmentation by using edge detection based on so...
Fpga implementation of image segmentation by using edge detection based on so...
eSAT Publishing House
 
Iris Localization - a Biometric Approach Referring Daugman's Algorithm
Iris Localization - a Biometric Approach Referring Daugman's AlgorithmIris Localization - a Biometric Approach Referring Daugman's Algorithm
Iris Localization - a Biometric Approach Referring Daugman's Algorithm
Editor IJCATR
 
Computer Aided Design visual realism notes
Computer Aided Design visual realism notesComputer Aided Design visual realism notes
Computer Aided Design visual realism notes
KushKumar293234
 
06 robot vision
06 robot vision06 robot vision
06 robot vision
Tianlu Wang
 
Brain tumor segmentation using asymmetry based histogram thresholding and k m...
Brain tumor segmentation using asymmetry based histogram thresholding and k m...Brain tumor segmentation using asymmetry based histogram thresholding and k m...
Brain tumor segmentation using asymmetry based histogram thresholding and k m...
eSAT Publishing House
 

Similar to Watershed (20)

L91.ppt
L91.pptL91.ppt
L91.ppt
 
C0363016021
C0363016021C0363016021
C0363016021
 
Lw3620362041
Lw3620362041Lw3620362041
Lw3620362041
 
Cj36511514
Cj36511514Cj36511514
Cj36511514
 
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSINGTYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
 
mathpsy2012 poster_Shweta_3(1)
mathpsy2012 poster_Shweta_3(1)mathpsy2012 poster_Shweta_3(1)
mathpsy2012 poster_Shweta_3(1)
 
Marker Controlled Segmentation Technique for Medical application
Marker Controlled Segmentation Technique for Medical applicationMarker Controlled Segmentation Technique for Medical application
Marker Controlled Segmentation Technique for Medical application
 
A Method of Survey on Object-Oriented Shadow Detection & Removal for High Res...
A Method of Survey on Object-Oriented Shadow Detection & Removal for High Res...A Method of Survey on Object-Oriented Shadow Detection & Removal for High Res...
A Method of Survey on Object-Oriented Shadow Detection & Removal for High Res...
 
IJET-V2I6P17
IJET-V2I6P17IJET-V2I6P17
IJET-V2I6P17
 
Mn3621372142
Mn3621372142Mn3621372142
Mn3621372142
 
AUTOMATIC DOMINANT REGION SEGMENTATION FOR NATURAL IMAGES
AUTOMATIC DOMINANT REGION SEGMENTATION FOR NATURAL IMAGES AUTOMATIC DOMINANT REGION SEGMENTATION FOR NATURAL IMAGES
AUTOMATIC DOMINANT REGION SEGMENTATION FOR NATURAL IMAGES
 
Automatic dominant region segmentation for natural images
Automatic dominant region segmentation for natural imagesAutomatic dominant region segmentation for natural images
Automatic dominant region segmentation for natural images
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
image segmentation by ppres.pptx
image segmentation by ppres.pptximage segmentation by ppres.pptx
image segmentation by ppres.pptx
 
Fpga implementation of image segmentation by using edge detection based on so...
Fpga implementation of image segmentation by using edge detection based on so...Fpga implementation of image segmentation by using edge detection based on so...
Fpga implementation of image segmentation by using edge detection based on so...
 
Fpga implementation of image segmentation by using edge detection based on so...
Fpga implementation of image segmentation by using edge detection based on so...Fpga implementation of image segmentation by using edge detection based on so...
Fpga implementation of image segmentation by using edge detection based on so...
 
Iris Localization - a Biometric Approach Referring Daugman's Algorithm
Iris Localization - a Biometric Approach Referring Daugman's AlgorithmIris Localization - a Biometric Approach Referring Daugman's Algorithm
Iris Localization - a Biometric Approach Referring Daugman's Algorithm
 
Computer Aided Design visual realism notes
Computer Aided Design visual realism notesComputer Aided Design visual realism notes
Computer Aided Design visual realism notes
 
06 robot vision
06 robot vision06 robot vision
06 robot vision
 
Brain tumor segmentation using asymmetry based histogram thresholding and k m...
Brain tumor segmentation using asymmetry based histogram thresholding and k m...Brain tumor segmentation using asymmetry based histogram thresholding and k m...
Brain tumor segmentation using asymmetry based histogram thresholding and k m...
 

More from Amnaakhaan

Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
Amnaakhaan
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram Processing
Amnaakhaan
 
Intensity Transformation
Intensity TransformationIntensity Transformation
Intensity Transformation
Amnaakhaan
 
Image Acquisition and Representation
Image Acquisition and RepresentationImage Acquisition and Representation
Image Acquisition and Representation
Amnaakhaan
 
Adaptive Median Filters
Adaptive Median FiltersAdaptive Median Filters
Adaptive Median Filters
Amnaakhaan
 
Image Restoration And Reconstruction
Image Restoration And ReconstructionImage Restoration And Reconstruction
Image Restoration And Reconstruction
Amnaakhaan
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
Amnaakhaan
 

More from Amnaakhaan (7)

Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram Processing
 
Intensity Transformation
Intensity TransformationIntensity Transformation
Intensity Transformation
 
Image Acquisition and Representation
Image Acquisition and RepresentationImage Acquisition and Representation
Image Acquisition and Representation
 
Adaptive Median Filters
Adaptive Median FiltersAdaptive Median Filters
Adaptive Median Filters
 
Image Restoration And Reconstruction
Image Restoration And ReconstructionImage Restoration And Reconstruction
Image Restoration And Reconstruction
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 

Recently uploaded

6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
Ratnakar Mikkili
 
Wearable antenna for antenna applications
Wearable antenna for antenna applicationsWearable antenna for antenna applications
Wearable antenna for antenna applications
Madhumitha Jayaram
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
nooriasukmaningtyas
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
nooriasukmaningtyas
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
RadiNasr
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
awadeshbabu
 

Recently uploaded (20)

6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
 
Wearable antenna for antenna applications
Wearable antenna for antenna applicationsWearable antenna for antenna applications
Wearable antenna for antenna applications
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
[JPP-1] - (JEE 3.0) - Kinematics 1D - 14th May..pdf
 

Watershed

  • 2. Bahadir K. Gunturk EE 7730 - Image Analysis I 2 Image Segmentation  Group similar components (such as, pixels in an image, image frames in a video) to obtain a compact representation.  Applications: Finding tumors, veins, etc. in medical images, finding targets in satellite/aerial images, finding people in surveillance images, summarizing video, etc.  Methods: Thresholding, K-means clustering, etc.
  • 3. Bahadir K. Gunturk EE 7730 - Image Analysis I 3 Image Segmentation  Segmentation algorithms for monochrome images generally are based on one of two basic properties of gray- scale values:  Discontinuity  The approach is to partition an image based on abrupt changes in gray-scale levels.  The principal areas of interest within this category are detection of isolated points, lines, and edges in an image.  Similarity  The principal approaches in this category are based on thresholding, region growing, and region splitting/merging.
  • 4. Bahadir K. Gunturk EE 7730 - Image Analysis I 4 Thresholding  Suppose that an image, f(x,y), is composed of light objects on a dark backround, and the following figure is the histogram of the image.  Then, the objects can be extracted by comparing pixel values with a threshold T.
  • 5. Bahadir K. Gunturk EE 7730 - Image Analysis I 5 Thresholding
  • 6. Bahadir K. Gunturk EE 7730 - Image Analysis I 6 Thresholding
  • 7. Bahadir K. Gunturk EE 7730 - Image Analysis I 7 Thresholding  It is also possible to extract objects that have a specific intensity range using multiple thresholds. Extension to color images is straightforward: There are three color channels, in each one specify the intensity range of the object… Even if objects are not separated in a single channel, they might be with all the channels… Application example: Detecting/Tracking faces based on skin color…
  • 8. Bahadir K. Gunturk EE 7730 - Image Analysis I 8 Thresholding  Non-uniform illumination may change the histogram in a way that it becomes impossible to segment the image using a single global threshold.  Choosing local threshold values may help.
  • 9. Bahadir K. Gunturk EE 7730 - Image Analysis I 9 Thresholding
  • 10. Bahadir K. Gunturk EE 7730 - Image Analysis I 10 Thresholding  Adaptive thresholding
  • 11. Bahadir K. Gunturk EE 7730 - Image Analysis I 11 Thresholding Almost constant illumination Separation of objects…
  • 12. Bahadir K. Gunturk EE 7730 - Image Analysis I 12 Region-Oriented Segmentation  Region Growing  Region growing is a procedure that groups pixels or subregions into larger regions.  The simplest of these approaches is pixel aggregation, which starts with a set of “seed” points and from these grows regions by appending to each seed points those neighboring pixels that have similar properties (such as gray level, texture, color, shape).  Region growing based techniques are better than the edge- based techniques in noisy images where edges are difficult to detect.
  • 13. Region Growing Bahadir K. Gunturk EE 7730 - Image Analysis I 13
  • 14. Bahadir K. Gunturk EE 7730 - Image Analysis I 14 Region-Oriented Segmentation
  • 15. Bahadir K. Gunturk EE 7730 - Image Analysis I 15 Region-Oriented Segmentation
  • 16. Bahadir K. Gunturk EE 7730 - Image Analysis I 16 Region-Oriented Segmentation  Region Splitting  Region growing starts from a set of seed points.  An alternative is to start with the whole image as a single region and subdivide the regions that do not satisfy a condition of homogeneity.  Region Merging  Region merging is the opposite of region splitting.  Start with small regions (e.g. 2x2 or 4x4 regions) and merge the regions that have similar characteristics (such as gray level, variance).  Typically, splitting and merging approaches are used iteratively.
  • 17. Bahadir K. Gunturk EE 7730 - Image Analysis I 17 Region-Oriented Segmentation
  • 18. Bahadir K. Gunturk EE 7730 - Image Analysis I 18 Watershed Segmentation Algorithm  Visualize an image in 3D: spatial coordinates and gray levels.  In such a topographic interpretation, there are 3 types of points:  Points belonging to a regional minimum  Points at which a drop of water would fall to a single minimum. (The catchment basin or watershed of that minimum.)  Points at which a drop of water would be equally likely to fall to more than one minimum. (The divide lines or watershed lines.) Watershed lines
  • 19. Bahadir K. Gunturk EE 7730 - Image Analysis I 19 Watershed Segmentation Algorithm  The objective is to find watershed lines.  The idea is simple:  Suppose that a hole is punched in each regional minimum and that the entire topography is flooded from below by letting water rise through the holes at a uniform rate.  When rising water in distinct catchment basins is about the merge, a dam is built to prevent merging. These dam boundaries correspond to the watershed lines.
  • 20. Bahadir K. Gunturk EE 7730 - Image Analysis I 20 Watershed Segmentation Algorithm
  • 21. Bahadir K. Gunturk EE 7730 - Image Analysis I 21  Start with all pixels with the lowest possible value.  These form the basis for initial watersheds  For each intensity level k:  For each group of pixels of intensity k  If adjacent to exactly one existing region, add these pixels to that region  Else if adjacent to more than one existing regions, mark as boundary  Else start a new region Watershed Segmentation Algorithm
  • 22. Bahadir K. Gunturk EE 7730 - Image Analysis I 22 Watershed Segmentation Algorithm Watershed algorithm might be used on the gradient image instead of the original image.
  • 23. Bahadir K. Gunturk EE 7730 - Image Analysis I 23 Watershed Segmentation Algorithm Due to noise and other local irregularities of the gradient, oversegmentation might occur.
  • 24. Bahadir K. Gunturk EE 7730 - Image Analysis I 24 Watershed Segmentation Algorithm A solution is to limit the number of regional minima. Use markers to specify the only allowed regional minima.
  • 25. Bahadir K. Gunturk EE 7730 - Image Analysis I 25 Watershed Segmentation Algorithm A solution is to limit the number of regional minima. Use markers to specify the only allowed regional minima. (For example, gray-level values might be used as a marker.)
  • 26. 26  External markers:  Points along the watershed line along highest points.  Internal markers: (1) That is surrounded higher points . (2) Points in region form a connected component (3) All points in connected component have the same intensity. Markers
  • 27. Bahadir K. Gunturk EE 7730 - Image Analysis I 27 Use of Motion In Segmentation Take the difference between a reference image and a subsequent image to determine the stationary elements and nonstationary image components.
  • 28. Bahadir K. Gunturk EE 7730 - Image Analysis I 28 K-Means Clustering 1. Partition the data points into K clusters randomly. Find the centroids of each cluster. 2. For each data point:  Calculate the distance from the data point to each cluster.  Assign the data point to the closest cluster. 3. Recompute the centroid of each cluster. 4. Repeat steps 2 and 3 until there is no further change in the assignment of data points (or in the centroids).
  • 29. Bahadir K. Gunturk EE 7730 - Image Analysis I 29 K-Means Clustering
  • 30. Bahadir K. Gunturk EE 7730 - Image Analysis I 30 K-Means Clustering
  • 31. Bahadir K. Gunturk EE 7730 - Image Analysis I 31 K-Means Clustering
  • 32. Bahadir K. Gunturk EE 7730 - Image Analysis I 32 K-Means Clustering
  • 33. Bahadir K. Gunturk EE 7730 - Image Analysis I 33 K-Means Clustering
  • 34. Bahadir K. Gunturk EE 7730 - Image Analysis I 34 K-Means Clustering
  • 35. Bahadir K. Gunturk EE 7730 - Image Analysis I 35 K-Means Clustering
  • 36. Bahadir K. Gunturk EE 7730 - Image Analysis I 36 K-Means Clustering
  • 37. Bahadir K. Gunturk EE 7730 - Image Analysis I 37 K-Means Clustering  Example Duda et al.
  • 38. Bahadir K. Gunturk EE 7730 - Image Analysis I 38 K-Means Clustering  RGB vector xj  i 2 jelements of i' thcluster       iclusters K-means clustering minimizes
  • 39. Bahadir K. Gunturk EE 7730 - Image Analysis I 39 Clustering  Example D. Comaniciu and P. Meer, Robust Analysis of Feature Spaces: Color Image Segmentation, 1997.
  • 40. Bahadir K. Gunturk EE 7730 - Image Analysis I 40 K-Means Clustering  Example Original K=5 K=11
  • 41. Bahadir K. Gunturk EE 7730 - Image Analysis I 41 K-means, only color is used in segmentation, four clusters (out of 20) are shown here.
  • 42. Bahadir K. Gunturk EE 7730 - Image Analysis I 42 K-means, color and position is used in segmentation, four clusters (out of 20) are shown here. Each vector is (R,G,B,x,y).
  • 43. Bahadir K. Gunturk EE 7730 - Image Analysis I 43 K-Means Clustering: Axis Scaling  Features of different types may have different scales.  For example, pixel coordinates on a 100x100 image vs. RGB color values in the range [0,1].  Problem: Features with larger scales dominate clustering.  Solution: Scale the features.