Yash Vanvari CS 194-26 Project 5 Image Warping and Moasicing Part A


Pictures

As a starting point I took some pictures to do some initial tests of picking points and finding homographies and such. Below are two of the pictures I took, for my first initial moastic.

Image A
Image 2

Warping and Image Rectifications

After shooting the initial points I took a bit of time to compute the homography and used that to create an initial warp. I did this using least squares. After getting warping accomplished I was able to compute some rectified Images. Below are two examplies of images I rectified.


First Example is of a bedroom for which I wanted to get the point of view of looking at the door directily within the bedroom.


Warped Image
Rectified Door

Next example is of my mac which I wanted to rectify so that I was looking down on the keyboard directly

Warped Image
Rectified mac

Image Stitching

In this section I was able to start computing image moasics by stitching together two images by computing the homography, warping one inmage to another. After that, computing a bounding box for the new larger image and then from there using a weighting system to combine both imnages together. Had a little bit of trouble with the edges but it still came out relatively clean.


The first example is based on the two initial bedroom images that I took

Bedroom 1
Bedroom 2
Warped Bedroom

The second example is of a kitchen

Kitchen image 1
Kitchen image 2
Blended Kitchen Image

The final Moasic is of a fan, I thought it would be somehwat cool to see what the moasic would look like if the color in the two images was slightly different, so in one I used AWB, and in the other I didn't. It produced an interesting result.

Fan image 1
Fan image 2
Blended Fan Image

Cool Thing I learned

I learned a lot of interesting things from this part, most notably that making panaromas through hoomographies/projective transformations is a possibility. The second interesting thing was that selecting points is probably one of the most important parts of this project. I had a couple of failed attempts when I was iniitially selecting points, resulting in some really funky combined images. There were also some images where my selected poitns were consistently off so it resulted, in images that weren't that great, hopefully in the automatic point selection portion I am able to produce proper panormas for those image.


Yash Vanvari CS 194-26 Project 5 Image Warping and Moasicing Part B

In this part I got a good understanding of the automatic process involved in selecting points resulting in automatically creating moasics without selecting the points.

Moasic 1 the Bedroom

First I did the point selection porcess, this resulted in the following points.

Initial Points for first image
Initial Points for second image

After that using feature matching and ransac, I got a group of paired points that corresponded to each other.

Paired Points for first image.
Paired points for second image

Finally, after getting the points, similar to Part A I combined the pictures together into a moasic. Below is a compare and contrast between the manual and automatic version.

Automatic Point selection moasic.
Manual Point selection moasic.

Moasic 2 the Kitchen

First I did the point selection porcess, this resulted in the following points.

Initial Points for first image
Initial Points for second image

After that using feature matching and ransac, I got a group of paired points that corresponded to each other.

Paired Points for first image.
Paired points for second image

Finally, after getting the points, similar to Part A I combined the pictures together into a moasic. Below is a compare and contrast between the manual and automatic version.

Automatic Point selection moasic.
Manual Point selection moasic.

Moasic 3 the Fan

First I did the point selection porcess, this resulted in the following points.

Initial Points for first image
Initial Points for second image

After that using feature matching and ransac, I got a group of paired points that corresponded to each other.

Paired Points for first image.
Paired points for second image

Finally, after getting the points, similar to Part A I combined the pictures together into a moasic. Below is a compare and contrast between the manual and automatic version.

Automatic Point selection moasic.
Manual Point selection moasic.

What I learned/ Results Discussion

It's interesting to see that in some images the automatic point selection had almost no difference, but in others it made the overall moasic better. In the kitchen example this was most apparent. Below is also an image that for somre reason with manual point selection I was not able to produce into a panorama.

Automatic Point selection moasic.

I learned some interesting things in this part. Most notably, I think the cooleest thing I learned was that the way to compare patches within two pictures that are projective transformations of each other is actually kind of simple and intersesting. It jsut involves the use of the mean and standard deviation of a guassian blurred image. Overall, had a fun time with this project!