Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

binary image erosion problem

Status
Not open for further replies.

jacynty123

Newbie level 1
Joined
Dec 6, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,291
Hi!
I have a problem with understanding some issues concerning mathematical morphology performer on binary image. When the structural element is matrix let’s say 3x3, then the result of binary image erosion is understandable for me. However I do not understand the case when we use , for example 2x2 matrix as structural element. The center point of this element is in the top left corner according to the equation used by MATLAB:
origin = floor((size(nhood)+1)/2), where nhood is our structural element. To specify, the I have a problem when in the center there is 0 not 1. Below is MATLAB code I used:
A=[0 0 0 0 0 0 0;0 0 1 1 1 0 0;0 0 1 1 1 0 0;0 0 1 0 1 0 0;...
0 0 0 1 1 0 0;0 0 1 1 1 0 0;0 0 0 0 0 0 0]
B = [0 1 0;1 0 1;0 1 0];
B1 = [1 0 1;0 1 0;1 0 1];
B2 = [0 1; 1 1];
C = imerode(A,B)
D = imerode(A,B1)
E = imerode(A,B2)
I would be grateful for any help with understanding this topic.
 

jacynty,


Could you provide the result picture of the filtered image matrix C,D,E ?
At least to me is not clear what problem is happening .


+++
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top