0% found this document useful (0 votes)
18 views34 pages

Binary Morphology

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views34 pages

Binary Morphology

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 34

İKİLİ GÖRÜNTÜ ANALİZİ İÇİN

MORFOLOJİK İŞLEMLER
Robot Görüsü

Doç. Dr. Hasan OCAK


Binary image analysis
• Binary image analysis consists of a set of operations that
are used to produce or process binary images, usually
images of 0’s and 1’s where

• 0 represents the background,


• 1 represents the foreground.

00010010001000
00011110001000
00010010001000
Application areas

• Document analysis

• Industrial inspection

• Medical imaging

Adapted from Shapiro and Stockman


Operations
• Separate objects from background and from one another.

• Aggregate pixels for each object.

• Compute features for each object.


Example: red blood cell image
• Many blood cells are
separate objects.
• Many touch each other
 bad!
• Salt and pepper noise is
present.
• How useful is this data?

 63 separate objects are


detected.
 Single cells have area of
about 50 pixels.
Adapted from Linda Shapiro, U of
Washington
Mathematical morphology
• The word morphology refers to form and structure.
• In computer vision, it is used to refer to the shape of a
region.
• The language of mathematical morphology is set theory
where sets represent objects in an image.
• We will discuss morphological operations on binary
images whose components are sets in the 2D integer
space Z2.
Mathematical morphology
• Mathematical morphology consists of two basic
operations
• dilation
• erosion

and several composite relations


• opening
• closing
• …
Dilation
• Dilation expands the connected sets of 1s of a binary
image.
• It can be used for

• growing features

• filling holes and gaps

Adapted from Linda Shapiro, U of


Washington
Erosion
• Erosion shrinks the connected sets of 1s of a binary
image.
• It can be used for

• shrinking features

• removing bridges, branches and small protrusions

Adapted from Linda Shapiro, U of


Washington
Basic Set Operations
Basic Set Operations
Dilation
Dilation: Example 1
Dilation: Example 2
Dilation - Application
Erosion
Erosion: Example 1
Erosion – Example 2
Erosion - Application
Opening and Closing
Closing - Example
Opening: Example
Examples

Original image Eroded once Eroded twice


Examples

Origina Opene
l image d twice

Origina Closed
l image once
Examples
Face Detection Application
Boundary Extraction
Region Filling
Region Filling

Adapted from Gonzales and Woods


Region Filling - Example

Adapted from Gonzales and Woods


Hit-or-Miss Transformation
Hit-or-Miss Transformation - Example
Example - continued
Example - continued

You might also like