Implement Poisson blending algorithm in a simple photo editor with Qt Frame on Windows.
Click ![]() ![]() |
|
---|---|
Click ![]() ![]() |
|
Click ![]() |
git clone https://github.com/Genius-Society/QPoisson.git
cd QPoisson
Please refer to this blog post for this section.
Eigen is a C++ library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.
The core method for the blending process comes from Poisson Image Editing, in which the formula of computing vector b is as follow:
b[i] = div ( G( Source(x,y) ) ) - Neighbor(target i) ; // i=1..N