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
- python 3.5+ (Though it should run on 2.7)
- scipy
- numpy
- matplotlib
- sklearn
- '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.
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
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.
Marco Forte ([email protected])
Original authors:
Anat Levin ([email protected])