Project 6a

By Weiguang Wang

The purpose of this project was to implement human guided image warping and panorama creation.

Approach

Homographies were solved by first collecting corresponding points using cpselect. The homography was then solved using the SVD decomposition of the resulting linear system of equations. Figuring out the final image size after rectification was tricky, but after adjusting for the change of origin, I used a double for loop to apply the homography to the image using nearest neighbor interpolation (my attempt to use interp2's linear interpolation resulted in the program running for an hour). To create a mosaic, I stiched the photos one at a time. I applied linear feathering to the warped images and then placed them in the correct position onto an final image that would contain the whole mosaic.

Rectification example 1:

Original

Rectified

Rectification example 2:

Original

Rectified

Rectification example 3:

Original

Rectified

Mosaic example 1:

Original 1

Original 2

Resulting Panorama

Mosaic example 2:

Original 1

Original 2

Resulting Panorama

Mosaic example 3:

Original 1

Original 2

Resulting Panorama

Mosaic example 4:

Original 1

Original 2

Resulting Panorama