Download presentation
Presentation is loading. Please wait.
1
Now, we use two methods to do the morphological dilation to image A with B: A: B: + +: the origin
2
Method 1, which is provided in our ‘Solutions’. A: B: +
3
A: B: +
4
A: B: +
5
A: B: +
6
A: B: +
7
A: B: +
8
Method 2, which is you mentioned. A: B: +
9
First, we get the reflection of B: A: +
10
The result should be the set of all displacements, so that and A overlap by at least one element. A: +
11
For example, in this case, A and has one pixel overlapped, so the + will be one element of the set. A: + +
12
+ +
13
In this case, A and has one pixel overlapped, so the + will be one element of the set. + A: + +
14
++ +
15
+ + + In this case, A and has two pixels overlapped, so the + will also be one element of the set. +
16
+ A: + + +
17
+ + + + + Similarly, A and has two pixels overlapped, so the + will also be one element of the set.
18
+ + A: + + +
19
+ + + + ++
20
+ ++ + + +
21
+ ++ + + + +
22
+ +++ + + +
23
+ +++ + + + +
24
+ +++ + + + +
25
+ +++ + + + + +
26
+ +++ ++ + + +
27
+ +++ ++ + + + +
28
+ +++ +++ + + +
29
+ +++ +++ + + + +
30
+ +++ ++++ + + +
31
+ +++ ++++ + + + +
32
+ +++ ++++ + + + +
33
+ +++ ++++ + + + + +
34
+ +++ ++++ ++ + + +
35
+ +++ ++++ ++ + + + +
36
+ +++ ++++ ++ + + + +
37
+ +++ ++++ ++ + + + + In this way, we get the final set, which is same result as using method 1.
38
You can test ‘Exercise 5’ 1(a) with the comparison of method 1and 2. They would lead to the same result as well. As said in our textbook, the definition of dilation is not unique but equivalent. Here, we recommend to use the method 1 which is more intuitive. Note to use the tips we mentioned in ‘Solutions’ when deal with the situation with 0 as the origin. To evaluate results of morphological operations, an easier way is to turn to the Matlab. We have provided source code of ‘Exercise 5’ 1 and 2. Refer to the functions called corresponding to different operations.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.