MarcoForte / knn-matting

Python implementation of KNN Matting, CVPR 2012 / TPAMI 2013 http://dingzeyu.li/projects/knn/
MIT License
128 stars 29 forks source link

how to calculate the foreground color? #8

Closed hqqxyy closed 4 years ago

hqqxyy commented 5 years ago

Hi,

In the PAMI version paper, there is a paragraph describing the calculation of the foreground color. I tried to implement it. But I can not make it. Would you mind providing the codes to get the foreground color?

Thanks

CQFIO commented 4 years ago

You can find the codes for foreground and background estimation at https://cqf.io/code/knn_matting_layer_estimation_source_code.zip