CS194-26 Assignment 5 Part A

Image Warping and Mosaicing

Part A Part B

Part A

Image Rectification

The following images had regular grids and were used to practice rectification. Using 4 input points, a least squares approach was used to solve the homography, dividing out the 9th term to be standardized as 1. Here, arbitrary square-like positions (100x100) were chosen as the reference world space coordinates, and values were interpolated with RectBivariateSpline.

picture

Original Image.

picture

Rectified Image.

picture

Original Image.

picture

Rectified Image.

Image Mosaics

Instead of using arbitrary grids, now the target world space points are the corresponding matching values in the second image. Beyond that, the same techniques from part 1 were used here. Errors exist since the 4-correspondence is not exact, and due to being sequestered indoors, errors will propagate due to camera movement. Nevertheless, relatively decent results were achieved.

picture

Original Image 1.

picture

Original Image 2.

picture

Rectified Image 1.

picture

Full Image Mosaic.

Due to Proximity, differences in lighting exist.
picture

Original Image 1.

picture

Original Image 2.

picture

Rectified Image 1.

picture

Full Image Mosaic.

Small scaling issues exist due to imprecision of points.
picture

Original Image 1.

picture

Original Image 2.

picture

Rectified Image 1.

picture

Full Image Mosaic.

Part B , What I learned

I hope to never have to deal with raw arrays and indices again :(. Transformations with rectangular memory are the bane of my existence.