MarcoForte / FBA_Matting

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

expression does not match with eq in the paper. #55

Open hkleec opened 1 year ago

hkleec commented 1 year ago

in fba_fusion funtion in model.py:

F = ((alpha * img + (1 - alpha**2) * F - alpha * (1 - alpha) * B))
B = ((1 - alpha) * img + (2 * alpha - alpha**2) * B - alpha * (1 - alpha) * F)

But from eq(4), eq(5) in paper says:

F1 = ((alpha * img + (1 - alpha**2) * F - alpha * (1 - alpha) * B))
B = ((1 - alpha) * img + (2 * alpha - alpha**2) * B - alpha * (1 - alpha) * F)
F = F1

the effect of change to results is little, though.