SlideShare a Scribd company logo
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

More Related Content

What's hot

Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image Processing
Pallavi Agarwal
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
University of Potsdam
 
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
 
ImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).pptImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).ppt
VikramBarapatre2
 
Image processing fundamentals
Image processing fundamentalsImage processing fundamentals
Image processing fundamentals
A B Shinde
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
Kalyan Acharjya
 
Morphological operations
Morphological operationsMorphological operations
Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domainAshish Kumar
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
Mathankumar S
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
A B Shinde
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filter
arulraj121
 
Segmentation Techniques -I
Segmentation Techniques -ISegmentation Techniques -I
Segmentation Techniques -I
Hemantha Kulathilake
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processing
Abinaya B
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
asodariyabhavesh
 
Thresholding.ppt
Thresholding.pptThresholding.ppt
Thresholding.ppt
shankar64
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
Poonam Seth
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
kiruthiammu
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
kavitha muneeshwaran
 
Region Splitting and Merging Technique For Image segmentation.
Region Splitting and Merging Technique For Image segmentation.Region Splitting and Merging Technique For Image segmentation.
Region Splitting and Merging Technique For Image segmentation.
SomitSamanto1
 
Image feature extraction
Image feature extractionImage feature extraction
Image feature extraction
Rishabh shah
 

What's hot (20)

Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image Processing
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
 
ImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).pptImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).ppt
 
Image processing fundamentals
Image processing fundamentalsImage processing fundamentals
Image processing fundamentals
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
Morphological operations
Morphological operationsMorphological operations
Morphological operations
 
Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domain
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filter
 
Segmentation Techniques -I
Segmentation Techniques -ISegmentation Techniques -I
Segmentation Techniques -I
 
Image filtering in Digital image processing
Image filtering in Digital image processingImage filtering in Digital image processing
Image filtering in Digital image processing
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Thresholding.ppt
Thresholding.pptThresholding.ppt
Thresholding.ppt
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 
Region Splitting and Merging Technique For Image segmentation.
Region Splitting and Merging Technique For Image segmentation.Region Splitting and Merging Technique For Image segmentation.
Region Splitting and Merging Technique For Image segmentation.
 
Image feature extraction
Image feature extractionImage feature extraction
Image feature extraction
 

Similar to Image segmentation

SIRG-BSU_3_used-important.pdf
SIRG-BSU_3_used-important.pdfSIRG-BSU_3_used-important.pdf
SIRG-BSU_3_used-important.pdf
DrAhmedElngar
 
Digital Image Processing.pptx
Digital Image Processing.pptxDigital Image Processing.pptx
Digital Image Processing.pptx
Aishwarya SenthilNathan
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
Bulbul Agrawal
 
digital image processing.pptx
digital image processing.pptxdigital image processing.pptx
digital image processing.pptx
nibiganesh
 
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
Editor IJMTER
 
vision_image_segmentation.pptx
vision_image_segmentation.pptxvision_image_segmentation.pptx
vision_image_segmentation.pptx
vrushalikanawade2
 
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
inventionjournals
 
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.ppt
RaviSharma65345
 
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
sivan96
 
Object tracking
Object trackingObject tracking
Object tracking
ahmadamin636
 
Image processing.pdf
Image processing.pdfImage processing.pdf
Image processing.pdf
JasaRChoudhary
 
Hidden Surface Removal.pptx
Hidden Surface Removal.pptxHidden Surface Removal.pptx
Hidden Surface Removal.pptx
bcanawakadalcollege
 
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
IOSR Journals
 
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
RCC Institute of Information Technology
 
Image Segmentation Using Pairwise Correlation Clustering
Image Segmentation Using Pairwise Correlation ClusteringImage Segmentation Using Pairwise Correlation Clustering
Image Segmentation Using Pairwise Correlation Clustering
IJERA Editor
 
dip.pptx
dip.pptxdip.pptx
dip.pptx
Sameenafathima4
 
Hidden Surface Removal methods.pptx
Hidden Surface Removal methods.pptxHidden Surface Removal methods.pptx
Hidden Surface Removal methods.pptx
bcanawakadalcollege
 

Similar to 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
 

More from Kuppusamy P

Recurrent neural networks rnn
Recurrent neural networks   rnnRecurrent neural networks   rnn
Recurrent neural networks rnn
Kuppusamy P
 
Deep learning
Deep learningDeep learning
Deep learning
Kuppusamy P
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
Kuppusamy P
 
Feature detection and matching
Feature detection and matchingFeature detection and matching
Feature detection and matching
Kuppusamy P
 
Image processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filters
Kuppusamy P
 
Flowchart design for algorithms
Flowchart design for algorithmsFlowchart design for algorithms
Flowchart design for algorithms
Kuppusamy P
 
Algorithm basics
Algorithm basicsAlgorithm basics
Algorithm basics
Kuppusamy P
 
Problem solving using Programming
Problem solving using ProgrammingProblem solving using Programming
Problem solving using Programming
Kuppusamy 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
 
Strings in java
Strings in javaStrings in java
Strings in java
Kuppusamy P
 
Java methods or Subroutines or Functions
Java methods or Subroutines or FunctionsJava methods or Subroutines or Functions
Java methods or Subroutines or Functions
Kuppusamy P
 
Java arrays
Java arraysJava arrays
Java arrays
Kuppusamy P
 
Java iterative statements
Java iterative statementsJava iterative statements
Java iterative statements
Kuppusamy P
 
Java conditional statements
Java conditional statementsJava conditional statements
Java conditional statements
Kuppusamy P
 
Java data types
Java data typesJava data types
Java data types
Kuppusamy P
 
Java introduction
Java introductionJava introduction
Java introduction
Kuppusamy P
 
Logistic regression in Machine Learning
Logistic regression in Machine LearningLogistic regression in Machine Learning
Logistic regression in Machine Learning
Kuppusamy 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 Learning
Kuppusamy P
 
Machine Learning Performance metrics for classification
Machine Learning Performance metrics for classificationMachine Learning Performance metrics for classification
Machine Learning Performance metrics for classification
Kuppusamy P
 
Machine learning Introduction
Machine learning IntroductionMachine learning Introduction
Machine learning Introduction
Kuppusamy P
 

More from 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
 

Recently uploaded

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
GeoBlogs
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 

Recently uploaded (20)

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 

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