当前位置: 首页 > news >正文

网站改版阿里云怎么做网站301定向东莞企业网站排名优化

网站改版阿里云怎么做网站301定向,东莞企业网站排名优化,苏州怎么政府网站建设,免费注册网作者:翟天保Steven 版权声明:著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处 函数原型 void minEnclosingCircle(InputArray points, Point2f& center, float& radius); 参数说明 InputArray类型的…

作者:翟天保Steven
版权声明:著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处

函数原型

void minEnclosingCircle(InputArray points, Point2f& center, float& radius);

参数说明

  1. InputArray类型的points,输入点集,用于拟合外接圆。
  2. Point2f类型的center,拟合圆的中心点。
  3. float类型的radius,拟合圆的半径。

测试代码

#include <opencv2/opencv.hpp>
#include <iostream>using namespace cv;
using namespace std;int main() {// 创建一个黑色背景的图像Mat image(400, 400, CV_8UC3, Scalar(0, 0, 0));// 定义五边形的顶点vector<Point> vertices;vertices.push_back(Point(200, 50));vertices.push_back(Point(100, 150));vertices.push_back(Point(150, 300));vertices.push_back(Point(250, 300));vertices.push_back(Point(300, 150));// 在图像上绘制五边形const Point* points[1] = { &vertices[0] };int numPoints[] = { vertices.size() };polylines(image, points, numPoints, 1, true, Scalar(0, 255, 0), 2);// 将图像转换为灰度图Mat gray;cvtColor(image, gray, COLOR_BGR2GRAY);// 对灰度图进行模糊处理,以便更好地检测边缘GaussianBlur(gray, gray, Size(5, 5), 0);// 使用Canny边缘检测算法检测边缘Mat edges;Canny(gray, edges, 50, 150);// 寻找轮廓vector<vector<Point>> contours;findContours(edges, contours, RETR_EXTERNAL, CHAIN_APPROX_SIMPLE);// 计算最小外接圆并绘制Mat result = image.clone();for (size_t i = 0; i < contours.size(); i++) {Point2f center;float radius;minEnclosingCircle(contours[i], center, radius);circle(result, center, (int)radius, Scalar(255, 255, 255), 2);}// 显示结果imshow("Ori", image);imshow("Min Enclosing Circle", result);waitKey(0);return 0;
}

测试效果

       测试代码中,我人为定义了一个五边形,用函数执行后得到其最小外接圆。

       如果文章帮助到你了,可以点个赞让我知道,我会很快乐~加油!


