Digital Image Processing
Digital Image Processing
Group#7
PRESENTED BY
PRESENTED TO
MA’AM FIZZA JAHANGIR
Digital Image
Processing
Segmentation By Region Growing and By
Region Splitting And Merging, clustering
and superpixels.
Introduction
Image Segmentation
Region growing
Basic concepts of seed point
Important issues
Advantages and Disadvantages
Procedure for region growing
Region splitting and merging
Procedure for region splitting and merging
Definition of cluster
Region segmentation by clustering k- mean Algorithm
Definition of super pixels
Region segmentation by super pixels (SLIC Algorithm)
Definition of graph cuts
Segmentation by using graph cuts
What is image Segmentation?
• Image Segmentation is the process of
partitioning a digital image into multiple
segments.
• Image Segmentation is typically used to
locate objects and boundaries(lines ,
curves etc) in images.
Image segmentation
Image Segmentation
Techniques
• Image segmentation heavily rely on one of
the two properties of intensity values.
• Discontinuity
Partition based on abrupt change in
intensity. e.g. edge in an image
• Similarity
Partition based on intensity similarity,
e.g. thresholding, region growing,
region splitting and merging.
Image Segmentation
techniques
Region Growing
• Region growing is a simple region-based image
segmentation method. It is also classified as a pixel-
based image segmentation method since it involves
the selection of initial seed points.
• Edges and thresholds sometimes do not give good result
for segmentation .
• Region based segmentation is based on the connectivity
of similar pixels in a region.
• There are two main approaches to region based
segmentation:
region-splitting
region-merging
Region Growing
• is a simple region-based image segmentation method. It
is also classified as a pixel-based image segmentation
method since it involves the selection of initial
seed points.
• The main goal of segmentation is to partition an image
into regions. Some segmentation methods such as
thresholding achieve this goal by looking for the
boundaries between regions based on discontinuities in
grayscale or color properties.
• Region-based segmentation is a technique for
determining the region directly.
Region Growing
Why we use region growing
segmentation?
• The fundamental drawback of
histogram-based region detection is
that histograms provide no spatial
information (only the distribution of
gray levels).
• Region-growing approaches exploit the
important fact that pixels which are
close together have similar gray values.
Basic concepts Of Seed Points
• The first step in region growing is to select a set of
seed points. Seed point selection is based on some
user criterion (for example, pixels in a certain
grayscale range, pixels evenly spaced on a grid,
etc.). The initial region begins as the exact location
of these seeds.
• The regions are then grown from these seed points
to adjacent points depending on a region
membership criterion. The criterion could be pixel,
intensity, grayscale texture or colour.
Basic Concepts of seed points
• Here N is no of
pixels as input
image.
• K is super pixels used
to segments the
input image.
• S is distance
between centers.
Example:
• Find distance between
P1 to P2 and P1 to P3
Using formula
• here we have black
and white Pixels
Given: Find P1 to P2:
• In P1 we have RGB (0,0,0) are
components xy is column and row
which is (0,0)
• In P2 have RGB (1,1,1) are components
and xy is (0,1)
Find P1 to P3:
• In P3 have RGB (0,0,0) are components and xy
is (3,3)
ALGORITHM:
• Initialize the Algorithm
(sampling image at regular grid steps)