-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,35 @@ | ||
# Learning Based Digital Matting 前景图像提取算法C/C++版 | ||
# ldbm-image-background-remover | ||
|
||
*其他语言版本: [English](README.md), [简体中文](README.zh-cn.md).* | ||
基于LDBM算法的抠图工具。 | ||
|
||
## 论文 | ||
*Read this in other languages: [English](README.md), [简体中文](README.zh-cn.md).* | ||
|
||
```latex | ||
@InProceedings{ZhengICCV09, | ||
author = {Yuanjie Zheng and Chandra Kambhamettu}, | ||
title = {Learning Based Digital Matting}, | ||
booktitle = {The 20th IEEE International Conference on Computer Vision}, | ||
year = {2009}, | ||
month = {September--October} | ||
} | ||
``` | ||
## 样例 | ||
|
||
[![LDBM Matting](https://github.com/whitelok/ldbm-image-background-remover/blob/master/resources/ldbm.png)](https://github.com/whitelok/ldbm-image-background-remover) | ||
|
||
## 演示 | ||
- 运行 LBDMImageBackgroundRemover: | ||
|
||
```bash | ||
LDBMImageBackgroundRemover /path/of/image /path/of/image_tag | ||
``` | ||
|
||
如图所示,左边第一张为需要进行前景图像分割的源图片,左边第二张图为标记图片。其中标记图片中的白色区域为确定的前景图像区域,灰色区域为前景图像边缘区域,黑色区域为背景区域。当输入源图片和标记图片之后,根据算法可得出右边前景图像提取后的图片,其中白色像素点为前景图像的像素点,黑色像素点为背景图像的像素点。 | ||
## 下载预编译版本 | ||
|
||
![图1](res/img/demo_1.png) | ||
|
||
![图2](res/img/demo_2.png) | ||
|
||
## 项目结构 | ||
## 构建 | ||
|
||
-bin // 二进制可执行文件位置 | ||
1. Build and install [OpenCV](http://opencv.org/). | ||
2. Build and install [Eigen](http://eigen.tuxfamily.org/index.php?title=Main_Page). | ||
3. Install [Cmake](https://cmake.org/). | ||
4. cd ${project file} | ||
5. mkdir build | ||
6. cd build | ||
7. cmake .. | ||
8. make | ||
|
||
-data // 用于测试图片资源 | ||
## 参考文献 | ||
|
||
-res // README文件演示用图片 | ||
- Zheng Y, Kambhamettu C. Learning based digital matting[C], Computer Vision, 2009 IEEE 12th International Conference on. IEEE, 2009: 889-896. | ||
|
||
-src // 源代码 |