10-12-2012 10:56 PM
Is there a way to locate segments from a reference image to another image? We need this in our project in order to compare the segments from a reference image(in our case, our subject is a PCB) and another image(other PCB) disregarding its position.
Solved! Go to Solution.
10-13-2012 02:08 AM
I do not understand your description. Can you show an illustration?
10-13-2012 11:34 AM - edited 10-13-2012 11:49 AM
Here is an illustration sir. Sorry if its confusing.
The segments from the reference image(circled in different colors) are being located in the actual image(circled in corresponding colors) disregarding its position. We are trying to compare segment by segment from both images. But before we do that, we filter the actual photo and threshold both images to make it look more similar and in binary.
Thank you sir.
10-13-2012 11:50 AM - edited 10-13-2012 11:51 AM
OK, this is more complicated problem, and the vision module would probably a good choice at this moment, but I am not familiar with it.
Are both images at exactly the same size, scale and resolution and contain the same features? Do they (mostly, except for the mistakes you are trying to find) only differ by a horizontal vertical shift? Could there also be a rotation?
I assume that the colored circle are for illustration of the problem, and not actually present in the images. Right? How is the interesting area selected?
Assuming there is no rotation, tilt, or scale difference, As a first step, you need to find the offsets for alignment. Maybe a 2D crosscorrelation would give you that.
10-13-2012 12:19 PM
We are trying to limit both images with the same resolution. By size and scale, do you mean the patterns? If you mean the patterns, that is our problem right now, since the patterns in the actual image usually does not fall in place based with the ideal position and the size usually differ due to printer error or etc.
Horizontal and Vertical shift are also included in our problems, and so is rotation. The colored circles represents that the patterns from the reference image are being located in the actual image if it is present.
I will try that sir, thank you.
10-17-2012 09:22 AM
Sir how about this problem? http://forums.ni.com/t5/LabVIEW/how-to-shift-elements-in-an-array-up-or-down-without-changing/td-p/2...