viraj-shah18 / Bayesian_matting

Python implementation of paper "A Bayesian approach to digital matting"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Python implementation of paper "A Bayesian approach to digital matting"


Languages

Language:Python 100.0%