项目作者: mahmoudnafifi

项目描述 :
Matlab implementation of Poisson image editing
高级语言: MATLAB
项目地址: git://github.com/mahmoudnafifi/Poisson-image-editing.git
创建时间: 2021-04-01T18:44:15Z
项目社区:https://github.com/mahmoudnafifi/Poisson-image-editing

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Matlab implementation of:
Pérez, Patrick, Michel Gangnet, and Andrew Blake. “Poisson image editing.” ACM Transactions on Graphics (TOG). Vol. 22. No. 3. ACM, 2003.

PIE

Gradient domain is used instead of intensity of pixels in image cloning to blend two images by solving Poisson equations with a predefined boundary condition. Based on this idea, there are two options:
1- Seamless cloning
2- Mixing gradients
For more information read Readme.pdf

Get Started

1- Open Demo.m

2- Change the filenames accordingly; in the current demo we assume the source, target, and result images have the following filenames:

  1. source='source_image.jpg';
  2. target='target_image.jpg';
  3. result='result_image.jpg';

3- Run Demo.m

MPB: A modified Poisson blending to reduce PIE bleeding artifacts by a simple two-stage blending approach.