SlideShare a Scribd company logo
1 of 44
Image Segmentation
CIS 601 Fall 2004
Longin Jan Latecki
Image Segmentation
• Segmentation divides an image into its
constituent regions or objects.
• Segmentation of images is a difficult task in
image processing. Still under research.
• Segmentation allows to extract objects in
images.
• Segmentation is unsupervised learning.
• Model based object extraction, e.g.,
template matching, is supervised learning.
What it is useful for
• After a successful segmenting the image, the contours of
objects can be extracted using edge detection and/or
border following techniques.
• Shape of objects can be described.
• Based on shape, texture, and color objects can be
identified.
• Image segmentation techniques are extensively used in
similarity searches, e.g.:
http://elib.cs.berkeley.edu/photos/blobworld/
Segmentation Algorithms
• Segmentation algorithms are based on one of
two basic properties of color, gray values, or
texture: discontinuity and similarity.
• First category is to partition an image based on
abrupt changes in intensity, such as edges in an
image.
• Second category are based on partitioning an
image into regions that are similar according to a
predefined criteria. Histogram thresholding
approach falls under this category.
Domain spaces
spatial domain (row-column (rc) space)
histogram spaces
color space
texture space
other complex feature space
Clustering in Color Space
1. Each image point is mapped to a point in a color
space, e.g.:
Color(i, j) = (R (i, j), G(i, j), B(i, j))
It is many to one mapping.
2. The points in the color space are grouped to clusters.
3. The clusters are then mapped back to regions in the
image.
Examples
Mnp: 30, percent 0.05, cluster number 4
Mnp : 20, percent 0.05, cluster number 7
Original pictures segmented pictures
Displaying objects in the
Segmented Image
• The objects can be distinguished by
assigning an arbitrary pixel value or
average pixel value to the pixels belonging
to the same clusters.
Thus, one needs clustering algorithms
for image segmentation.
Homework 8:
Implement in Matlab and test on some example images
the clustering in the color space.
Use Euclidean distance in RGB color space.
You can use k-means, PAM, or some other clustering
algorithm.
Links to k-means, PAM, data normalization
Test images: rose, plane, car, tiger, landscape
Segmentation by Thresholding
• Suppose that the gray-level histogram
corresponds to an image f(x,y) composed of
dark objects on the light background, in such a
way that object and background pixels have
gray levels grouped into two dominant modes.
One obvious way to extract the objects from the
background is to select a threshold ‘T’ that
separates these modes.
• Then any point (x,y) for which f(x,y) < T is called
an object point, otherwise, the point is called a
background point.
Gray Scale Image Example
Image of a Finger Print with light background
Histogram
Segmented Image
Image after Segmentation
In Matlab histograms for images can be
constructed using the imhist command.
I = imread('pout.tif');
figure, imshow(I);
figure, imhist(I) %look at the hist to get a threshold, e.g., 110
BW=roicolor(I, 110, 255); % makes a binary image
figure, imshow(BW) % all pixels in (110, 255) will be 1 and white
% the rest is 0 which is black
roicolor returns a region of interest selected as those pixels in I that
match the values in the gray level interval.
BW is a binary image with 1's where the values of I match the values
of the interval.
Thresholding Bimodal Histograms
• Basic Global Thresholding:
1)Select an initial estimate for T
2)Segment the image using T. This will produce two
groups of pixels. G1 consisting of all pixels with gray
level values >T and G2 consisting of pixels with values
<=T.
3)Compute the average gray level values mean1 and
mean2 for the pixels in regions G1 and G2.
4)Compute a new threshold value
T=(1/2)(mean1 +mean2)
5)Repeat steps 2 through 4 until difference in T in
successive iterations is smaller than a predefined
parameter T0.
Gray Scale Image - bimodal
Image of rice with black background
Segmented Image
Image after segmentation
Image histogram of rice
Basic Adaptive Thresholding:
Images having uneven illumination makes it difficult
to segment using histogram,
this approach is to divide the original image
into sub images
and use the thresholding process
to each of the sub images.
Multimodal Histogram
• If there are three or more dominant modes in the
image histogram, the histogram has to be
partitioned by multiple thresholds.
• Multilevel thresholding classifies a point (x,y) as
belonging to one object class
if T1 < (x,y) <= T2,
to the other object class
if f(x,y) > T2
and to the background
if f(x,y) <= T1.
Thresholding multimodal histograms
• A method based on
Discrete Curve Evolution
to find thresholds in the histogram.
• The histogram is treated as a polyline
and is simplified until a few vertices remain.
• Thresholds are determined by vertices that are local
minima.
Discrete Curve Evolution (DCE)
u
v
w u
v
w
It yields a sequence: P=P0, ..., Pm
Pi+1 is obtained from Pi by deleting the vertices of Pi
that have minimal relevance measure
K(v, Pi) = |d(u,v)+d(v,w)-d(u,w)|
>
Gray Scale Image - Multimodal
Original Image of lena
Multimodal Histogram
Histogram of lena
Segmented Image
Image after segmentation – we get a outline of her face, hat, shadow etc
Color Image - bimodal
Colour Image having a bimodal histogram
Histogram
Histograms for the three colour spaces
Segmented Image
Segmented image, skin color is shown
Split and Merge
• The goal of Image Segmentation is to find
regions that represent objects or
meaningful parts of objects. Major
problems of image segmentation are result
of noise in the image.
• An image domain X must be segmented in
N different regions R(1),…,R(N)
• The segmentation rule is a logical
predicate of the form P(R)
Introduction
• Image segmentation with respect to
predicate P partitions the image X into
subregions R(i), i=1,…,N such that
X = i=1,..N U R(i)
R(i) ∩ R(j) = 0 for I ≠ j
P(R(i)) = TRUE for i = 1,2,…,N
P(R(i) U R(j)) = FALSE for i ≠ j
Introduction
• The segmentation property is a logical
predicate of the form P(R,x,t)
• x is a feature vector associated with region
R
• t is a set of parameters (usually
thresholds). A simple segmentation rule
has the form:
P(R) : I(r,c) < T for all (r,c) in R
Introduction
• In the case of color images the feature
vector x can be three RGB image
components (R(r,c),G(r,c),B(r,c))
• A simple segmentation rule may have the
form:
P(R) : (R(r,c) <T(R)) && (G(r,c)<T(G))&&
(B(r,c) < T(B))
Region Growing (Merge)
• A simple approach to image segmentation
is to start from some pixels (seeds)
representing distinct image regions and to
grow them, until they cover the entire
image
• For region growing we need a rule
describing a growth mechanism and a rule
checking the homogeneity of the regions
after each growth step
Region Growing
• The growth mechanism – at each stage k
and for each region Ri(k), i = 1,…,N, we
check if there are unclassified pixels in the
8-neighbourhood of each pixel of the
region border
• Before assigning such a pixel x to a region
Ri(k),we check if the region homogeneity:
P(Ri(k) U {x}) = TRUE , is valid
Region Growing Predicate
The predicate
P: |m(R1) – m(R2)| < k*min{std(R1), std(R2)},
is used to decide if the merging
of the two regions R1, R2 is allowed, i.e.,
if |m(R1) – m(R2)| < k*min{std(R1), std(R2)},
two regions R1, R2 are merged.



