For seamless blending, image gradients are used instead of pixel intensity to blend two images by solving Poisson equations with a predefined boundary condition. Furthermore, this methodology ensures that the colour of the inserted image is also shifted, so that the inserted object appears to be part of the target image's environment. As a result, a bright object copied and pasted into a dark image will have its colour shifted to a darker colour.
After selecting a patch from the source image it is pasted over the target image at desired location. Here, the boat is pasted over the dark sky in target image.
................................
...............................
