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.
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.