Input image: blurry red panda
Gray scaled sharpened image
Colored sharpened image
Example merging of Derek and Nutmeg
Original picture: Derek
Original picture: Nutmeg
Example merging of Grumpy Cat and Boo the dog
Original picture: Grumpy Cat
Original picture: Boo the Dog
Example merging of Tom and Jerry
Original image: Tom
Original image: Jerry
Fourier analysis:
Fourier analysis of grumpy cat picture
Fourier analysis of boo the dog picture
Fourier analysis of the blended picture
Fourier analysis of Gaussian filtered image (Boo)
Fourier analysis of Laplacian portion of image (Grumpy Cat)
An example failure case is the image of trying to merge Tom and Jerry. In this case, the original images weren't aligned very well to begin with, so attempting to overlay them produced a jarring result and makes it easier to see the low-frequency image up close and the high-frequency image from afar due to the non-optimal alignment.
Gaussian and Laplacian stacks of the Mona Lisa
Gaussian and Laplacian stacks of the boo-grumpy cat hybrid from earlier
Example merging of apple and orange
Original image: apple
Original image: orange
Example merging of angry and laughing reacts from Facebook
Original image: angry react
Original image: laugh react
Example merging of the Golden Gate bridge and the Eiffel tower
Original image: Golden Gate Bridge
Original image: Eiffel Tower
Gaussian/Laplacian stacks of the bridge/paris blended image
Example merging of the Taj Mahal and Trevi Fountain
Original image: Taj Mahal
Original image: Trevi Fountain
Irregular border
Example merging of fish from Finding Nemo and hiking picture
Original image: Fish from Finding Nemo
Original image: Hikers in the snow
Original image
Result generated
In this example, the output on the right was produced by using the method of gradient domain processing. To create this, we essentially had the goal of recreating the picture by solving for the pixel values in the target image that most closely matched the pixels in the original source image. We did so by using the gradients across different pictures. We create a matrix of linear equations representing the gradients of a pixel and its four neighbors, and use least squares to find the optimal pixel values satisfying these equations. We then copy the solved values over to the new image, and in this case reproduce the original image as shown.
Original target image: hikers in the snow
Original source image: penguin chick
Mask result on im2
Mask result on penguin chick
Grayscale image merging
Colorized image merging
Examples using my own images (courtesy of the internet).
Example merging of a picture of the Golden Gate Bridge and Nemo, Marlin, and Dory from Finding Nemo.
Original target image: Golden Gate Bridge
Original source image: Nemo and Dory
Grayscale image merging
Colorized image merging
An example merging of the House (with balloons) from Up with a balloon fish.
Original target image: House (with balloons) from the movie Up
Original source image: Balloon fish
Gray image with source pixels directly copied
Colored image with source pixels directly copied
Grayscale image merging
Colorized image merging
An example merging of hikers in the snow with Olaf from Frozen.
Original target image: House (with balloons) from the movie Up
Original source image: Olaf from Frozen
Grayscale image merging
Colorized image merging
Some issues that arose with this method of blending was if the source and target images had different background colors. As shown in the example of blending the golden gate bridge with the fish from Finding Nemo, the different background colors caused a change in the other colors of the target image when the pixel values of the picture were renormalized and displayed in color. The issue is less noticeable in grayscale images. Comparison between Laplacian/Gaussian stacks blending and Poisson Blending: Original angry/laugh react blend:
Example merging of angry and laughing reacts from Facebook
Result of using Poisson blending:
Example merging of angry and laughing reacts from Facebook
Example merging of angry and laughing reacts from Facebook
As shown in this case, for a sharp vertical edge, the Gaussian/Laplacian stacks method of blending was much more successful in producing a smooth transition between the images. The Poisson method blends the colors a bit better at the edges, but overall has a much less strong smoothing effect, causing a jarring shift in this example. I think in this case where it involves needing to blend out a sharp extended line or when the source and target images won't necessarily fit together if you were to just "copy/paste" one image into another, it's best to use the Gaussian/Laplacian stacks method to smooth the transition. Otherwise the Poisson method provides a more accurate matching, especially with colors.