Copyright (c) 2014, Lena Gorelick
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the University of Western Ontarior nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THIS SOFTWARE IMPLEMENTS THE OneCut ALGORITHM THAT USES SCRIBBLES AS HARD CONSTRAINTS.
PLEASE USE THE FOLLOWING CITATION:
@inproceedings{iccv2013onecut,
title = {Grabcut in One Cut},
author = {Tang, Meng and Gorelick, Lena and Veksler, Olga and Boykov, Yuri},
booktitle={International Conference on Computer Vision},
month = {December},
year = {2013}}
THIS SOFTWARE USES maxflow/min-cut CODE THAT WAS IMPLEMENTED BY VLADIMIR KOLMOGOROV,
THAT CAN BE DOWNLOADED FROM http://vision.csd.uwo.ca/code/.
PLEASE USE THE FOLLOWING CITATION:
@ARTICLE{Boykov01anexperimental,
author = {Yuri Boykov and Vladimir Kolmogorov},
title = {An Experimental Comparison of Min-Cut/Max-Flow Algorithms for Energy Minimization in Vision},
journal = {IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE},
year = {2001},
volume = {26},
pages = {359--374}}
THIS SOFTWARE USES OpenCV 2.4.3 THAT CAN BE DOWNLOADED FROM http://opencv.org
##################################################################
1. Installation Instruction
A. For compilation:
-Install Visual Studio 2012
-Install OpenCV 2.4.3
-Open OneCut.proj in Microsoft Visual Studio 2012
-Compile and Run in Microsoft Visual Studio 2012
B. For running the executable:
-Install Visual C++ Redistributable for Visual Studio 2012 for x64 bit
-Run OneCut.exe using OpenCV 2.4.3 VC10 dll files provided
2. Usage instructions
In the command line type:
OneCut <imageFileName> [<beta> <numBinsPerChannel>]
Default values: beta= 0.1, numBinsPerChannel=64
Example: OneCut frida_small.jpg 0.1 64
or OneCut frida_small.jpg
Once the image is opened you can scribble with left and right
mouse buttons on the object and the background in the
"Scribble Image" window. Once the scribbles are given you can
segment the image.You can keep repeatedly adding scribbles and
segmenting until the result is satisfactory.
Use the following Short Keys:
'q' - quit
's' - segment
'r' - reset (removes all strokes and clears all results)
'+' - increase brush stroke radius
'-' - decrease brush stroke radius
'right mouse button drug' - draw blue scribble
'left mouse button drug' - draw red scribble
没有合适的资源?快使用搜索试试~ 我知道了~
One cut in grabcut的OpenCV实现代码以及工程
共150个文件
tlog:59个
jpg:15个
obj:11个
5星 · 超过95%的资源 需积分: 50 458 下载量 198 浏览量
2016-01-04
16:28:50
上传
评论 14
收藏 23.43MB RAR 举报
温馨提示
说明: http://blog.csdn.net/wangyaninglm/article/details/50074613 One cut in grabcut(grabcut算法的非迭代实现?) 本文针对交互式图像分割中的图割算法,主要想翻译一篇英文文献。不足之处请大家指正。 这是博主近期看到的效果最好,实现最简单,运算时间最短的交互式图割算法,而且由于是发明图割算法实验室原班人马的文章和代码,所以非常值得研究。
资源推荐
资源详情
资源评论
收起资源包目录
One cut in grabcut的OpenCV实现代码以及工程 (150个子文件)
seg_result_right.bmp 484KB
seg_result.bmp 453KB
seg_result.bmp 324KB
left.bmp 324KB
OneCut.vcxprojResolveAssemblyReference.cache 713B
OneCut.vcxprojResolveAssemblyReference.cache 713B
OneCut_Main.cpp 19KB
maxflow.cpp 15KB
graph.cpp 3KB
ComputeTime.cpp 788B
msvcr110.dll 829KB
msvcp110.dll 646KB
OneCut.exe 196KB
OneCut.exe 182KB
OneCut.exe 135KB
graph.h 17KB
block.h 7KB
segmenter.h 2KB
ComputeTime.h 390B
vc100.idb 1.13MB
vc100.idb 731KB
OneCut.ilk 1.24MB
OneCut.ilk 659KB
instances.inc 394B
onecut-a637fc3a.ipch 44.19MB
test.jpg 244KB
frida_small.jpg 127KB
frida_small.jpg 127KB
16068.jpg 77KB
sawtooth_left.jpg 69KB
sawtooth_left.jpg 69KB
sawtooth_right.jpg 69KB
sawtooth_right.jpg 69KB
8068.jpg 53KB
swan.jpg 50KB
3063.jpg 46KB
Tsukuba_left.jpg 38KB
Tsukuba_left.jpg 38KB
Tsukuba_right.jpg 38KB
Tsukuba_right.jpg 38KB
OneCut.lastbuildstate 61B
OneCut.lastbuildstate 60B
OneCut.lastbuildstate 59B
opencv_core244d.lib 571KB
opencv_core244.lib 569KB
opencv_imgproc244.lib 309KB
opencv_ml244.lib 268KB
opencv_highgui244d.lib 194KB
opencv_highgui244.lib 193KB
OneCut.Build.CppClean.log 3KB
OneCut.log 2KB
OneCut.log 2KB
OneCut.log 2KB
OneCut.Build.CppClean.log 1KB
OneCut.Build.CppClean.log 896B
OneCut.exe.embed.manifest 667B
OneCut.exe.manifest 667B
OneCut.exe.manifest 406B
OneCut.exe.embed.manifest 406B
OneCut.exe.intermediate.manifest 381B
OneCut.exe.intermediate.manifest 381B
OneCut.exe.intermediate.manifest 381B
OneCut_Main.obj 852KB
OneCut_Main.obj 397KB
OneCut_Main.obj 293KB
maxflow.obj 191KB
maxflow.obj 148KB
maxflow.obj 146KB
graph.obj 105KB
graph.obj 80KB
graph.obj 66KB
ComputeTime.obj 49KB
ComputeTime.obj 49KB
OneCut.pdb 1.89MB
OneCut.pdb 1.46MB
OneCut.pdb 1.32MB
vc100.pdb 604KB
vc100.pdb 596KB
vc100.pdb 412KB
view1.png 2.35MB
view5.png 2.35MB
OneCut_manifest.rc 212B
OneCut_manifest.rc 202B
OneCut.exe.embed.manifest.res 732B
OneCut.exe.embed.manifest.res 472B
OneCut.sdf 32.14MB
OneCut.sln 1KB
OneCut.suo 13KB
CL.read.1.tlog 40KB
CL.read.1.tlog 37KB
CL.read.1.tlog 19KB
link.read.1.tlog 5KB
cl.command.1.tlog 4KB
link.read.1.tlog 4KB
CL.write.1.tlog 3KB
link.command.1.tlog 3KB
cl.command.1.tlog 3KB
mt.command.1.tlog 2KB
link.read.1.tlog 2KB
mt.read.1.tlog 2KB
共 150 条
- 1
- 2
shiter
- 粉丝: 1w+
- 资源: 153
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页