LingDong- / ofxPoissonFill

Poisson filling shader for OpenFrameworks
MIT License
56 stars 3 forks source link
glsl openframeworks-addon poisson-editing shader

ofxaddons_thumbnail

ofxPoissonFill

Poisson filling shader for OpenFrameworks

Snip20200511_9

Installation

Drop the folder into OF_ROOT/addons. Done!

Or even simpler, copy paste src/ofxPoissonFill.hpp directly to your own src folder.

Usage

PoissonFill pf;

ofTexture tex; 

// prepare your image here...

// allocate necessary datastructures (once)
pf.init(tex.getWidth(), tex.getHeight());

// process the image
pf.process(tex);

// draw processed image
pf.getTexture().draw(0,0);

See also example, API Documentation

Reference

Developed at Frank-Ratchye STUDIO for Creative Inquiry at Carnegie Mellon University.