CS194-26: CS194-26: Image Manipulation and Computational Photography

Project 5a – Image warping and mosaicing

St. ID: 3034311700

Shoot the Pictures

Due to the quarantine photo shooting was limited to living room and balcony of my apartment.

 

Recover Homographies

 

Homography is a transformation P=Hp, where H is a 3x3 matrix with 8 degrees of freedom (lower right corner is a scaling factor and is set to 1).

The homography transformation matrix was computed with the four correspondence points (p1,P1),(p2,P2),(p3,P3),(p4,P4) written as 2×9 matrices concatenated together such as:

 

Warp the Images and Rectification

 

Having established the homography matrix, the transformation matrix is applied to every pixel of the first image. To make sure the wrapping works correctly, image rectification was performed. I applied warping to a square table top view and used as points for the second image the corners of a square of suitable size defined by hand.

 

Original Image:                                                                                     Warped Image:

 

Blend the images into a mosaic

 

Image 1:                                                        Image 2:                                                        Blended Image:

 

Image 1:                                                        Image 2:                                                        Blended Image: