Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 731 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 731 Bytes

Bayesian matting

This repository is a python implementation of paper A Bayesian approach to digital matting. A pdf report explaning the math behind and few example output has been attached.

Implementation details

I have used a queue to store the unknown pixels and iterate over them one by one. While iterating if there are less than 15 known neighbour pixels, then the point is skipped and re-added at the end of the queue.

Dataset

Few images along with its trimap are available here drive link

Results

Example1 Example1