This project explores gradient-domain processing, a simple technique with a broad set of applications including blending, tone-mapping, and non-photorealistic rendering. For the core project, we will focus on using “Poisson blending” to seamlessly blend an object or texture from a source image into a target image. Comparing with the simplest method that just copies and pastes the pixels from one image directly into the other, Possion Blending maximally preserves the gradient of the source region (instead of absolute intensity value) without changing any of the background pixels, while reaching good blending performance on the edges. Check out the Perez et al. 2003 paper to see sample results, or to wallow in extraneous math.
The images below show the results from Poisson blending and mixde gradients blending.b As we can see comparing to direct copy-paste, Poisson blending makes the edge surreounding the bear have the same color tone as the background instead of pure white, however the blending is far from perfect. The mixed gradient blending is able to mix more detailed background information to the edges of the source patch, however it also brings some blending to the inside of the bear, making the bear a bit "transparent". This is a problem need to fix probably by better tuning the combination coefficient between source image gradient and target image gradient.
|
|
|
|
|
|
The dog example seems to not work very well, with some weird halo appeared on the dog boy. This may due to the reason that the fur color is kind of even over the entir dog and also similar to the snow color, makes the gradients not working so well.
|
|
|
|
|
|