Here are the pictures we'll be using for rectification/mosaicing. All shot with the same center of projection but rotating the axis slightly.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
We compute homographies by selecting pairs of points (at least 4 pairs) between the two images and solving for Ah=b where h is a vector holding the 8 unknown entries of H. If we pick more than 4 points, we use least squares to find the best homography for the points.
I used inverse warping to get a final image from a warped source image, and just used integer coordinates instead of interp2d to avoid aliasing.
![]() |
![]() |
![]() |
![]() |
Here we use the previous parts to blend images into a mosaic! I tried both not blending at all (simple binary mask) and alpha blending using a gaussian mask on the binary mask. Looks like not blending at all sometimes works better.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |