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

医疗网站如何做优化一级域名免费申请

医疗网站如何做优化,一级域名免费申请,西安免费做网站多少钱,建筑工程网络计划方法计算机视觉之家看到快速圆检测Edge Drawing#xff0c;其效果比霍夫要好#xff0c;速度更快#xff08;具体效果可以参考视觉之家的文章#xff09;#xff0c;上面C代码不全#xff0c;那么好的检测效果国内资料竟然那么少#xff0c;后在opencv的开发文档中找到了C代…计算机视觉之家看到快速圆检测Edge Drawing其效果比霍夫要好速度更快具体效果可以参考视觉之家的文章上面C代码不全那么好的检测效果国内资料竟然那么少后在opencv的开发文档中找到了C代码在此分享学习交流。 实战 | OpenCV中更稳更快的找圆方法--EdgeDrawing使用演示详细步骤 代码_opencv 找圆_计算机视觉之家的博客-CSDN博客 OpenCV: EdgeDrawing OpenCV: fld_lines.cpp #include iostream#include opencv2/imgproc.hpp #include opencv2/ximgproc.hpp #include opencv2/imgcodecs.hpp #include opencv2/highgui.hppusing namespace std; using namespace cv; using namespace cv::ximgproc;int main(int argc, char** argv) {string in;CommandLineParser parser(argc, argv, {input|corridor.jpg|input image}{help h||show help message});if (parser.has(help)){parser.printMessage();return 0;}in samples::findFile(parser.getstring(input));Mat image imread(in, IMREAD_GRAYSCALE);if( image.empty() ){return -1;}// Create FLD detector// Param Default value Description// length_threshold 10 - Segments shorter than this will be discarded// distance_threshold 1.41421356 - A point placed from a hypothesis line// segment farther than this will be// regarded as an outlier// canny_th1 50 - First threshold for// hysteresis procedure in Canny()// canny_th2 50 - Second threshold for// hysteresis procedure in Canny()// canny_aperture_size 3 - Aperturesize for the sobel operator in Canny().// If zero, Canny() is not applied and the input// image is taken as an edge image.// do_merge false - If true, incremental merging of segments// will be performedint length_threshold 10;float distance_threshold 1.41421356f;double canny_th1 50.0;double canny_th2 50.0;int canny_aperture_size 3;bool do_merge false;PtrFastLineDetector fld createFastLineDetector(length_threshold,distance_threshold, canny_th1, canny_th2, canny_aperture_size,do_merge);vectorVec4f lines;// Because of some CPUs power strategy, it seems that the first running of// an algorithm takes much longer. So here we run the algorithm 10 times// to see the algorithms processing time with sufficiently warmed-up// CPU performance.for (int run_count 0; run_count 5; run_count) {double freq getTickFrequency();lines.clear();int64 start getTickCount();// Detect the lines with FLDfld-detect(image, lines);double duration_ms double(getTickCount() - start) * 1000 / freq;cout Elapsed time for FLD duration_ms ms. endl;}// Show found lines with FLDMat line_image_fld(image);fld-drawSegments(line_image_fld, lines);imshow(FLD result, line_image_fld);waitKey(1);PtrEdgeDrawing ed createEdgeDrawing();ed-params.EdgeDetectionOperator EdgeDrawing::SOBEL;ed-params.GradientThresholdValue 38;ed-params.AnchorThresholdValue 8;vectorVec6d ellipses;for (int run_count 0; run_count 5; run_count) {double freq getTickFrequency();lines.clear();int64 start getTickCount();// Detect edges//you should call this before detectLines() and detectEllipses()ed-detectEdges(image);// Detect linesed-detectLines(lines);double duration_ms double(getTickCount() - start) * 1000 / freq;cout Elapsed time for EdgeDrawing detectLines duration_ms ms. endl;start getTickCount();// Detect circles and ellipsesed-detectEllipses(ellipses);duration_ms double(getTickCount() - start) * 1000 / freq;cout Elapsed time for EdgeDrawing detectEllipses duration_ms ms. endl;}Mat edge_image_ed Mat::zeros(image.size(), CV_8UC3);vectorvectorPoint segments ed-getSegments();for (size_t i 0; i segments.size(); i){const Point* pts segments[i][0];int n (int)segments[i].size();polylines(edge_image_ed, pts, n, 1, false, Scalar((rand() 255), (rand() 255), (rand() 255)), 1);}imshow(EdgeDrawing detected edges, edge_image_ed);Mat line_image_ed(image);fld-drawSegments(line_image_ed, lines);// Draw circles and ellipsesfor (size_t i 0; i ellipses.size(); i){Point center((int)ellipses[i][0], (int)ellipses[i][1]);Size axes((int)ellipses[i][2] (int)ellipses[i][3], (int)ellipses[i][2] (int)ellipses[i][4]);double angle(ellipses[i][5]);Scalar color ellipses[i][2] 0 ? Scalar(255, 255, 0) : Scalar(0, 255, 0);ellipse(line_image_ed, center, axes, angle, 0, 360, color, 2, LINE_AA);}imshow(EdgeDrawing result, line_image_ed);waitKey();return 0; }
http://www.zqtcl.cn/news/691456/

相关文章:

  • 企业网站优化兴田德润怎么样网站建设建设公司资质要求
  • 如何把网站做跳转浏览器链接地址wordpress 离线更新
  • 乌海学校网站建设wordpress默认主题下载
  • 海兴县做网站如何选网站建设公司
  • asp网站设为首页代码孝仙洪高速公路建设指挥部网站
  • 浦东新区网站开发人才网站建设策划书
  • 网站做flash好不好免费微信公众号素材网
  • 开发网站嵌入广告汕头电商网站建设
  • 电脑做科目一网站购物网站怎么创建
  • c2c网站建设公司wordpress被公众号干掉
  • wordpress托管建站网站页面布局和样式设计
  • 建站平台江苏省建设监理协会网站
  • 安徽网站开发培训价格百度seo排名公司
  • 青海网站建设费用oa系统和erp系统区别
  • 个人做网站的注意事项网站开发工程师6
  • 镇江百度网站建设北京网站开发价格
  • 大岭山镇仿做网站推广计划表格
  • 网站备案地址不是我的地址怎么办建设银行网站查询业务收费吗
  • 电商网站设计内容网站编辑及seo招聘
  • 用什么网站开发浙江省住房和建设厅网站
  • 站长工具seo优化建议微信小程序线上商城怎么申请
  • 建筑网站开发设计做网站的公司msgg
  • 设计师个人网站模板网站的尾页要怎么做
  • 营销型网站建设风格设定包括哪些方面wordpress企业魔板
  • 怎样做淘客网站做绿色产品的网站
  • 关于网站建设的通知wordpress点注册后一直不出来
  • 科技公司网站设计方案开发公司绩效考核
  • 深圳网站建设推进旗县政务网站建设工作方案
  • 南宁 网站建设网站集约建设
  • 做网站编辑好吗吉林省四平市