Docsity

Morphological Image Processing, Summaries of Computer Science

Partial preview of the text

Download Morphological Image Processing and more Summaries Computer Science in PDF only on Docsity!

Digital Image Processing

Morphological Image Processing

Contents

Once segmentation is complete, morphological

operations can be used to remove imperfections

in the segmented image and provide information

on the form and structure of the image

In this lecture we will consider

  • What is morphology?
  • Simple morphological operations
  • Compound operations
  • Morphological algorithms

What Is Morphology?

Morphological image processing (or

morphology ) describes a range of image

processing techniques that deal with the shape

(or morphology) of features in an image

Morphological operations are typically applied

to remove imperfections introduced during

segmentation, and so typically operate on bi-

level images

Quick Example

Images taken from Gonzalez & Woods, Digital Image Processing ( 2002 ) Image after segmentation Image after segmentation and morphological processing

Structuring Elements

Structuring elements can be any size and make

any shape

However, for simplicity we will use rectangular

structuring elements with their origin at the

middle pixel

Fitting & Hitting

B C

A

1 1 1 1 1 1 1 1 1 Structuring Element 1 0 1 0 1 1 1 0 1 0 Structuring Element 2

Erosion

Erosion of image f by structuring element s is

given by f  s

The structuring element s is positioned with its

origin at (x, y) and the new pixel value is

determined using the rule:

0 otherwise

1 if fits

s f

g x y

Erosion Example

Structuring Element

Original Image (^) Processed Image With Eroded Pixels

Erosion Example 1

Watch out: In these examples a 1 refers to a black pixel! Original image Erosion by 3* square structuring element Erosion by 5 * 5 square structuring element

Erosion Example 2

Original image After erosion with a disc of radius 10 After erosion with a disc of radius 20 After erosion with a disc of radius 5 Images taken from Gonzalez & Woods, Digital Image Processing ( 2002 )

Dilation

Dilation of image f by structuring element s is

given by f s

The structuring element s is positioned with its

origin at (x, y) and the new pixel value is

determined using the rule:

0 otherwise

1 if hits

s f

g x y

Dilation Example

Structuring Element

Original Image (^) Processed Image

Dilation Example 1

Original image Dilation by 3 * 3 square structuring element Dilation by 5* square structuring element Watch out: In these examples a 1 refers to a black pixel!

Dilation Example 2

Structuring element Original image (^) After dilation