|
"Simon " <spsilk@gmail.com> wrote in message <hnm6g1$49$1@fred.mathworks.com>...
> I have a question about simultaneously registering two images to one another.
>
> Suppose I have two images imA and imB that overlap somewhat (e.g. they’re two halves of a panorama). I want to register them. If I follow the Matlab Image Registration example, I get one that stays unmodified (the base image), and one that gets registered to it, often getting distorted a lot in the case of a projective or affine transformation.
>
> So, is there a way to calculate two transforms AB and BA to register A to B and B to A respectively, then simply apply part of those two transformations so that the images “meet in the middle” so to speak? Do I just divide the two transformation matrices in two?
================
Since the reasons for the distortion are unclear (you've said little about them and why you think they occur), so are the benefits of finding an average transformation.
That said, there is some image registration literature in which, for similarity measure sim(A,B) and transform operator T, people try to minimize
sim(T*A,B)+sim(A,inv(T)*B)
I don't know of any such registration algorithm offered by the Image Processing Toobox, though, so you'd probably have to code it yourself.
|