Advertisement

OpenCV 的 GrabCut 代码库 和 示例

阅读量:

GrabCut 算法在 OpenCV 中的可执行代码实现

参考资料:http://www.cnblogs.com/tornadomeet/archive/2012/11/09/2763271.html


复制代码
  #include "opencv2/highgui/highgui.hpp"

    
 #include "opencv2/imgproc/imgproc.hpp"
    
  
    
 #include <iostream>
    
  
    
 using namespace std;
    
 using namespace cv;
    
  
    
 static void help()
    
 {
    
 	cout << "\nThis program demonstrates GrabCut segmentation -- select an object in a region\n"
    
 		"and then grabcut will attempt to segment it out.\n"
    
 		"Call:\n"
    
 		"./grabcut <image_name>\n"
    
 		"\nSelect a rectangular area aroun

全部评论 (0)

还没有任何评论哟~