Assignment 2: Poisson image editing

 

The homework is based on MATLAB. The GUI is shown as follows:

 

The demo image we have used are the sunrise and ocean: 

               

       Sunrise                   Mask of sunrise                                     Ocean 

If we simply superimpose the masked sunrise image on the ocean image, the result is:

Using Poisson image algorithm, this is the output image.

 

To run the code, please follow these steps:

1. Press Load images to load the two images used for create a new Poisson image.

2. Use mouse left button to pick the outline of mask shape. Use right mouse button to finish the selection.

3. Press the Start superimpose button. Then left click on the right image to pick the appropriate position to place your selected image. Use right click to end placement.

4. Click the Calculate Poisson image button to create the merged image. This will take quite a while (depending on your image size)

5. Press Save output image to store the image.

 

The MATLAB code can be found: here.