GithubHelp home page GithubHelp logo

isabella232 / poisson-image-editing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cheind/poisson-image-editing

0.0 0.0 0.0 3.78 MB

Poisson image editing for seamless cloning and other operations

C++ 99.70% CMake 0.30%

poisson-image-editing's Introduction

About this library

Poisson Image Editing is a small C++ library providing implementations of image editing methods based on gradient domains.

Seamless Cloning

Seamless image cloning attempts to copy an image region from a foreground image onto a background image subject to removal of visual seams. Visual seams occur because of the color mismatch between the two images. In gradient domain methods one fixes the colors of the boundary (taken from the background image) and provides a vector field that defines the structure of the image to be copied (taken from the foreground and / or a mixture from foreground and background). The result image is generated by minimizing the squared error terms between the gradient of the result image and the guidance vector field.

The function blend::seamlessClone implements the method described in [1] providing different options for various guidance field computations. The table below shows a comparison between naively copying foreground over background and seamless copying as implemented by this library.

Naive Cloning Seamless Cloning
Naive Image Cloning Seamless Image Cloning
Naive Image Cloning Seamless Image Cloning

References

[1] Pérez, Patrick, Michel Gangnet, and Andrew Blake. "Poisson image editing." ACM Transactions on Graphics (TOG). Vol. 22. No. 3. ACM, 2003.

Building from source

To build Poisson Image Editing from source you need the following prerequisites

  • CMake - for generating cross platform build files
  • OpenCV - for image processing related functions
  • Eigen - for sparse linear system solving

Although Poisson Image Editing should build across multiple platforms and architectures, tests are carried out on these systems

  • Windows 7/8 MSVC10 x86
  • OS X 10.10 XCode 6.2

If the build should fail for a specific platform, don't hesitate to create an issue. I'm also happy to accept any pull requests.

License

   Copyright Christoph Heindl 2015

   Poisson Image Editing is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
   
   Poisson Image Editing is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with Poisson Image Editing.  If not, see <http://www.gnu.org/licenses/>.

poisson-image-editing's People

Contributors

cheind avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.