//===============================================================
//FileName:
// convexhull.cpp
//Date:
// 2019/11/25
//Author:
// khoing(https://blog.csdn.net/qq_45391763)
//===============================================================
#include <opencv2/opencv.hpp>
using namespace cv;
using namespace std;
int main( int argc, char** argv)
{
Mat im_src = imread("C:/Users/sualab/Desktop/sample.jpg");
//------------------------------------------------------------------------
// declare images
Mat gray, blur_image, threshold_output;
//------------------------------------------------------------------------
// convert to grayscale
cvtColor(im_src, gray, COLOR_BGR2GRAY);
凸包convexHull
最新推荐文章于 2024-07-02 08:33:02 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)