image thumbnail

Poisson image editing

version 1.0.0.3 (5.75 MB) by Mahmoud Afifi
Matlab implementation of Possion image editing (seamless cloning and mixing gradients)

1K Downloads

Updated 01 Apr 2021

View License

Matlab implementation of Possion image editing.
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, this presents two options:
1- seamless cloning
2- mixing gradients
For more information read Readme.pdf

Instructions:
1- Open Demo.m
2-change the filenames as you want:
source='source_image.jpg';
target='target_image.jpg';
result='result_image.jpg';
3-Run Demo.m

This is an implementation of the following paper:
Pérez, Patrick, Michel Gangnet, and Andrew Blake. "Poisson image editing." ACM Transactions on Graphics (TOG). Vol. 22. No. 3. ACM, 2003.

Github link: https://github.com/mahmoudnafifi/Poisson-image-editing

Cite As

Mahmoud Afifi (2022). Poisson image editing (https://www.mathworks.com/matlabcentral/fileexchange/62287-poisson-image-editing), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!