Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
poisson.js

README.md

Poisson Image Editing Module

description

Image composition using Poisson Image Editing algorithm

see also blog entry

sample

poisson_blending

(Tests: IE10, Firefox22.0, Chrome28.0, Safari6.0)

usage

var ctx = document.querySelector('#Canvas').getContext('2d');
// source image, destination image, mask image, callback function
Poisson.load(srcImgName, dstImgName, maskImgName, function() {
  // max iteration, X offset, Y offset
  var result = Poisson.blend(100, 10, -20);
  // render to canvas
  ctx.putImageData(result, 0, 0);
});

license

Copyright © 2014 wellflat Licensed under the MIT License