CV toolbox(3) - grab cut

目录

  • grab cut

    • \(1.\) segmentation
    • \(2.\) grab cut
      • \(2.1.\) graph cut
      • \(2.2.\) code of grab cut in opencv
      • \(2.3.\) understand algorithm
      • \(2.4.\) deep grab cut

grab cut



\(1.\) segmentation

1. learning source related to interactive segmentation on github

2. project (latest achievement on CVPR2018) : Interactive Image Segmentation with Latent Diversity

3. project (latest achievement on CVPR2018) : Deep Extreme Cut: From Extreme Points to Object Segmentation

4. project (latest achievement on CVPR2019) : Curve-GCN

\(2.\) grab cut

Review of segmentation based on this blog
Learning on graph cut is based on this blog.
Learning on grab cut is based on this blog and paper.

\(2.1.\) graph cut

To help myself understand grab cut, I turn my head to learning something related to grab cut. Graph cut is one of them.

To segment a image into a object which is in our selection and the background, we can use the method of graph cut which is based on graph theory.

\(fig2.1.1\) original image is the input image as show in the left, every pixel in which can be seen as a node. Add paths to neighbor nodes, add paths to every node and s/t node, as show in the right.

As our destination is to separate object that is in our selection areas and background. In \(fig2.1.1.R\) the paths record the value of the similarity of each pixels, which is the standard of our segmentation. When the value of a path is large, it shows that it has similarity between the pixels side of the path, which is the object we are trying to preserve. Raise a method is to find the min cut of a subgraph \(fig2.1.1.R\), then separate the subgraph, we can get the objection selection.

Now, raised a issue, how to define the similarity of each pixels.

\(2.2.\) code of grab cut in opencv

\(2.3.\) understand algorithm

Based on this blog.

\(2.4.\) deep grab cut

原文地址:https://www.cnblogs.com/litun/p/12041458.html

时间: 2024-08-01 03:56:44

CV toolbox(3) - grab cut的相关文章

Grab Cut学习理解之(3)opencv-grab cut

Graph Cut的目标和背景的模型是灰度直方图,Grab Cut取代为RGB三通道的混合高斯模型GMM:建立模型是为了计算一个像素点分别属于目标和背景的概率,介个是为了建图的时候确定Gibbs能量的区域能量项,即图的t-link的权值. 3.1T-Link 单分布高斯背景模型认为,对一个背景图像,特定像素亮度的分布满足高斯分布,即对背景图像B,(x,y)点的亮度满足:IB(x,y) ~ N(u,d),这样我们的背景模型的每个象素属性包括两个参数:平均值u和方差d.对于一幅给定的图像G,如果 E

图像分割之(三)从Graph Cut到Grab Cut

[email protected] http://blog.csdn.net/zouxy09 上一文对GraphCut做了一个了解,而现在我们聊到的GrabCut是对其的改进版,是迭代的Graph Cut.OpenCV中的GrabCut算法是依据<"GrabCut" - Interactive Foreground Extraction using Iterated Graph Cuts>这篇文章来实现的.该算法利用了图像中的纹理(颜色)信息和边界(反差)信息,只要少量的用

Grab Cut学习理解之(1)new min-cut /max-flow algorithm

参(chao)考(xi)的资料还是很多的,好好学习,天天向上嘛- 1.swsamleo大神:http://blog.csdn.net/swsamleo/article/details/7915316 2.wstcegg大神:http://blog.csdn.net/wstcegg/article/details/39495535 3.zouxy09大神图像分割系列:http://blog.csdn.net/zouxy09/article/details/8532106 4.GraphCuts o

图像分割之(二)Graph Cut(图割)

[email protected] http://blog.csdn.net/zouxy09 上一文对主要的分割方法做了一个概述.那下面我们对其中几个比较感兴趣的算法做个学习.下面主要是Graph Cut,下一个博文我们再学习下Grab Cut,两者都是基于图论的分割方法.另外OpenCV实现了Grab Cut,具体的源码解读见博文更新.接触时间有限,若有错误,还望各位前辈指正,谢谢. Graph cuts是一种十分有用和流行的能量优化算法,在计算机视觉领域普遍应用于前背景分割(Image se

Graph&#160;Cut

转自:http://blog.csdn.net/zouxy09/article/details/8532111 Graph Cut,下一个博文我们再学习下Grab Cut,两者都是基于图论的分割方法.另外OpenCV实现了Grab Cut,具体的源码解读见博文更新.接触时间有限,若有错误,还望各位前辈指正,谢谢. Graph cuts是一种十分有用和流行的能量优化算法,在计算机视觉领域普遍应用于前背景分割(Image segmentation).立体视觉(stereo vision).抠图(Im

Opencv图像识别从零到精通(27)---grabcut

这是基于图论的分割方法,所以开始就先介绍了 Graph cuts,然后再到Grab cut   一. Graph cuts Graph cuts是一种十分有用和流行的能量优化算法,在计算机视觉领域普遍应用于前背景分割(Image segmentation).立体视觉(stereo vision).抠图(Image matting)等. 此类方法把图像分割问题与图的最小割(min cut)问题相关联.首先用一个无向图G=<V,E>表示要分割的图像,V和E分别是顶点(vertex)和边(edge)

cv1.1

分水岭算法实现分割 分水岭分割方法,是一种基于拓扑理论的数学形态学的分割方法,其基本思想是把图像看作是测地学上的拓扑地貌,图像中每一点像素的灰度值表示该点的海拔高度,每一个局部极小值及其影响区域称为集水盆,而集水盆的边界则形成分水岭.分水岭的概念和形成可以通过模拟浸入过程来说明.在每一个局部极小值表面,刺穿一个小孔,然后把整个模型慢慢浸入水中,随着浸入的加深,每一个局部极小值的影响域慢慢向外扩展,在两个集水盆汇合处构筑大坝,即形成分水岭. 分水岭算法一般和区域生长法或聚类分析法相结合. 分水岭算

image segmentation

大多数人接触"语义"都是在和文字相关的领域,或语音识别,期望机器能够识别你发出去的消息或简短的语音,然后给予你适当的反馈和回复.嗯,看到这里你应该已经猜到了,图像领域也是存在"语义"的. 今天是AI大热年,很多人都关注与机器人的语音交互,可是有没有想过,将来的机器人如果不能通过图像来识别主人,家里的物品.宠物,那该多没意思.说近一些,假如扫地机器人能够机智地绕开你丢在地上的臭袜子而扫走旁边的纸屑,一定能为你的生活解决不少麻烦. 没错,图像语义分割是AI领域中一个重要

从特斯拉到计算机视觉之「图像语义分割」

作者:魏秀参链接:https://zhuanlan.zhihu.com/p/21824299来源:知乎著作权归作者所有.商业转载请联系作者获得授权,非商业转载请注明出处. 说起特斯拉,大家可能立马会想到今年5月份发生在特斯拉Model S自动驾驶上的一宗夺命车祸.初步的调查表明,在强烈的日照条件下,驾驶员和自动驾驶系统都未能注意到牵引式挂车的白色车身,因此未能及时启动刹车系统.而由于牵引式挂车正在横穿公路,且车身较高,这一特殊情况导致Model S从挂车底部通过时,其前挡风玻璃与挂车底部发生撞击