SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Downloaden Sie, um offline zu lesen
Image Segmentation
P. Kuppusamy
Content
• Image Segmentation
• Types of Image Segmentation
• Semantic Segmentation
• Instance Segmentation
• Types of Image Segmentation Techniques based on the image
properties:
• Threshold Method.
• Edge Based Segmentation.
• Region Based Segmentation.
• Clustering Based Segmentation.
• Watershed Based Method.
• Artificial Neural Network Based Segmentation.
Image Segmentation
• Image Segmentation is finding the group of pixels that are similar.
• It is partitioning the image into various subgroups (of pixels) called Image
Objects.
• Assigning labels to pixels, and the pixels with the same label fall under single
category.
• It can reduce the complexity of the image to analyse the image becomes simpler.
• Using these labels, User can specify boundaries, draw lines, and separate the
most required objects in an image from unnecessary pixels label.
• Algorithm detects an instances, which provides about individual objects, and
hence the all the persons have different colors.
Types of Image Segmentation
1. Semantic Segmentation - In image 1, every pixel belongs to a particular class
(either background or person). Also, all the pixels belonging to a particular
class are represented by the same color (background as black and person as
pink).
2. Instance Segmentation - Image 2 has also assigned a particular class to each
pixel of the image. However, different objects of the same class have different
colors (Person 1 as red, Person 2 as green, background as black, etc.).
Why Image Segmentation is Needed?
1. Identify the objects from image.
2. Not only identifying, Also Provides more insight information about the
objects.
Applications
• facial recognition - identifying an employee to mark attendance
automatically.
• Medical industry - faster diagnosis, detecting diseases, tumors, cell and
tissue patterns from radiography, MRI, endoscopy, thermography,
ultrasonography, etc.
• Satellite images - identify various patterns, objects, geographical contours,
soil information etc., which can be used for agriculture, mining, geo-sensing,
etc.
• Robotics, like Robotic process automation (RPA), self-driving cars, etc.
Types of Image Segmentation Techniques based on the image
properties:
Two approaches:
1. Similarity Detection (Region based Approach)
1. Detecting similar pixels in an image based on a threshold, region growing, region
spreading, and region merging.
2. Machine learning algorithms like clustering relies on this approach of similarity
detection on an unknown set of features. It detects similarity based on a pre-defined
(known) set of features.
2. Discontinuity Detection (Boundary / Edge based Approach)
1. Searches for discontinuity.
2. Here, edges detected based on various metrics of discontinuity like intensity, color
etc.
3. E.g. Image Segmentation Algorithms like Edge Detection, Point Detection, Line
Detection
Types of Image Segmentation Techniques based on the image
properties:
1. Threshold Method.
2. Edge Based Segmentation.
3. Region Based Segmentation.
4. Clustering Based Segmentation.
5. Watershed Based Method.
6. Artificial Neural Network Based Segmentation.
Threshold based Segmentation
• Threshold value T is considered as a constant. But that approach may be ineffective
considering the amount of noise of the image. So, we can either keep it constant or
change it dynamically based on the image properties to obtain better results.
• Global Threshold - If we want to divide the image into two regions (object and
background), we define a single threshold value.
• Local Threshold - If we have multiple objects along with the background, we must
define multiple thresholds. These thresholds are collectively known as local threshold.
Based on that, thresholding is of the following types:
1. Simple Thresholding
• This technique replaces the pixels in an image with either black or white.
• If the intensity of a pixel (Ii,j) at position (i, j) is less than the threshold (T), then replace
that with black and if it is more, then we replace that pixel with white. This is a binary
approach to thresholding.
Threshold based Segmentation
2. Otsu’s Binarization
• In global thresholding, we had used an arbitrary value for threshold value and it
remains a constant.
• How can we define and determine the correctness of the selected threshold? A
simpler but rather inept method is to trial and see the error.
• Take an image histogram that has two peaks (bimodal image), one for the
background and one for the foreground.
• According to Otsu binarization, for that image, we can approximately take a
value in the middle of those peaks as the threshold value.
• So, it automatically calculates a threshold value from image histogram for a
bimodal image.
• The disadvantage is for images that are not bimodal, the image histogram has
multiple peaks, or one of the classes (peaks) present has high variance.
• However, Otsu’s Binarization is widely used in document scans, removing
unwanted colors from a document, pattern recognition etc.
Threshold based Segmentation
3. Adaptive Thresholding
• A global value as threshold value may not be good in all the conditions where an
image has different background and foreground lighting conditions in different
actionable areas.
• We need an adaptive approach that can change the threshold for various
components of the image.
• In this, the algorithm divides the image into various smaller portions and
calculates the threshold for those portions of the image.
• Hence, we obtain different thresholds for different regions of the same image.
• This in turn gives us better results for images with varying illumination.
• The algorithm can automatically calculate the threshold value.
• The threshold value can be the mean of neighborhood area or it can be the
weighted sum of neighborhood values where weights are a Gaussian window (a
window function to define regions).
Edge based Segmentation
• Edge detection is the process of locating edges in an image based on various
discontinuities in grey level, colour, texture, brightness, saturation, contrast etc.
• To further enhance the results, supplementary processing steps must follow to
concatenate all the edges into edge chains that correspond better with borders in
the image.
• Edges consist of meaningful features and contains significant information.
• It significantly reduces the size of the image and filters out information that may
be regarded as less relevant, preserving and focusing solely on the important
structural properties of an image for a business problem.
Edge based Segmentation
Edge detection algorithms are two categories:
• Gradient based methods and Gray Histograms.
• Basic edge detection operators like sobel operator, canny, Robert’s variable etc.
• These operators aid in detecting the edge discontinuities and hence mark the edge
boundaries.
• The end goal is to reach at least a partial segmentation using this process, where we group
all the local edges into a new binary image where only edge chains that match the
required existing objects or image parts are present.
Region based Segmentation
• Creating segments by dividing the image into various components having
similar characteristics.
• Region-based image segmentation techniques initially search for some seed
points – either smaller parts or considerably bigger chunks in the input image.
• Next, Either add more pixels to the seed points or further diminish or shrink
the seed point to smaller segments, and merge with other smaller seed points.
Hence, there are two basic techniques based on this method.
1. Region Growing
• It’s a bottom to up method where begin with a smaller set of pixel and start
accumulating or iteratively merging it based on certain pre-determined similarity
constraints.
• Region growth algorithm starts with choosing an arbitrary seed pixel in the
image and compare it with its neighboring pixels.
Region based Segmentation
• If there is a match or similarity in neighboring pixels, then they are added to the
initial seed pixel, thus increasing the size of the region.
• When we reach the saturation, the growth of that region cannot proceed further.
• So, the algorithm now chooses another seed pixel, which necessarily does not
belong to any region(s) that currently exists and start the process again.
• Region growing methods often achieve effective Segmentation that corresponds
well to the observed edges.
• But sometimes, when the algorithm lets a region grow completely before trying
other seeds, that usually biases the segmentation in favour of the regions which
are segmented first.
• To counter this effect, most of the algorithms begin with the user inputs of
similarities first, no single region is allowed to dominate and grow completely
and multiple regions are allowed to grow simultaneously.
Region based Segmentation
• Region growth, also a pixel based algorithm like thresholding but the major
difference is thresholding extracts a large region based out of similar pixels,
from anywhere in the image whereas region-growth extracts only the adjacent
pixels.
• Region growing techniques are preferable for noisy images, where it is highly
difficult to detect the edges.
2. Region Splitting and Merging
• The splitting and merging based segmentation methods use two basic techniques
done together in conjunction – region splitting and region merging – for
segmenting an image.
• Splitting involves iteratively dividing an image into regions having similar
characteristics and merging employs combining the adjacent regions that are
somewhat similar to each other.
Region based Segmentation
• A region split, unlike the region growth, considers the entire input image as the
area of business interest.
• Then, it would try matching a known set of parameters or pre-defined similarity
constraints and picks up all the pixel areas matching the criteria.
• This is a divide and conquers method as opposed to the region growth algorithm.
Clustering based Segmentation
• Clustering is dividing the population (data points) into a number of groups, such that data
points in the same groups are more similar to other data points in that same group than
those in other groups (clusters).
k-means clustering
• The k represents the number of clusters.
1. First, randomly select k initial clusters
2. Randomly assign each data point to any one of the k clusters
3. Calculate the centers of these clusters
4. Calculate the distance of all the points from the center of each cluster
5. Depending on this distance, the points are reassigned to the nearest cluster
6. Calculate the center of the newly formed clusters
7. Finally, repeat steps (4), (5) and (6) until either the center of the clusters does not
change or we reach the set number of iterations
• The key advantage of using k-means algorithm is that it is simple and easy to understand.
Watershed based Segmentation
• Watershed is a ridge approach, also a region-based method, which follows the concept of
topological interpretation.
• It considers the analogy of geographic landscape with ridges and valleys for various
components of an image. The slope and elevation of the topography are distinctly
quantified by the gray values of the respective pixels – called the gradient magnitude.
• Based on this 3D representation which is usually followed for Earth landscapes, the
watershed transform decomposes an image into regions that are called “catchment basins”.
• For each local minimum, a catchment basin comprises all pixels whose path of steepest
descent of gray values terminates at this minimum. The algorithm considers the pixels as a
“local topography” (elevation), often initializing itself from user-defined markers. Then,
the algorithm defines “basins” which are the minima points and hence, basins are flooded
from the markers until basins meet on watershed lines.
• The watersheds are formed that separate basins from each other. Hence the picture gets
decomposed because we have pixels assigned to each such region or watershed
Artificial Neural Network based Segmentation
• ANN uses AI to automatically process and identify the components of an image like
objects, faces, text, hand-written text etc. Convolutional Neural Networks are specifically
used to identify and process high-definition image data.
• An image is considered either as a set of vectors (colour annotated polygons) or a raster (a
table of pixels with numerical values for colors). The vector or raster is turned into simpler
components that represent the constituent physical objects and features in an image.
Morphological based Segmentation
• It is for analysing the geometric structure inherent within an image.
• In this, the output image pixel values are based on similar pixels of input image
with is neighbours and produces a new binary image.
• This method is also used in foreground background separation.
• The base of the morphological operation is dilation, erosion, opening, closing
expressed in logical AND, OR.
• This technique is mainly used in shape analysis and noise removal after
thresholding an image. Example: watershed algorithm.
References
• Richard Szeliski, Computer Vision: Algorithms and Applications,
Springer 2010

