MarcoForte / FBA_Matting

Official repository for the paper F, B, Alpha Matting
MIT License
464 stars 95 forks source link

script for foreground estimation #30

Closed wchstrife closed 3 years ago

wchstrife commented 3 years ago

I use Code for foreground extension for foreground prediction on adobe dataset. But when processing some pictures, there will be insufficient memory.

I noticed that you mentioned that a custom multi-level solver written in C. Could you please provide this code?

MarcoForte commented 3 years ago

Hi I did not write the code for the multilevel solver so I can't provide you with it. But luckily someone else wrote a very similar solver and it is open source, https://pymatting.github.io/pymatting.foreground.html#module-pymatting.foreground.estimate_foreground_ml

wchstrife commented 3 years ago

Thanks for your reply! this code solved my problem very well.

99991 commented 1 year ago

Sorry, I rewrote the documentation tool and the URL changed. This is the new URL for the foreground estimation function:

https://pymatting.github.io/foreground.html#estimate_foreground_ml