grabcut

所属分类:其他
开发工具:matlab
文件大小:640KB
下载次数:23
上传日期:2017-12-21 19:11:12
上 传 者lzxiangxin
说明:  基本的图割法进行图像分割,效果较好,思路清晰
(The graph cut method is used for image segmentation, and the effect is bette)

文件列表:
grabcut (0, 2015-12-20)
grabcut\assign_gauss.m (1468, 2015-05-04)
grabcut\bin_graphcuts (0, 2015-12-20)
grabcut\bin_graphcuts\BK_AddVars.m (320, 2015-05-04)
grabcut\bin_graphcuts\BK_BuildLib.m (2420, 2015-05-04)
grabcut\bin_graphcuts\BK_Create.m (711, 2015-05-04)
grabcut\bin_graphcuts\BK_Delete.m (206, 2015-05-04)
grabcut\bin_graphcuts\BK_GetLabeling.m (235, 2015-05-04)
grabcut\bin_graphcuts\BK_ListHandles.m (360, 2015-05-04)
grabcut\bin_graphcuts\BK_LoadLib.m (496, 2015-05-04)
grabcut\bin_graphcuts\BK_Minimize.m (278, 2015-05-04)
grabcut\bin_graphcuts\BK_SetNeighbors.m (1157, 2015-05-04)
grabcut\bin_graphcuts\BK_SetPairwise.m (760, 2015-05-04)
grabcut\bin_graphcuts\BK_SetUnary.m (1022, 2015-05-04)
grabcut\bin_graphcuts\BK_UnitTest.m (5854, 2015-05-04)
grabcut\bin_graphcuts\bin (0, 2015-12-20)
grabcut\bin_graphcuts\bin\bk_matlab.mexmaci64 (35824, 2015-05-04)
grabcut\bin_graphcuts\bin\bk_matlab.mexw64 (44032, 2015-10-03)
grabcut\bin_graphcuts\bk_matlab.cpp (14166, 2015-05-04)
grabcut\bin_graphcuts\block.h (7466, 2015-05-04)
grabcut\bin_graphcuts\energy.h (11038, 2015-05-04)
grabcut\bin_graphcuts\graph.cpp (3005, 2015-05-04)
grabcut\bin_graphcuts\graph.h (18100, 2015-05-04)
grabcut\bin_graphcuts\maxflow.cpp (17631, 2015-05-04)
grabcut\bin_graphcuts\test2.jpg.html (495, 2015-05-04)
grabcut\compute_pairwise.m (2987, 2015-05-04)
grabcut\compute_unary.m (702, 2015-05-04)
grabcut\cut_Tu.m (1977, 2015-05-04)
grabcut\fit_gmm.m (735, 2015-05-04)
grabcut\get_rgb_double.m (433, 2015-05-04)
grabcut\grabcut.m (2310, 2015-05-04)
grabcut\mytest.m (165, 2015-10-03)
grabcut\results (0, 2015-12-20)
grabcut\results\11.jpg (79792, 2015-09-20)
grabcut\results\test1.jpg (14719, 2015-05-04)
grabcut\results\test1_cut.png (37666, 2015-05-04)
grabcut\results\test2.png (67042, 2015-05-04)
grabcut\results\test2_cut.png (36564, 2015-05-04)
grabcut\results\test3.jpg (36221, 2015-05-04)
... ...

# grabcut A MATLAB implementation of GrabCut (excluding border matting and user editing) This project implements @article{rother2004grabcut, title={Grabcut: Interactive foreground extraction using iterated graph cuts}, author={Rother, Carsten and Kolmogorov, Vladimir and Blake, Andrew}, journal={ACM Transactions on Graphics (TOG)}, volume={23}, number={3}, pages={309--314}, year={2004}, publisher={ACM} } in MATLAB, and it *excludes* border matting and user editing. That is, it implements everything up to > Iterative minimisation 4. Repeat from step 1 until convergence as in Figure 3 in the original paper. ## Results ![](https://raw.githubusercontent.com/xiumingzhang/grabcut/master/results/test1.jpg)![](https://raw.githubusercontent.com/xiumingzhang/grabcut/master/results/test1_cut.png) ![](https://raw.githubusercontent.com/xiumingzhang/grabcut/master/results/test2.png)![](https://raw.githubusercontent.com/xiumingzhang/grabcut/master/results/test2_cut.png) ![](https://raw.githubusercontent.com/xiumingzhang/grabcut/master/results/test3.jpg)![](https://raw.githubusercontent.com/xiumingzhang/grabcut/master/results/test3_cut.png) ![](https://raw.githubusercontent.com/xiumingzhang/grabcut/master/results/test4.jpg)![](https://raw.githubusercontent.com/xiumingzhang/grabcut/master/results/test4_cut.png) ![](https://raw.githubusercontent.com/xiumingzhang/grabcut/master/results/test5.jpg)![](https://raw.githubusercontent.com/xiumingzhang/grabcut/master/results/test5_cut.png) ![](https://raw.githubusercontent.com/xiumingzhang/grabcut/master/results/test6.jpg)![](https://raw.githubusercontent.com/xiumingzhang/grabcut/master/results/test6_cut.png) ## Example Usage GAMMA = 20; % Inputs and parameters im_in = imread('./grabcut/results/test4.jpg'); % GrabCut im_out = grabcut(im_in, GAMMA); imwrite(im_out, './grabcut/results/test4_out.jpg'); ### Acknowledgement The author would like to thank the Computer Vision Research Group at the University of Western Ontario for making their implementation of the max-flow/min-cut algorithm publicly available [here](http://vision.csd.uwo.ca/wiki/vision/upload/d/d7/Bk_matlab.zip).

近期下载者

相关文件


收藏者