Weitere ähnliche Inhalte

Was ist angesagt?

Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersKarthika Ramachandran
 
Thresholding.ppt
Thresholding.pptThresholding.ppt
Thresholding.pptshankar64
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersSuhaila Afzana
 
digital image processing
digital image processingdigital image processing
digital image processingAbinaya B
 
Chapter 6 Image Processing: Image Enhancement
Chapter 6 Image Processing: Image EnhancementChapter 6 Image Processing: Image Enhancement
Chapter 6 Image Processing: Image EnhancementVarun Ojha
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentationramya marichamy
 
Image Processing Basics
Image Processing BasicsImage Processing Basics
Image Processing BasicsA B Shinde
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point ProcessingGayathri31093
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGmuthu181188
 
Image Restoration
Image RestorationImage Restoration
Image RestorationPoonam Seth
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
IMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESIMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESVicky Kumar
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentationasodariyabhavesh
 

Was ist angesagt? (20)

IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
Thresholding.ppt
Thresholding.pptThresholding.ppt
Thresholding.ppt
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital 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
 
digital image processing
digital image processingdigital image processing
digital image processing
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Chapter 6 Image Processing: Image Enhancement
Chapter 6 Image Processing: Image EnhancementChapter 6 Image Processing: Image Enhancement
Chapter 6 Image Processing: Image Enhancement
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image Processing Basics
Image Processing BasicsImage Processing Basics
Image Processing Basics
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
 
