I re-wrote the Poisson Blending code using C++ and OpenCV.

About the Algorithm, see my **Previous Poisson Blending post**.

This time, I just used the most stupid way, just solving the Poisson Equation. You can improve it by using advanced methods. About solving discrete Poisson Equation using Jacobi, SOR, Conjugate Gradients, and FFT, read **THIS**.

In this code, I used two different ways to calculate vector **b **(actually they are the same…), The first way is calculate gradient by Convolution a Laplacian Matrix, the second way is calculate gradient directly. You can use any one you like. Continue reading “Poisson Blending II” »