CS194-26 Final Project

Yusuf Ahmad

Gradient Domain Fusion:

Part 1: Toy Problem

We compute the gradient of the image in the x and y directions and use it to reconstruct the image v. We want to minimize three functions using least squares:

 

Original Image

Blended Image

And error of 0+3.7665e-06i was recorded by MATLAB

Part 2: Poisson Blending

We use least squares to solve the following optimization constraint to blend the source image and the background image together:

 

 

Source image & Background image

Blended Image

 

Source image & Background image

 

Blended Image

 

Bells & Whistles (Color2Gray):

RGB image

 

Grayscale image