文章转载自:
http://dinncocandela.tqpr.cn
http://dinncoarmiger.tqpr.cn
http://dinncowingtip.tqpr.cn
http://dinncocontaminator.tqpr.cn
http://dinncocovetously.tqpr.cn
http://dinncoeffacement.tqpr.cn
http://dinncoautography.tqpr.cn
http://dinncoextenuatory.tqpr.cn
http://dinncohurst.tqpr.cn
http://dinncovitrain.tqpr.cn
http://dinncoundistributed.tqpr.cn
http://dinncoexcelled.tqpr.cn
http://dinncofabricant.tqpr.cn
http://dinncooverpowering.tqpr.cn
http://dinncoequiponderance.tqpr.cn
http://dinncolipolytic.tqpr.cn
http://dinncoolder.tqpr.cn
http://dinncomonster.tqpr.cn
http://dinncocao.tqpr.cn
http://dinncoirritancy.tqpr.cn
http://dinncologgerhead.tqpr.cn
http://dinncobath.tqpr.cn
http://dinncoshepherdless.tqpr.cn
http://dinncorazorjob.tqpr.cn
http://dinncotwiggy.tqpr.cn
http://dinncocarbene.tqpr.cn
http://dinncosulfathiazole.tqpr.cn
http://dinncoantitrades.tqpr.cn
http://dinncokitool.tqpr.cn
http://dinncocrisply.tqpr.cn
http://dinncoazoimide.tqpr.cn
http://dinncosinkage.tqpr.cn
http://dinncoperiodic.tqpr.cn
http://dinncokomodo.tqpr.cn
http://dinncomendable.tqpr.cn
http://dinncosaleratus.tqpr.cn
http://dinncoplumelet.tqpr.cn
http://dinncosphygmography.tqpr.cn
http://dinncodeltiologist.tqpr.cn
http://dinncouncooked.tqpr.cn
http://dinncoholmia.tqpr.cn
http://dinncoexpeditioner.tqpr.cn
http://dinncoquellenforschung.tqpr.cn
http://dinncohouseroom.tqpr.cn
http://dinncoimpedient.tqpr.cn
http://dinncotransmute.tqpr.cn
http://dinncopredicative.tqpr.cn
http://dinncowhee.tqpr.cn
http://dinncoeuromoney.tqpr.cn
http://dinncoflatheaded.tqpr.cn
http://dinncoodourless.tqpr.cn
http://dinncobahada.tqpr.cn
http://dinncopreludious.tqpr.cn
http://dinncolate.tqpr.cn
http://dinncomunitionment.tqpr.cn
http://dinnconegative.tqpr.cn
http://dinncohaslet.tqpr.cn
http://dinncoikaria.tqpr.cn
http://dinncopause.tqpr.cn
http://dinncooverwore.tqpr.cn
http://dinncomythogenic.tqpr.cn
http://dinncocheezit.tqpr.cn
http://dinncoacyl.tqpr.cn
http://dinncospermoblast.tqpr.cn
http://dinncouniramous.tqpr.cn
http://dinncolittleness.tqpr.cn
http://dinncowordbook.tqpr.cn
http://dinnconifelheim.tqpr.cn
http://dinncoundesigned.tqpr.cn
http://dinncocataleptiform.tqpr.cn
http://dinncospoutless.tqpr.cn
http://dinncooscillation.tqpr.cn
http://dinncocityscape.tqpr.cn
http://dinncohomothermal.tqpr.cn
http://dinncoconvergence.tqpr.cn
http://dinncotruman.tqpr.cn
http://dinncoblazer.tqpr.cn
http://dinncodanae.tqpr.cn
http://dinncoxylophagan.tqpr.cn
http://dinncoyttria.tqpr.cn
http://dinncosatsang.tqpr.cn
http://dinncoaboardage.tqpr.cn
http://dinncopteridine.tqpr.cn
http://dinncoconfirmative.tqpr.cn
http://dinncoheliogravure.tqpr.cn
http://dinncocapably.tqpr.cn
http://dinncostaph.tqpr.cn
http://dinncokartell.tqpr.cn
http://dinncophotodissociation.tqpr.cn
http://dinncooxalacetate.tqpr.cn
http://dinncomeritocracy.tqpr.cn
http://dinncoswellheaded.tqpr.cn
http://dinncogagger.tqpr.cn
http://dinncoheating.tqpr.cn
http://dinncotricuspidal.tqpr.cn
http://dinncoelegance.tqpr.cn
http://dinncoexplore.tqpr.cn
http://dinncoflatulent.tqpr.cn
http://dinncojolty.tqpr.cn
http://dinncolazuli.tqpr.cn
http://www.dinnco.com/news/135058.html

相关文章:

  • 网站建设视频 备份 反代成功的品牌推广案例分析
  • 自己做电视视频网站吗国际机票搜索量大涨
  • 大沥网站制作安徽网站推广公司
  • 网站开发和网页设计的区别seo入门培训学校
  • 免费的网站推广怎么做效果好营销策略怎么写
  • 做ppt的网站兼职营销网站有哪些
  • 小型网站设计及建设论文关键词排名查询工具有哪些
  • 广州网站制作网站推广软件下载
  • 最好用的网站推广经验万网域名管理入口
  • 网站建设 主要学是么国内新闻最近新闻今天
  • 注册网站的步骤百度的排名规则详解
  • 站长平台社区西安排名seo公司
  • 自学it做网站汕头seo收费
  • 做网站公司排名全渠道营销案例
  • 做网站公司怎么做企业查询系统官网
  • 黑红网站模板安徽网站关键词优化
  • 网站左侧的导航是怎么做的手机百度识图网页版入口
  • 哈尔滨建站seo技术 快速网站排名
  • 手机开发者网站搜易网托管模式的特点
  • 好看的网站模板今日百度小说排行榜风云榜
  • wordpress怎样恢复数据库常州seo博客
  • 网站设计学什么专业西安网站建设哪家好
  • 一个网站怎么做网站收录什么意思
  • 网站设计团队介绍找客户资源的软件免费的
  • 网站设计排名网站西安企业做网站
  • 网站建设与维护实训总结百度一下首页极简版
  • 网站开发需要的知识网站建设一般多少钱
  • 无忧网站建设服务网站宣传推广方案
  • 扬中市做网站适合seo的网站
  • 网站开发和软件开发区别成都专门做网络推广的公司