Image compression .
Image compression .Image compression .
Image compression .
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
IMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESIMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUES
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Bit plane coding
Bit plane codingBit plane coding
Bit plane coding
 

Ähnlich wie Image segmentation

SIRG-BSU_3_used-important.pdf
SIRG-BSU_3_used-important.pdfSIRG-BSU_3_used-important.pdf
SIRG-BSU_3_used-important.pdfDrAhmedElngar
 
digital image processing.pptx
digital image processing.pptxdigital image processing.pptx
digital image processing.pptxnibiganesh
 
Review of Image Segmentation Techniques based on Region Merging Approach
Review of Image Segmentation Techniques based on Region Merging ApproachReview of Image Segmentation Techniques based on Region Merging Approach
Review of Image Segmentation Techniques based on Region Merging ApproachEditor IJMTER
 
vision_image_segmentation.pptx
vision_image_segmentation.pptxvision_image_segmentation.pptx
vision_image_segmentation.pptxvrushalikanawade2
 
Multitude Regional Texture Extraction for Efficient Medical Image Segmentation
Multitude Regional Texture Extraction for Efficient Medical Image SegmentationMultitude Regional Texture Extraction for Efficient Medical Image Segmentation
Multitude Regional Texture Extraction for Efficient Medical Image Segmentationinventionjournals
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
image-processing-husseina-ozigi-otaru.ppt
image-processing-husseina-ozigi-otaru.pptimage-processing-husseina-ozigi-otaru.ppt
image-processing-husseina-ozigi-otaru.pptRaviSharma65345
 
