Skip to content

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

Notifications You must be signed in to change notification settings

viraj-shah18/Bayesian_matting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

Topics

Resources

Stars

Watchers

Forks

Languages