R
c
r
c
r
I
n
R
m
)
,
(
)
,
(
1
)
(
The arithmetic mean m and standard deviation std of a
region R having n =|R| pixels:





R
c
r
R
m
c
r
I
n
R
std
)
,
(
2
))
(
)
,
(
(
1
1
)
(
Split
• The opposite approach to region growing is
region splitting.
• It is a top-down approach and it starts with the
assumption that the entire image is
homogeneous
• If this is not true, the image is split into four sub
images
• This splitting procedure is repeated recursively
until we split the image into homogeneous
regions
Split
• If the original image is square N x N, having
dimensions that are powers of 2(N = 2n):
• All regions produced but the splitting algorithm
are squares having dimensions M x M , where
M is a power of 2 as well.
• Since the procedure is recursive, it produces an
image representation that can be described by a
tree whose nodes have four sons each
• Such a tree is called a Quadtree.
Split
Quadtree
R0 R1
R2
R3
R0
R1
R00 R01 R02 R04
Split
• Splitting techniques disadvantage, they
create regions that may be adjacent and
homogeneous, but not merged.
• Split and Merge method is an iterative
algorithm that includes both splitting and
merging at each iteration:
Split / Merge
• If a region R is inhomogeneous
(P(R)= False) then is split into four sub
regions
• If two adjacent regions Ri,Rj are
homogeneous (P(Ri U Rj) = TRUE), they
are merged
• The algorithm stops when no further
splitting or merging is possible
Split / Merge
• The split and merge algorithm produces
more compact regions than the pure
splitting algorithm
Applications
• 3D – Imaging : A basic task in 3-D image
processing is the segmentation of an image
which classifies voxels/pixels into objects or
groups. 3-D image segmentation makes it
possible to create 3-D rendering for multiple
objects and perform quantitative analysis for the
size, density and other parameters of detected
objects.
• Several applications in the field of Medicine like
magnetic resonance imaging (MRI).
Results – Region grow
Results – Region Split
Results – Region Split and
Merge

More Related Content

What's hot

IMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESIMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESVicky Kumar
 
Image segmentation
Image segmentationImage segmentation
Image segmentationDeepak Kumar
 
IMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGES
IMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGESIMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGES
IMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGEScseij
 
Comparison of image segmentation
Comparison of image segmentationComparison of image segmentation
Comparison of image segmentationHaitham Ahmed
 
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPT
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPTImage Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPT
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPTAkshit Arora
 
Threshold Selection for Image segmentation
Threshold Selection for Image segmentationThreshold Selection for Image segmentation
Threshold Selection for Image segmentationParijat Sinha
 
Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)VARUN KUMAR
 
Image segmentation
Image segmentationImage segmentation
Image segmentationkhyati gupta
 
Graph Image Segmentation
Graph Image SegmentationGraph Image Segmentation
Graph Image SegmentationManohar Kuse
 
Comparative study on image segmentation techniques
Comparative study on image segmentation techniquesComparative study on image segmentation techniques
Comparative study on image segmentation techniquesgmidhubala
 
Image segmentation ajal
Image segmentation ajalImage segmentation ajal
Image segmentation ajalAJAL A J
 
GRAY SCALE IMAGE SEGMENTATION USING OTSU THRESHOLDING OPTIMAL APPROACH
GRAY SCALE IMAGE SEGMENTATION USING OTSU THRESHOLDING OPTIMAL APPROACHGRAY SCALE IMAGE SEGMENTATION USING OTSU THRESHOLDING OPTIMAL APPROACH
GRAY SCALE IMAGE SEGMENTATION USING OTSU THRESHOLDING OPTIMAL APPROACHJournal For Research
 
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
 
Image processing
Image processingImage processing
Image processingabuamo
 
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project R...
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project R...Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project R...
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project R...Akshit Arora
 

What's hot (20)

IMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESIMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUES
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
IMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGES
IMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGESIMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGES
IMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGES
 
Comparison of image segmentation
Comparison of image segmentationComparison of image segmentation
Comparison of image segmentation
 
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPT
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPTImage Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPT
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPT
 
Threshold Selection for Image segmentation
Threshold Selection for Image segmentationThreshold Selection for Image segmentation
Threshold Selection for Image segmentation
 
Segmentation Techniques -I
Segmentation Techniques -ISegmentation Techniques -I
Segmentation Techniques -I
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Graph Image Segmentation
Graph Image SegmentationGraph Image Segmentation
Graph Image Segmentation
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Comparative study on image segmentation techniques
Comparative study on image segmentation techniquesComparative study on image segmentation techniques
Comparative study on image segmentation techniques
 
Segmentation
SegmentationSegmentation
Segmentation
 
Image segmentation ajal
Image segmentation ajalImage segmentation ajal
Image segmentation ajal
 
Watershed
WatershedWatershed
Watershed
 
GRAY SCALE IMAGE SEGMENTATION USING OTSU THRESHOLDING OPTIMAL APPROACH
GRAY SCALE IMAGE SEGMENTATION USING OTSU THRESHOLDING OPTIMAL APPROACHGRAY SCALE IMAGE SEGMENTATION USING OTSU THRESHOLDING OPTIMAL APPROACH
GRAY SCALE IMAGE SEGMENTATION USING OTSU THRESHOLDING OPTIMAL APPROACH
 
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
 
Image processing
Image processingImage processing
Image processing
 
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project R...
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project R...Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project R...
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project R...
 

Viewers also liked

various methods for image segmentation
various methods for image segmentationvarious methods for image segmentation
various methods for image segmentationRaveesh Methi
 
Breast Lesion Segmentation in Ultrasound Images
Breast Lesion Segmentation in Ultrasound ImagesBreast Lesion Segmentation in Ultrasound Images
Breast Lesion Segmentation in Ultrasound ImagesMohamed Elawady
 
Mri brain tumour detection by histogram and segmentation
Mri brain tumour detection by histogram and segmentationMri brain tumour detection by histogram and segmentation
Mri brain tumour detection by histogram and segmentationiaemedu
 
05 histogram processing DIP
05 histogram processing DIP05 histogram processing DIP
05 histogram processing DIPbabak danyal
 
BRAIN TUMOR MRI IMAGE SEGMENTATION AND DETECTION IN IMAGE PROCESSING
BRAIN TUMOR MRI IMAGE SEGMENTATION AND DETECTION IN IMAGE PROCESSINGBRAIN TUMOR MRI IMAGE SEGMENTATION AND DETECTION IN IMAGE PROCESSING
BRAIN TUMOR MRI IMAGE SEGMENTATION AND DETECTION IN IMAGE PROCESSINGDharshika Shreeganesh
 
Digital image processing using matlab
Digital image processing using matlab Digital image processing using matlab
Digital image processing using matlab Amr Rashed
 
Image proceesing with matlab
Image proceesing with matlabImage proceesing with matlab
Image proceesing with matlabAshutosh Shahi
 
Solar Inverter Project Report
Solar Inverter Project ReportSolar Inverter Project Report
Solar Inverter Project ReportHitesh Gupta
 
Fifty Features of Java EE 7 in 50 Minutes
Fifty Features of Java EE 7 in 50 MinutesFifty Features of Java EE 7 in 50 Minutes
Fifty Features of Java EE 7 in 50 Minutesglassfish
 

Viewers also liked (20)

various methods for image segmentation
various methods for image segmentationvarious methods for image segmentation
various methods for image segmentation
 
Breast Lesion Segmentation in Ultrasound Images
Breast Lesion Segmentation in Ultrasound ImagesBreast Lesion Segmentation in Ultrasound Images
Breast Lesion Segmentation in Ultrasound Images
 
Mri brain tumour detection by histogram and segmentation
Mri brain tumour detection by histogram and segmentationMri brain tumour detection by histogram and segmentation
Mri brain tumour detection by histogram and segmentation
 
Dip day1&2
Dip day1&2Dip day1&2
Dip day1&2
 
Research methodology
Research methodologyResearch methodology
Research methodology
 
05 histogram processing DIP
05 histogram processing DIP05 histogram processing DIP
05 histogram processing DIP
 
Robust watermarking technique sppt
Robust watermarking technique spptRobust watermarking technique sppt
Robust watermarking technique sppt
 
BRAIN TUMOR MRI IMAGE SEGMENTATION AND DETECTION IN IMAGE PROCESSING
BRAIN TUMOR MRI IMAGE SEGMENTATION AND DETECTION IN IMAGE PROCESSINGBRAIN TUMOR MRI IMAGE SEGMENTATION AND DETECTION IN IMAGE PROCESSING
BRAIN TUMOR MRI IMAGE SEGMENTATION AND DETECTION IN IMAGE PROCESSING
 
basic research mcqs
basic research mcqsbasic research mcqs
basic research mcqs
 
Digital image processing using matlab
Digital image processing using matlab Digital image processing using matlab
Digital image processing using matlab
 
Image proceesing with matlab
Image proceesing with matlabImage proceesing with matlab
Image proceesing with matlab
 
SOLAR INVERTER
SOLAR INVERTER SOLAR INVERTER
SOLAR INVERTER
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
 
Solar Inverter Project Report
Solar Inverter Project ReportSolar Inverter Project Report
Solar Inverter Project Report
 
Getting started with image processing using Matlab
Getting started with image processing using MatlabGetting started with image processing using Matlab
Getting started with image processing using Matlab
 
Intro To Ultrasonics
Intro To UltrasonicsIntro To Ultrasonics
Intro To Ultrasonics
 
Research methodology notes
Research methodology notesResearch methodology notes
Research methodology notes
 
Spc training
Spc training Spc training
Spc training
 
Principles of design
Principles of designPrinciples of design
Principles of design
 
Fifty Features of Java EE 7 in 50 Minutes
Fifty Features of Java EE 7 in 50 MinutesFifty Features of Java EE 7 in 50 Minutes
Fifty Features of Java EE 7 in 50 Minutes
 

Similar to Im seg04

Similar to Im seg04 (20)

regions
regionsregions
regions
 
Dip digital image 3
Dip digital image 3Dip digital image 3
Dip digital image 3
 
DIP Notes Unit-1 PPT.pdf
DIP Notes Unit-1 PPT.pdfDIP Notes Unit-1 PPT.pdf
DIP Notes Unit-1 PPT.pdf
 
DIP Notes Unit-1 PPT , engineering, computer Science
DIP Notes Unit-1 PPT , engineering, computer ScienceDIP Notes Unit-1 PPT , engineering, computer Science
DIP Notes Unit-1 PPT , engineering, computer Science
 
PPT s07-machine vision-s2
PPT s07-machine vision-s2PPT s07-machine vision-s2
PPT s07-machine vision-s2
 
08 cie552 image_segmentation
08 cie552 image_segmentation08 cie552 image_segmentation
08 cie552 image_segmentation
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1
 
Image Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptImage Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.ppt
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
PPT s08-machine vision-s2
PPT s08-machine vision-s2PPT s08-machine vision-s2
PPT s08-machine vision-s2
 
ACMP340.pptx
ACMP340.pptxACMP340.pptx
ACMP340.pptx
 
Module 2
Module 2Module 2
Module 2
 
Images Analysis  in matlab
Images Analysis  in matlabImages Analysis  in matlab
Images Analysis  in matlab
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Cj36511514
Cj36511514Cj36511514
Cj36511514
 
Chap5 imange enhancemet
Chap5 imange enhancemetChap5 imange enhancemet
Chap5 imange enhancemet
 
ImageSegmentation (1).ppt
ImageSegmentation (1).pptImageSegmentation (1).ppt
ImageSegmentation (1).ppt
 
ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.ppt
 
ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.ppt
 

Recently uploaded

Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 

Im seg04

  • 1. Image Segmentation CIS 601 Fall 2004 Longin Jan Latecki
  • 2. Image Segmentation • Segmentation divides an image into its constituent regions or objects. • Segmentation of images is a difficult task in image processing. Still under research. • Segmentation allows to extract objects in images. • Segmentation is unsupervised learning. • Model based object extraction, e.g., template matching, is supervised learning.
  • 3. What it is useful for • After a successful segmenting the image, the contours of objects can be extracted using edge detection and/or border following techniques. • Shape of objects can be described. • Based on shape, texture, and color objects can be identified. • Image segmentation techniques are extensively used in similarity searches, e.g.: http://elib.cs.berkeley.edu/photos/blobworld/
  • 4. Segmentation Algorithms • Segmentation algorithms are based on one of two basic properties of color, gray values, or texture: discontinuity and similarity. • First category is to partition an image based on abrupt changes in intensity, such as edges in an image. • Second category are based on partitioning an image into regions that are similar according to a predefined criteria. Histogram thresholding approach falls under this category.
  • 5. Domain spaces spatial domain (row-column (rc) space) histogram spaces color space texture space other complex feature space
  • 6. Clustering in Color Space 1. Each image point is mapped to a point in a color space, e.g.: Color(i, j) = (R (i, j), G(i, j), B(i, j)) It is many to one mapping. 2. The points in the color space are grouped to clusters. 3. The clusters are then mapped back to regions in the image.
  • 7. Examples Mnp: 30, percent 0.05, cluster number 4 Mnp : 20, percent 0.05, cluster number 7 Original pictures segmented pictures
  • 8. Displaying objects in the Segmented Image • The objects can be distinguished by assigning an arbitrary pixel value or average pixel value to the pixels belonging to the same clusters.
  • 9. Thus, one needs clustering algorithms for image segmentation. Homework 8: Implement in Matlab and test on some example images the clustering in the color space. Use Euclidean distance in RGB color space. You can use k-means, PAM, or some other clustering algorithm. Links to k-means, PAM, data normalization Test images: rose, plane, car, tiger, landscape
  • 10. Segmentation by Thresholding • Suppose that the gray-level histogram corresponds to an image f(x,y) composed of dark objects on the light background, in such a way that object and background pixels have gray levels grouped into two dominant modes. One obvious way to extract the objects from the background is to select a threshold ‘T’ that separates these modes. • Then any point (x,y) for which f(x,y) < T is called an object point, otherwise, the point is called a background point.
  • 11. Gray Scale Image Example Image of a Finger Print with light background
  • 14. In Matlab histograms for images can be constructed using the imhist command. I = imread('pout.tif'); figure, imshow(I); figure, imhist(I) %look at the hist to get a threshold, e.g., 110 BW=roicolor(I, 110, 255); % makes a binary image figure, imshow(BW) % all pixels in (110, 255) will be 1 and white % the rest is 0 which is black roicolor returns a region of interest selected as those pixels in I that match the values in the gray level interval. BW is a binary image with 1's where the values of I match the values of the interval.
  • 15. Thresholding Bimodal Histograms • Basic Global Thresholding: 1)Select an initial estimate for T 2)Segment the image using T. This will produce two groups of pixels. G1 consisting of all pixels with gray level values >T and G2 consisting of pixels with values <=T. 3)Compute the average gray level values mean1 and mean2 for the pixels in regions G1 and G2. 4)Compute a new threshold value T=(1/2)(mean1 +mean2) 5)Repeat steps 2 through 4 until difference in T in successive iterations is smaller than a predefined parameter T0.
  • 16. Gray Scale Image - bimodal Image of rice with black background
  • 17. Segmented Image Image after segmentation Image histogram of rice
  • 18. Basic Adaptive Thresholding: Images having uneven illumination makes it difficult to segment using histogram, this approach is to divide the original image into sub images and use the thresholding process to each of the sub images.
  • 19. Multimodal Histogram • If there are three or more dominant modes in the image histogram, the histogram has to be partitioned by multiple thresholds. • Multilevel thresholding classifies a point (x,y) as belonging to one object class if T1 < (x,y) <= T2, to the other object class if f(x,y) > T2 and to the background if f(x,y) <= T1.
  • 20. Thresholding multimodal histograms • A method based on Discrete Curve Evolution to find thresholds in the histogram. • The histogram is treated as a polyline and is simplified until a few vertices remain. • Thresholds are determined by vertices that are local minima.
  • 21. Discrete Curve Evolution (DCE) u v w u v w It yields a sequence: P=P0, ..., Pm Pi+1 is obtained from Pi by deleting the vertices of Pi that have minimal relevance measure K(v, Pi) = |d(u,v)+d(v,w)-d(u,w)| >
  • 22. Gray Scale Image - Multimodal Original Image of lena
  • 24. Segmented Image Image after segmentation – we get a outline of her face, hat, shadow etc
  • 25. Color Image - bimodal Colour Image having a bimodal histogram
  • 26. Histogram Histograms for the three colour spaces
  • 27. Segmented Image Segmented image, skin color is shown
  • 28. Split and Merge • The goal of Image Segmentation is to find regions that represent objects or meaningful parts of objects. Major problems of image segmentation are result of noise in the image. • An image domain X must be segmented in N different regions R(1),…,R(N) • The segmentation rule is a logical predicate of the form P(R)
  • 29. Introduction • Image segmentation with respect to predicate P partitions the image X into subregions R(i), i=1,…,N such that X = i=1,..N U R(i) R(i) ∩ R(j) = 0 for I ≠ j P(R(i)) = TRUE for i = 1,2,…,N P(R(i) U R(j)) = FALSE for i ≠ j
  • 30. Introduction • The segmentation property is a logical predicate of the form P(R,x,t) • x is a feature vector associated with region R • t is a set of parameters (usually thresholds). A simple segmentation rule has the form: P(R) : I(r,c) < T for all (r,c) in R
  • 31. Introduction • In the case of color images the feature vector x can be three RGB image components (R(r,c),G(r,c),B(r,c)) • A simple segmentation rule may have the form: P(R) : (R(r,c) <T(R)) && (G(r,c)<T(G))&& (B(r,c) < T(B))
  • 32. Region Growing (Merge) • A simple approach to image segmentation is to start from some pixels (seeds) representing distinct image regions and to grow them, until they cover the entire image • For region growing we need a rule describing a growth mechanism and a rule checking the homogeneity of the regions after each growth step
  • 33. Region Growing • The growth mechanism – at each stage k and for each region Ri(k), i = 1,…,N, we check if there are unclassified pixels in the 8-neighbourhood of each pixel of the region border • Before assigning such a pixel x to a region Ri(k),we check if the region homogeneity: P(Ri(k) U {x}) = TRUE , is valid
  • 34. Region Growing Predicate The predicate P: |m(R1) – m(R2)| < k*min{std(R1), std(R2)}, is used to decide if the merging of the two regions R1, R2 is allowed, i.e., if |m(R1) – m(R2)| < k*min{std(R1), std(R2)}, two regions R1, R2 are merged.    R c r c r I n R m ) , ( ) , ( 1 ) ( The arithmetic mean m and standard deviation std of a region R having n =|R| pixels:      R c r R m c r I n R std ) , ( 2 )) ( ) , ( ( 1 1 ) (
  • 35. Split • The opposite approach to region growing is region splitting. • It is a top-down approach and it starts with the assumption that the entire image is homogeneous • If this is not true, the image is split into four sub images • This splitting procedure is repeated recursively until we split the image into homogeneous regions
  • 36. Split • If the original image is square N x N, having dimensions that are powers of 2(N = 2n): • All regions produced but the splitting algorithm are squares having dimensions M x M , where M is a power of 2 as well. • Since the procedure is recursive, it produces an image representation that can be described by a tree whose nodes have four sons each • Such a tree is called a Quadtree.
  • 38. Split • Splitting techniques disadvantage, they create regions that may be adjacent and homogeneous, but not merged. • Split and Merge method is an iterative algorithm that includes both splitting and merging at each iteration:
  • 39. Split / Merge • If a region R is inhomogeneous (P(R)= False) then is split into four sub regions • If two adjacent regions Ri,Rj are homogeneous (P(Ri U Rj) = TRUE), they are merged • The algorithm stops when no further splitting or merging is possible
  • 40. Split / Merge • The split and merge algorithm produces more compact regions than the pure splitting algorithm
  • 41. Applications • 3D – Imaging : A basic task in 3-D image processing is the segmentation of an image which classifies voxels/pixels into objects or groups. 3-D image segmentation makes it possible to create 3-D rendering for multiple objects and perform quantitative analysis for the size, density and other parameters of detected objects. • Several applications in the field of Medicine like magnetic resonance imaging (MRI).
  • 44. Results – Region Split and Merge