From: Image Kamath on
[URL=http://www.freeuploadimages.org/viewer.php?file=420r492jdiijjz2f2yqw.jpg][IMG]http://www.freeuploadimages.org/images/420r492jdiijjz2f2yqw_thumb.jpg[/IMG][/URL]
[URL=http://www.freeuploadimages.org/viewer.php?file=6cuyxlo72yl65tvkxt3.jpg][IMG]http://www.freeuploadimages.org/images/6cuyxlo72yl65tvkxt3_thumb.jpg[/IMG][/URL]
Above are two images of signatures. What I want to do is align them such that maximum corresponding pixels overlap with each other and then get a percentage of the number of pixels that overlap to the total number of pixels (both overlapping and not overlapping).
Please help me out with this.
Thank you.
From: Sean on
"Image Kamath" <grkkrg(a)rediffmail.com> wrote in message <i36kt9$8og$1(a)fred.mathworks.com>...
> [URL=http://www.freeuploadimages.org/viewer.php?file=420r492jdiijjz2f2yqw.jpg][IMG]http://www.freeuploadimages.org/images/420r492jdiijjz2f2yqw_thumb.jpg[/IMG][/URL]
> [URL=http://www.freeuploadimages.org/viewer.php?file=6cuyxlo72yl65tvkxt3.jpg][IMG]http://www.freeuploadimages.org/images/6cuyxlo72yl65tvkxt3_thumb.jpg[/IMG][/URL]
> Above are two images of signatures. What I want to do is align them such that maximum corresponding pixels overlap with each other and then get a percentage of the number of pixels that overlap to the total number of pixels (both overlapping and not overlapping).
> Please help me out with this.
> Thank you.

Your links don't work. What do you mean by "maximum"? Do you mean the maximum intensity or the maximum height/[left-right align], as I suspect?
From: Image Fun on
I think the above links are not working. Here are the new links.
http://www.freeimagehosting.net/uploads/3990feb85e.jpg
http://www.freeimagehosting.net/uploads/51a54b3dab.jpg
From: Image Fun on
They are black and white images. So i want the exclusive nor of these two images to have as less white pixels as possible. So they should be aligned in such a way that maximum number of white pixels of one image overlap with pixels from the other image.
From: Sean on
"Image Fun" <grkkrg(a)rediffmail.com> wrote in message <i36m70$3ut$1(a)fred.mathworks.com>...
> They are black and white images. So i want the exclusive nor of these two images to have as less white pixels as possible. So they should be aligned in such a way that maximum number of white pixels of one image overlap with pixels from the other image.

Well a simple brute force method would be:
1) Find the indices of the most left point and top most point of each.
2) Pad the lower sides of the first image so you have room to float the second image around.
3) Based on the indices you found earlier and a global transformation(pad amount); float the window around to minimize the error; which in this case would be the minimum absolute difference.