Alex Limpaecher 10/1/12
In this project I used gradient-domain fusion in order to stitch two images together. When pasting a source image on top of a target, there are very clear seams. One can make these seams less apparent by keeping the gradients consistent between the target and source. I solved this by using Poisson blending, which uses a least squares solver to minimize the gradients between source and target image boundary while keeping the gradients of the source image consistent.
Source
Target:
Direct Blend
Final Blend
Penguin
Source
Target
Source
Direct Blend
Final Blend
On September 13th five planes flew over the bay area, painting pi in the sky. This include San Francisco:
Berkeley:
and Stanford:
Little do people know, this all started at CMU:
Source Image:
Target Image
Direct Blend:
Zoomed in Final Blend
Poisson blending works by changing the intensity of the source image consistent, while also making the gradient with the target image smooth
All the images above except for the pi in the sky were done with Poisson blending.
Errors seem to occur when the target image is detailed. For example in this image the penguin the hard edge on the top of the snow is clearly being blurred. The algorithm cannot do anything to preserve this hard edge.
I ran the Poisson algorithm on the UFO image on multiple locations, to see what effect it would have.
This is the most successful image:
When placing the UFO on the cloud is was still quite successful. However you can see a color change in the UFO. However since no one has actually seen a UFO, this color change doesnŐt seem necessarily out of the ordinary.
Lastly I place the UFO on the border between the sky and the clouds. I thought this would break the algorithm.
The image looks surprisingly good.
Zoomed in you do see some blurring of the clouds. However this was clearly caused by the heat of the UFO that was created on re-entry into the atmosphere.
For the mixed gradients example I blended skywriting on top of the CMU campus. At first I just used Poisson blending. I got the following results:
When you zoom in you can see some clear distortion of the clouds:
However mixed blending preserves the strongest gradient. Thus when I ran mixed gradients on it I got the following results:
Zoomed in you can see that the clouds are preserved:
Running the toy example I was able to recreate the following image with the error
: 3.1572e-06