Lecture 4 Digital Image Processing (1).pptx
Lecture 4 Digital Image Processing (1).pptxLecture 4 Digital Image Processing (1).pptx
Lecture 4 Digital Image Processing (1).pptxsivan96
 
Massive Regional Texture Extraction for Aerial and Natural Images
Massive Regional Texture Extraction for Aerial and Natural ImagesMassive Regional Texture Extraction for Aerial and Natural Images
Massive Regional Texture Extraction for Aerial and Natural ImagesIOSR Journals
 
Image Segmentation Using Pairwise Correlation Clustering
Image Segmentation Using Pairwise Correlation ClusteringImage Segmentation Using Pairwise Correlation Clustering
Image Segmentation Using Pairwise Correlation ClusteringIJERA Editor
 
Hidden Surface Removal methods.pptx
Hidden Surface Removal methods.pptxHidden Surface Removal methods.pptx
Hidden Surface Removal methods.pptxbcanawakadalcollege
 

Ähnlich wie Image segmentation (20)

SIRG-BSU_3_used-important.pdf
SIRG-BSU_3_used-important.pdfSIRG-BSU_3_used-important.pdf
SIRG-BSU_3_used-important.pdf
 
Digital Image Processing.pptx
Digital Image Processing.pptxDigital Image Processing.pptx
Digital Image Processing.pptx
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
digital image processing.pptx
digital image processing.pptxdigital image processing.pptx
digital image processing.pptx
 
Review of Image Segmentation Techniques based on Region Merging Approach
Review of Image Segmentation Techniques based on Region Merging ApproachReview of Image Segmentation Techniques based on Region Merging Approach
Review of Image Segmentation Techniques based on Region Merging Approach
 
vision_image_segmentation.pptx
vision_image_segmentation.pptxvision_image_segmentation.pptx
vision_image_segmentation.pptx
 
Multitude Regional Texture Extraction for Efficient Medical Image Segmentation
Multitude Regional Texture Extraction for Efficient Medical Image SegmentationMultitude Regional Texture Extraction for Efficient Medical Image Segmentation
Multitude Regional Texture Extraction for Efficient Medical Image Segmentation
 
Bx4301429434
Bx4301429434Bx4301429434
Bx4301429434
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
image-processing-husseina-ozigi-otaru.ppt
image-processing-husseina-ozigi-otaru.pptimage-processing-husseina-ozigi-otaru.ppt
image-processing-husseina-ozigi-otaru.ppt
 
Lecture 4 Digital Image Processing (1).pptx
Lecture 4 Digital Image Processing (1).pptxLecture 4 Digital Image Processing (1).pptx
Lecture 4 Digital Image Processing (1).pptx
 
