I'm trying to align and stitch together these images to form a mosaic:
It's a similar problem as this one:
However, (and I may not have properly understood that answer) I haven't been able to get that approach to work with these images. I want to get image 1 and all of a transformed image 2 nicely overlaid.
So to design a simpler test case, I created two images like this:
This is the result I'm trying to achieve (done here manually, with image borders added to highlight that the two images are whole but superimposed):
So I tried find the geometric transform, and then applying it:
i23 has the correct rotation and translation to nicely overlay i21, but how do I achieve the final overlaying of the images to get the desired result?