bayesian-matting
bayesian-matting copied to clipboard
Python implementation of Bayesian Matting from Yung-Yu Chuang, Brian Curless, David H. Salesin, and Richard Szeliski. A Bayesian Approach to Digital Matting. In Proceedings of IEEE Computer Vision and...
For some image the code will result in dead loop,cause` len(f_weights) < minN or len(b_weights) < minN` in code bayesian_matting.py.
i can not find method to transport [ img ] to [gandalfTrimap.png],or where can i find out?
I think there is a wrong type in the example available here: https://github.com/MarcoForte/bayesian-matting/blob/master/bayesian_matting.py#L192 Should not this be just: ``` trimap = scipy.misc.imread("gandalfTrimap.png", flatten=True) ```