Re:Show HN: I implemented seamless copy and paste of images,...
by erkaman on Sunday February 04, 2018 @03:01PM
(#16304582)
In this artice, I describe a technique that can be used to
seamlessly copy-and-paste one image into another. I also provide source code(https://github.com/Erkaman/poisson_blend), that
demonstrates the concepts in the article.
Re:Show HN: I implemented seamless copy and paste of images,...
by erkaman on Monday February 05, 2018 @04:16AM
(#16307621)
yes, the mask is also pretty important. otherwise, you get lots of stuff from the background of your source image in your blended image, which often looks pretty bad.
Re:Show HN: I implemented seamless copy and paste of images,...
by erkaman on Monday February 05, 2018 @04:14AM
(#16307615)
since the technique is so simple, it's probably not hard at all to include into GIMP. Wouldn't surprise me if someone had already implemented a plugin for it.
Re:Show HN: I implemented seamless copy and paste of images,...
by userbinator on Monday February 05, 2018 @07:14AM
(#16308308)
The blurriness around the edges gives it away --- and blurring the edges is incidentally the same technique that Photoshoppers use when they can't quite get the borders right.
If that's the case I'd be curious to see how it works with masks generated with e.g. photoshops smart edge detection.
https://github.com/Erkaman/poisson_blend/tree/master/img
I'd also like to read what you can conclude.
[1] https://www.youtube.com/watch?v=zsHgQY6025I
Ulterior examples than library+kitten/penguin would be great
https://github.com/Erkaman/poisson_blend
http://im.snibgo.com/seamlpm.htm
It contains the windows .bas script that makes ImageMagick implement Poisson blending. It should be easily enough portable to shell code.