AffinityBasedMattingToolbox

AffinityBasedMattingToolbox工具箱

研究Matting非常值得参考的库

https://github.com/yaksoy/AffinityBasedMattingToolbox

This toolbox includes a collection of common affinity-based image matting algorithms as well as matte refinement algorithms used by sampling-based image matting methods. It features the only public (re-)implementation of information-flow matting [AAP17], a faster matting Laplacian [LLW08] computation and a faster trimap trimming [SRPC13]. The parameters for each algorithm are easily customizable.

The included matting algorithms are:

  • Information-flow matting [AAP17]
  • KNN matting [CLT13]
  • Closed-form matting [LLW08]

The included matte refinement algorithms are:

  • Information-flow matte refinement [AAP17]
  • Shared matting matte refinement [GO10]

The included trimap trimming methods are:

  • Patch-based trimming [AAP17]
  • Trimming from known-unknown edges [SRPC13]

The toolbox is designed to be ease of use for an extended set of applications. Sparse affinity matrices defined and used in [AAP17, CLT13, CZZT12, LLW08] can be obtained by calling the corresponding functions inside 'affinity' directory. The functions in this directory allow defining regions for neighborhood search.

An example image-trimap pair from the alpha matting benchmark [RRW09] is provided. Basic features are demonstrated in the demo file. Each function features an explanation and definitions of related parameters.

The information-flow matting function in this toolbox is not the original implementation used in the paper. These are reimplementations of the original methods and may not give the exact same results as reported in the corresponding papers.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值