Object tracking
Object trackingObject tracking
Object tracking
 
Image processing.pdf
Image processing.pdfImage processing.pdf
Image processing.pdf
 
Hidden Surface Removal.pptx
Hidden Surface Removal.pptxHidden Surface Removal.pptx
Hidden Surface Removal.pptx
 
Massive Regional Texture Extraction for Aerial and Natural Images
Massive Regional Texture Extraction for Aerial and Natural ImagesMassive Regional Texture Extraction for Aerial and Natural Images
Massive Regional Texture Extraction for Aerial and Natural Images
 
Image segmentation using wvlt trnsfrmtn and fuzzy logic. ppt
Image segmentation using wvlt trnsfrmtn and fuzzy logic. pptImage segmentation using wvlt trnsfrmtn and fuzzy logic. ppt
Image segmentation using wvlt trnsfrmtn and fuzzy logic. ppt
 
Image Segmentation Using Pairwise Correlation Clustering
Image Segmentation Using Pairwise Correlation ClusteringImage Segmentation Using Pairwise Correlation Clustering
Image Segmentation Using Pairwise Correlation Clustering
 
Q0460398103
Q0460398103Q0460398103
Q0460398103
 
dip.pptx
dip.pptxdip.pptx
dip.pptx
 
Hidden Surface Removal methods.pptx
Hidden Surface Removal methods.pptxHidden Surface Removal methods.pptx
Hidden Surface Removal methods.pptx
 

Mehr von Kuppusamy P

Recurrent neural networks rnn
Recurrent neural networks   rnnRecurrent neural networks   rnn
Recurrent neural networks rnnKuppusamy P
 
Image enhancement
Image enhancementImage enhancement
Image enhancementKuppusamy P
 
Feature detection and matching
Feature detection and matchingFeature detection and matching
Feature detection and matchingKuppusamy P
 
Image processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersKuppusamy P
 
Flowchart design for algorithms
Flowchart design for algorithmsFlowchart design for algorithms
Flowchart design for algorithmsKuppusamy P
 
Algorithm basics
Algorithm basicsAlgorithm basics
Algorithm basicsKuppusamy P
 
Problem solving using Programming
Problem solving using ProgrammingProblem solving using Programming
Problem solving using ProgrammingKuppusamy P
 
Parts of Computer, Hardware and Software
Parts of Computer, Hardware and Software Parts of Computer, Hardware and Software
Parts of Computer, Hardware and Software Kuppusamy P
 
Java methods or Subroutines or Functions
Java methods or Subroutines or FunctionsJava methods or Subroutines or Functions
Java methods or Subroutines or FunctionsKuppusamy P
 
Java iterative statements
Java iterative statementsJava iterative statements
Java iterative statementsKuppusamy P
 
Java conditional statements
Java conditional statementsJava conditional statements
Java conditional statementsKuppusamy P
 
Java introduction
Java introductionJava introduction
Java introductionKuppusamy P
 
Logistic regression in Machine Learning
Logistic regression in Machine LearningLogistic regression in Machine Learning
Logistic regression in Machine LearningKuppusamy P
 
Anomaly detection (Unsupervised Learning) in Machine Learning
Anomaly detection (Unsupervised Learning) in Machine LearningAnomaly detection (Unsupervised Learning) in Machine Learning
Anomaly detection (Unsupervised Learning) in Machine LearningKuppusamy P
 
Machine Learning Performance metrics for classification
Machine Learning Performance metrics for classificationMachine Learning Performance metrics for classification
Machine Learning Performance metrics for classificationKuppusamy P
 
Machine learning Introduction
Machine learning IntroductionMachine learning Introduction
Machine learning IntroductionKuppusamy P
 

Mehr von Kuppusamy P (20)

Recurrent neural networks rnn
Recurrent neural networks   rnnRecurrent neural networks   rnn
Recurrent neural networks rnn
 
Deep learning
Deep learningDeep learning
Deep learning
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Feature detection and matching
Feature detection and matchingFeature detection and matching
Feature detection and matching
 
