Git Product home page Git Product logo

libseg's Introduction

libseg

This is an UNFINISHED implementation and it is still quite buggy.

An interactive image foreground/background segmentation library.

For now, this is an implementation of geodesic matting of [Bai09]. It doesn't implement the alpha matting part and just stops at the foreground/background segmentation stage.

This library can be build for the Linux/OSX and for android.

Its only dependency is the FIGTree library[1]. A version adapted for android (and still working on the desktop) is available here : TODO: include figtree-android

screenshot.png

Linux/OSX

Linux/OSX build files and scripts are under unix/. Gyp (generate your project) and ninja are used to build the projects.

Example programs are under unix/samples

Note that the Linux/OSX example programs require OpenCV. libseg itself doesn't depend on OpenCV.

Build instruction :

cd third_party/gmock-1.7.0 ./configure make

cd unix # Point FIGTREE to figtree-android export FIGTREE=../../figtree-android ./gen_ninja.sh ./build.sh

Android

Android build files are under jni/.

Build instructions

Use the run script to run a binary (it sets up the correct LD_LIBRARY_PATH) :

./run.sh out/Default/tests ./run.sh out/Default/interactive

References

[1] http://www.umiacs.umd.edu/~morariu/figtree/

[Bai09] "Geodesic Matting: A Framework for Fast Interactive Image
and Video Segmentation and Matting", Int J Comput Vis'09

libseg's People

Contributors

julienr 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.