Image Stitching

BlitzPlus Forums/BlitzPlus Programming/Image Stitching

Tyler(Posted 2006) [#1]
Hello all, I was wondering if anyone could help me figure out a way to compare two pieces of two images that have overlap. I want to check for similarities in parts of the image, so that I can position them properly to each other. I thought about just checking the farthest right rows of pixels against the farthest left rows of the second image, but i'm not sure where to begin with it all as far as coding goes. Is there a way to store that specific pixel info, and if I did store it, how would I compare them? Thanks!


WolRon(Posted 2006) [#2]
Well, your problem needs a specific solution, but this sample code may help.

I slapped it together. It's not fast AT ALL, but it looks like it could work with some modifications and speed improvements. I didn't have time to check into why it places the box where it does.

It compares a 2 pixel wide strip from the left side of the smaller image with every vertical stip of the larger image.




Tyler(Posted 2006) [#3]
Thank you for the example! I'll give it a go when I get home and see if I can pick it apart/understand it. Thanks again!