Skip to content

Commit

Permalink
sync 2017/10/08
Browse files Browse the repository at this point in the history
  • Loading branch information
whitelok committed Oct 8, 2017
1 parent 9d49c6e commit cc9b18e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 30 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Remove image background automatically with LDBM algorithmn.
- Run LBDMImageBackgroundRemover:

```bash
LBDMImageBackgroundRemover /path/of/image /path/of/image_tag
LDBMImageBackgroundRemover /path/of/image /path/of/image_tag
```

## Download Releases
Expand All @@ -20,14 +20,14 @@ LBDMImageBackgroundRemover /path/of/image /path/of/image_tag

## Build

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
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

## References

Expand Down
44 changes: 23 additions & 21 deletions README.zh-cn.md
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 // 源代码

0 comments on commit cc9b18e

Please sign in to comment.