We first define correspondence between two images manually as shown by the red dots.
We then follow instruction in this link and solve the following system of equations using least squares:
We show the original images on the left and the rectified images on the right.
We show original images on the first row and blended image on the second row.
It was very interesting to learn how panorama are made!