From cc9b18e500d8b74f28d6b5f827354092899bbb23 Mon Sep 17 00:00:00 2001 From: lokwhite Date: Sun, 8 Oct 2017 13:05:58 +0800 Subject: [PATCH] sync 2017/10/08 --- README.md | 18 +++++++++--------- README.zh-cn.md | 44 +++++++++++++++++++++++--------------------- 2 files changed, 32 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 2c62427..2d1be6e 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 diff --git a/README.zh-cn.md b/README.zh-cn.md index c9003a3..7205478 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -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 // 源代码