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.

How to Filter this Image in MATLAB?

Status
Not open for further replies.

panda1234

Full Member level 2
Joined
Jan 22, 2015
Messages
125
Helped
4
Reputation
8
Reaction score
4
Trophy points
18
Activity points
1,172
Hi, I have the left picture and i want to filter like right picture.how i do this in MATLAB?
Untitled.png
 

chris.mourad

Member level 3
Joined
Sep 9, 2011
Messages
65
Helped
12
Reputation
24
Reaction score
12
Trophy points
1,288
Location
Brussels
Activity points
1,594
You could do this by checking each pixel and comparing it to the adjacent pixels. This will help you decide if the black pixel is in the black square or not, same for white pixels.
 

panda1234

Full Member level 2
Joined
Jan 22, 2015
Messages
125
Helped
4
Reputation
8
Reaction score
4
Trophy points
18
Activity points
1,172
but is this way true on boundary?
 

chris.mourad

Member level 3
Joined
Sep 9, 2011
Messages
65
Helped
12
Reputation
24
Reaction score
12
Trophy points
1,288
Location
Brussels
Activity points
1,594
on boundary of squares: yes, because you have special conditions there, you know that adjacent pixels will be half black & half white!

hope it helps
 

panda1234

Full Member level 2
Joined
Jan 22, 2015
Messages
125
Helped
4
Reputation
8
Reaction score
4
Trophy points
18
Activity points
1,172
in MATLAB don't there any filter command for this?

- - - Updated - - -

maybe we have a little black line and in this case every adjacent is ok but we know this is noise.

- - - Updated - - -

I want to find right pattern in left picture but i don't know how to do this.
 

andre_teprom

Super Moderator
Staff member
Joined
Nov 7, 2006
Messages
9,255
Helped
1,151
Reputation
2,321
Reaction score
1,133
Trophy points
1,403
Location
Brazil
Activity points
53,890
What you want to do is essentially apply the pattern picture on the right at the target picture on the left, so that will act as an arithmetic or logic filter. For the example above, you should use some Pattern Matching algorithm just for obtain the exact place at where you will superimpose one over other.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top