Image processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filters
 
Flowchart design for algorithms
Flowchart design for algorithmsFlowchart design for algorithms
Flowchart design for algorithms
 
Algorithm basics
Algorithm basicsAlgorithm basics
Algorithm basics
 
Problem solving using Programming
Problem solving using ProgrammingProblem solving using Programming
Problem solving using Programming
 
Parts of Computer, Hardware and Software
Parts of Computer, Hardware and Software Parts of Computer, Hardware and Software
Parts of Computer, Hardware and Software
 
Strings in java
Strings in javaStrings in java
Strings in java
 
Java methods or Subroutines or Functions
Java methods or Subroutines or FunctionsJava methods or Subroutines or Functions
Java methods or Subroutines or Functions
 
Java arrays
Java arraysJava arrays
Java arrays
 
Java iterative statements
Java iterative statementsJava iterative statements
Java iterative statements
 
Java conditional statements
Java conditional statementsJava conditional statements
Java conditional statements
 
Java data types
Java data typesJava data types
Java data types
 
Java introduction
Java introductionJava introduction
Java introduction
 
Logistic regression in Machine Learning
Logistic regression in Machine LearningLogistic regression in Machine Learning
Logistic regression in Machine Learning
 
Anomaly detection (Unsupervised Learning) in Machine Learning
Anomaly detection (Unsupervised Learning) in Machine LearningAnomaly detection (Unsupervised Learning) in Machine Learning
Anomaly detection (Unsupervised Learning) in Machine Learning
 
Machine Learning Performance metrics for classification
Machine Learning Performance metrics for classificationMachine Learning Performance metrics for classification
Machine Learning Performance metrics for classification
 
Machine learning Introduction
Machine learning IntroductionMachine learning Introduction
Machine learning Introduction
 

Kürzlich hochgeladen

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 

Kürzlich hochgeladen (20)

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 

