10-15-2005 05:50 AM
10-17-2005 04:47 AM
Hi,
first of all you should be sure the Printed image has the same resolution of the Reference to make a real comparrison. Once you have set this information you can easly apply the Logic function for instance AND or XOR, otherwise you can make just a little of morphology, and then check the single pixel value on both images.
Try
10-17-2005 08:21 AM
The R and P images have the same theoretical resolution.
Obviously errors in the mechanic of the scanner makes them slightly different in size. I forced the two sizes equal by a stretching P image to the size of R image.
Scanner also apply an alias (defocus) due to optical resolution. Lines that are binary patterns appears like a shaded ones.
In addition you must consider that printed material is never equal to its digital reference (printers, laser plotters, CTPs and press machines have they our own dot gain, ink absobtion, slight difference in the font pattern............. etc)
Subtracting, ANDing, XORing operators are not so easily applicable and they're useful only for coarse comparing.
Phil
10-17-2005 10:45 AM
I hope your scanner resolution is a minimum of double the printing resolution. Triple would be even better. Otherwise, it will be very difficult to compare on a pixel by pixel basis. I suspect this may be a problem since you say a binary pattern shows up as shades of gray.
I would consider aligning a pixel grid to the scanner image, where each square in the grid contains a pixel. If you can locate your edge pixels, the interior ones all fall in place. For each square in the grid, determine if the pixel was printed (black) or not (white). Perhaps look at the very center of each grid square, or average the contents of the square. This should convert your scanner image to a binary image that could easily be compared to your master pattern to locate errors.
05-16-2008 12:31 AM
Hi All,
I am new to this labview programming.I heard your discussions on image comparision.I am not able to make out practically.
My problem is to compare two images.I have to capture an image from a device and compare it with the static image i have it on hardisk and validate if its the same as the one i have.
Can you please make out a block diagram so that i can understand better.
Thanking you in advance.
05-22-2008 05:54 PM