Skip to content

Python implementation of A. Levin D. Lischinski and Y. Weiss. A Closed Form Solution to Natural Image Matting. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), June 2006, New York

tigereatsheep/closed-form-matting

 
 

Repository files navigation

closed-form-matting

Python implementation of A. Levin D. Lischinski and Y. Weiss. A Closed Form Solution to Natural Image Matting. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), June 2006, New York

Requirements

  • python 3.5+ (Though it should run on 2.7)
  • scipy
  • numpy
  • matplotlib
  • sklearn

Running the demo

  • 'python closed_form_matting.py'
  • mylambda (λ) is a constant controlling the users confidence in the constraints.
  • eps (ε) is a constant controlling the smoothness of alpha.

Results

Original image Scribbled image Result

More Information

For more information see the orginal paper http://www.wisdom.weizmann.ac.il/~levina/papers/Matting-Levin-Lischinski-Weiss-CVPR06.pdf The original matlab code is here http://www.wisdom.weizmann.ac.il/~levina/matting.tar.gz

Disclaimer

The code is free for academic/research purpose. Use at your own risk and we are not responsible for any loss resulting from this code. Feel free to submit pull request for bug fixes.

Contact

Marco Forte (fortem@tcd.ie)

Original authors:
Anat Levin (anat.levin@weizmann.ac.il)

About

Python implementation of A. Levin D. Lischinski and Y. Weiss. A Closed Form Solution to Natural Image Matting. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), June 2006, New York

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%