Image segmentation

  • 2. Content • Image Segmentation • Types of Image Segmentation • Semantic Segmentation • Instance Segmentation • Types of Image Segmentation Techniques based on the image properties: • Threshold Method. • Edge Based Segmentation. • Region Based Segmentation. • Clustering Based Segmentation. • Watershed Based Method. • Artificial Neural Network Based Segmentation.
  • 3. Image Segmentation • Image Segmentation is finding the group of pixels that are similar. • It is partitioning the image into various subgroups (of pixels) called Image Objects. • Assigning labels to pixels, and the pixels with the same label fall under single category. • It can reduce the complexity of the image to analyse the image becomes simpler. • Using these labels, User can specify boundaries, draw lines, and separate the most required objects in an image from unnecessary pixels label. • Algorithm detects an instances, which provides about individual objects, and hence the all the persons have different colors.
  • 4. Types of Image Segmentation 1. Semantic Segmentation - In image 1, every pixel belongs to a particular class (either background or person). Also, all the pixels belonging to a particular class are represented by the same color (background as black and person as pink). 2. Instance Segmentation - Image 2 has also assigned a particular class to each pixel of the image. However, different objects of the same class have different colors (Person 1 as red, Person 2 as green, background as black, etc.).
  • 5. Why Image Segmentation is Needed? 1. Identify the objects from image. 2. Not only identifying, Also Provides more insight information about the objects. Applications • facial recognition - identifying an employee to mark attendance automatically. • Medical industry - faster diagnosis, detecting diseases, tumors, cell and tissue patterns from radiography, MRI, endoscopy, thermography, ultrasonography, etc. • Satellite images - identify various patterns, objects, geographical contours, soil information etc., which can be used for agriculture, mining, geo-sensing, etc. • Robotics, like Robotic process automation (RPA), self-driving cars, etc.
  • 6. Types of Image Segmentation Techniques based on the image properties: Two approaches: 1. Similarity Detection (Region based Approach) 1. Detecting similar pixels in an image based on a threshold, region growing, region spreading, and region merging. 2. Machine learning algorithms like clustering relies on this approach of similarity detection on an unknown set of features. It detects similarity based on a pre-defined (known) set of features. 2. Discontinuity Detection (Boundary / Edge based Approach) 1. Searches for discontinuity. 2. Here, edges detected based on various metrics of discontinuity like intensity, color etc. 3. E.g. Image Segmentation Algorithms like Edge Detection, Point Detection, Line Detection
  • 7. Types of Image Segmentation Techniques based on the image properties: 1. Threshold Method. 2. Edge Based Segmentation. 3. Region Based Segmentation. 4. Clustering Based Segmentation. 5. Watershed Based Method. 6. Artificial Neural Network Based Segmentation.
  • 8. Threshold based Segmentation • Threshold value T is considered as a constant. But that approach may be ineffective considering the amount of noise of the image. So, we can either keep it constant or change it dynamically based on the image properties to obtain better results. • Global Threshold - If we want to divide the image into two regions (object and background), we define a single threshold value. • Local Threshold - If we have multiple objects along with the background, we must define multiple thresholds. These thresholds are collectively known as local threshold. Based on that, thresholding is of the following types: 1. Simple Thresholding • This technique replaces the pixels in an image with either black or white. • If the intensity of a pixel (Ii,j) at position (i, j) is less than the threshold (T), then replace that with black and if it is more, then we replace that pixel with white. This is a binary approach to thresholding.
  • 9. Threshold based Segmentation 2. Otsu’s Binarization • In global thresholding, we had used an arbitrary value for threshold value and it remains a constant. • How can we define and determine the correctness of the selected threshold? A simpler but rather inept method is to trial and see the error. • Take an image histogram that has two peaks (bimodal image), one for the background and one for the foreground. • According to Otsu binarization, for that image, we can approximately take a value in the middle of those peaks as the threshold value. • So, it automatically calculates a threshold value from image histogram for a bimodal image. • The disadvantage is for images that are not bimodal, the image histogram has multiple peaks, or one of the classes (peaks) present has high variance. • However, Otsu’s Binarization is widely used in document scans, removing unwanted colors from a document, pattern recognition etc.
  • 10. Threshold based Segmentation 3. Adaptive Thresholding • A global value as threshold value may not be good in all the conditions where an image has different background and foreground lighting conditions in different actionable areas. • We need an adaptive approach that can change the threshold for various components of the image. • In this, the algorithm divides the image into various smaller portions and calculates the threshold for those portions of the image. • Hence, we obtain different thresholds for different regions of the same image. • This in turn gives us better results for images with varying illumination. • The algorithm can automatically calculate the threshold value. • The threshold value can be the mean of neighborhood area or it can be the weighted sum of neighborhood values where weights are a Gaussian window (a window function to define regions).
  • 11. Edge based Segmentation • Edge detection is the process of locating edges in an image based on various discontinuities in grey level, colour, texture, brightness, saturation, contrast etc. • To further enhance the results, supplementary processing steps must follow to concatenate all the edges into edge chains that correspond better with borders in the image. • Edges consist of meaningful features and contains significant information. • It significantly reduces the size of the image and filters out information that may be regarded as less relevant, preserving and focusing solely on the important structural properties of an image for a business problem.
  • 12. Edge based Segmentation Edge detection algorithms are two categories: • Gradient based methods and Gray Histograms. • Basic edge detection operators like sobel operator, canny, Robert’s variable etc. • These operators aid in detecting the edge discontinuities and hence mark the edge boundaries. • The end goal is to reach at least a partial segmentation using this process, where we group all the local edges into a new binary image where only edge chains that match the required existing objects or image parts are present.
  • 13. Region based Segmentation • Creating segments by dividing the image into various components having similar characteristics. • Region-based image segmentation techniques initially search for some seed points – either smaller parts or considerably bigger chunks in the input image. • Next, Either add more pixels to the seed points or further diminish or shrink the seed point to smaller segments, and merge with other smaller seed points. Hence, there are two basic techniques based on this method. 1. Region Growing • It’s a bottom to up method where begin with a smaller set of pixel and start accumulating or iteratively merging it based on certain pre-determined similarity constraints. • Region growth algorithm starts with choosing an arbitrary seed pixel in the image and compare it with its neighboring pixels.
  • 14. Region based Segmentation • If there is a match or similarity in neighboring pixels, then they are added to the initial seed pixel, thus increasing the size of the region. • When we reach the saturation, the growth of that region cannot proceed further. • So, the algorithm now chooses another seed pixel, which necessarily does not belong to any region(s) that currently exists and start the process again. • Region growing methods often achieve effective Segmentation that corresponds well to the observed edges. • But sometimes, when the algorithm lets a region grow completely before trying other seeds, that usually biases the segmentation in favour of the regions which are segmented first. • To counter this effect, most of the algorithms begin with the user inputs of similarities first, no single region is allowed to dominate and grow completely and multiple regions are allowed to grow simultaneously.
  • 15. Region based Segmentation • Region growth, also a pixel based algorithm like thresholding but the major difference is thresholding extracts a large region based out of similar pixels, from anywhere in the image whereas region-growth extracts only the adjacent pixels. • Region growing techniques are preferable for noisy images, where it is highly difficult to detect the edges. 2. Region Splitting and Merging • The splitting and merging based segmentation methods use two basic techniques done together in conjunction – region splitting and region merging – for segmenting an image. • Splitting involves iteratively dividing an image into regions having similar characteristics and merging employs combining the adjacent regions that are somewhat similar to each other.
  • 16. Region based Segmentation • A region split, unlike the region growth, considers the entire input image as the area of business interest. • Then, it would try matching a known set of parameters or pre-defined similarity constraints and picks up all the pixel areas matching the criteria. • This is a divide and conquers method as opposed to the region growth algorithm.
  • 17. Clustering based Segmentation • Clustering is dividing the population (data points) into a number of groups, such that data points in the same groups are more similar to other data points in that same group than those in other groups (clusters). k-means clustering • The k represents the number of clusters. 1. First, randomly select k initial clusters 2. Randomly assign each data point to any one of the k clusters 3. Calculate the centers of these clusters 4. Calculate the distance of all the points from the center of each cluster 5. Depending on this distance, the points are reassigned to the nearest cluster 6. Calculate the center of the newly formed clusters 7. Finally, repeat steps (4), (5) and (6) until either the center of the clusters does not change or we reach the set number of iterations • The key advantage of using k-means algorithm is that it is simple and easy to understand.
  • 18. Watershed based Segmentation • Watershed is a ridge approach, also a region-based method, which follows the concept of topological interpretation. • It considers the analogy of geographic landscape with ridges and valleys for various components of an image. The slope and elevation of the topography are distinctly quantified by the gray values of the respective pixels – called the gradient magnitude. • Based on this 3D representation which is usually followed for Earth landscapes, the watershed transform decomposes an image into regions that are called “catchment basins”. • For each local minimum, a catchment basin comprises all pixels whose path of steepest descent of gray values terminates at this minimum. The algorithm considers the pixels as a “local topography” (elevation), often initializing itself from user-defined markers. Then, the algorithm defines “basins” which are the minima points and hence, basins are flooded from the markers until basins meet on watershed lines. • The watersheds are formed that separate basins from each other. Hence the picture gets decomposed because we have pixels assigned to each such region or watershed
  • 19. Artificial Neural Network based Segmentation • ANN uses AI to automatically process and identify the components of an image like objects, faces, text, hand-written text etc. Convolutional Neural Networks are specifically used to identify and process high-definition image data. • An image is considered either as a set of vectors (colour annotated polygons) or a raster (a table of pixels with numerical values for colors). The vector or raster is turned into simpler components that represent the constituent physical objects and features in an image.
  • 20. Morphological based Segmentation • It is for analysing the geometric structure inherent within an image. • In this, the output image pixel values are based on similar pixels of input image with is neighbours and produces a new binary image. • This method is also used in foreground background separation. • The base of the morphological operation is dilation, erosion, opening, closing expressed in logical AND, OR. • This technique is mainly used in shape analysis and noise removal after thresholding an image. Example: watershed algorithm.
  • 21. References • Richard Szeliski, Computer Vision: Algorithms and Applications, Springer 2010