MarcoForte / bayesian-matting

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 Pattern Recognition (CVPR 2001), Vol. II, 264-271, December 2001
94 stars 33 forks source link

Wrong argument type in the main file #3

Open hristo-vrigazov opened 6 years ago

hristo-vrigazov commented 6 years ago

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)