1688 shaares
869 private links
869 private links
An interesting and simple algorithm to blend two images seamlessly.
TL;DR: do not copy-paste the pixel itself, copy-paste the gradient of the pixel, and then solve for the optimal pixel's value subjecting to an energy function, which takes into account the boundary of background image and the gradient of the source image.
More articles on the topic: