April 2020
Intermediate to advanced
438 pages
12h 2m
English
The following screenshot shows the input and mask images used for gradient blending:

The cv2.seamlessClone() function was used with the flags parameter value as cv2.MIXED_CLONE, which is a classic method. This function implements Poisson image editing, using a Poisson solver to solve a system of (Poisson) equations, by keeping the gradients only at the edge locations (as Dirichlet boundary conditions).
You will get an output image along the lines of the following if you run the preceding code snippets:

Read now
Unlock full access