Dilation-Digital Image Processing-Lecture Slides, Slides of Digital Image Processing

Dr. Chittaranjan Verma delivered this lecture for Digital Image Processing course at B R Ambedkar National Institute of Technology. It includes: Dilation, Digital, Image, Processing, States, Dilation, Index, Pixels

Typology: Slides

2011/2012

Uploaded on 07/20/2012

shalaby_88cop
shalaby_88cop 🇮🇳

4.3

(15)

63 documents

1 / 22

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
2
Dilation
Definition 1: The dilation of two sets A and B is
defined as:
i.e. when the reflection of set B about its origin is shifted
by z, the dilation of A by B is the set of all displacements
such that overlaps A by at least one element
Definition 2: Minkowski’s Addition Definition
It states that the dilation of A by B is obtained by the union of
all translates of A, with the translation distance equal to the
row and column index of pixels of B that are logical 1
{|
()
}
z
AB zB A

B
()
b
bB
A
BA

docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16

Partial preview of the text

Download Dilation-Digital Image Processing-Lecture Slides and more Slides Digital Image Processing in PDF only on Docsity!

2

Dilation 

Definition 1: The dilation of two sets A and B isdefined as:

i.e. when the reflection of set B about its origin is shiftedby z, the dilation of A by B is the set of all displacementssuch that

overlaps A by at least one element

Definition 2: Minkowski’s Addition DefinitionIt states that the dilation of A by B is obtained by the union ofall translates of A, with the translation distance equal to therow and column index of pixels of B that are logical 1

|^

(^

)^

z

A

B

z

B

A

 B

(^

) b

b^

B

A

B

A

3

Dilation

Dilation process is analogous to convolution process 

B (structuring element) is considered as convolutionmask

B is flipped around the origin and then successivelydisplacing it so that it slides over set (image) A

But, Dilation is based on set operations whereasconvolution is based on arithmetic operations

Rule for Dilation In a binary image, if any of the pixel (in the neighborhooddefined by structuring element) is 1, then output is 1

5

Erosion 

Definition 1: The erosion of two sets A and B isdefined as:i.e. The Erosion of A by B is the set of all points z, such thatB, translated by z, is contained in A

Definition 2: Minkowski’s Subtraction DefinitionIt states that the erosion of A by B is obtained by theintersection of all translates of A, with the translation distanceequal to the row and column index of reflection pixels of B thatare logical 1.

z

A

B

z

B

A

(^

)^

b

b^

B

A

B

A

6

Erosion

Effects 

Shrinks the size of 1-valued objects 

Smoothes object boundaries 

Removes small objects

Rule for Erosion In a binary image, if any of the pixel (in the neighborhooddefined by structuring element) is 0, then output is 0

8

Erosion: Example

9

Erosion: Example

11

Dilation and Erosion: Application

12

Structuring element: Shapes

14

Opening and Closing: Example

15

Opening and Closing: Example

17

Hit or Miss Transform

A tool for shape detection or for the detection of adisjoint region in an image

Idea 

Suppose we have a binary image that contains certainshapes (circles, squares, lines, etc,….) called image A 

We use another image or matrix to search image A for aparticular pattern of bits. We will call this pattern “shape D” 

We then search image A for shape D 

Whenever there is a ‘hit’, we indicate where the center ofshape D was on image A.

18

Hit or Miss Transform: Idea

We take an binary image

We pick a shape to look for (an MxN matrix of 1’s and 0’s

We then look for those certain patterns of pixels

Every time we find the pattern, we make a mark at thecenter of the mask

20

Hit or Miss Transform ^

We want to detect disjoint region D in space A ^

Let D be enclosed by a small window W ^

The local background of D with respect to W is (W-D) ^

D is found by

(^

)^

(^

(^

))

c

A

D

A

W

D

21

Hit or Miss Transform

If B denotes the set composed of D and itsbackground, the match/hit (set of matches/hits) of Bin A is

Generalized notation: B = (B

, B 1

) where^2

B

: the set formed from elements of B associated with an 1 object i.e. B

1

= D

B

: the set formed from elements of B associated with the 2 background i.e. B

2

= W-D

(

)^

(

(

))

c

A

B

A

D

A

W

D

1

2

(

)

(

)

c

A

B

A

B

A

B

Thus,

contains all the origin points at which,

simultaneously, B

1

found a hit in A and B

2

found a hit in A

c

A

B