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

用lines_gauss的width属性提取缺陷

自己做了一个图,这个图放在资源里了

结果图是这样(这里只结算了窄区)

代码和备注如下


read_image (Image11, 'C:/Users/Administrator/Desktop/分享/15/11.png')
rgb1_to_gray (Image11, GrayImage)
invert_image (GrayImage, ImageInvert)
threshold (ImageInvert, Region, 128, 255)
dilation_circle (Region, RegionDilation, 5)
reduce_domain (ImageInvert, RegionDilation, ImageReduced)
***线宽大概是10
calculate_lines_gauss_parameters (12,240, Sigma, Low, High)
lines_gauss (ImageReduced, Lines,Sigma, Low, High, 'light', 'true', 'bar-shaped', 'true')
clip_end_points_contours_xld (Lines, Lines, 'num_points', 10)
get_contour_xld (Lines, Row, Col)
get_contour_attrib_xld (Lines, 'width_right', r_width)
get_contour_attrib_xld (Lines, 'width_left', l_width)
widths:=(r_width+l_width)/2***看看跟邻居的比例情况
mean_width :=sort(widths)[round(|widths|*0.5)]
low_width:=mean_width*0.8
high_width:=mean_width*1.1tuple_less_elem (widths, low_width, Less)
tuple_find (Less, 1, Indices)rows:=Row[Indices]
colums:=Col[Indices]
gen_circle (Circle, rows, colums, 2)union1 (Circle, RegionUnion)
connection (RegionUnion, ConnectedRegions)
area_center (ConnectedRegions, Area, Row1, Column)
gen_circle (Circle2, Row1, Column,20)
dev_display (Image11)
dev_display (Circle2)

http://www.lryc.cn/news/578628.html

相关文章:

  • Prompt生成指南
  • Unity-ComputeShader
  • UE5.6 官方文档笔记 [1]——虚幻编辑器界面
  • C#.Net筑基-优雅LINQ的查询艺术
  • 6.2 实现文档加载和切分和简易向量数据库的功能
  • 图像处理专业书籍以及网络资源总结
  • beego打包发布到Centos系统及国产麒麟系统完整教程
  • 前端第二节(Vue)
  • 微信小程序实现table表格
  • 微信小程序21~30
  • CppCon 2018 学习:EFFECTIVE REPLACEMENT OF DYNAMIC POLYMORPHISM WITH std::variant
  • Linux->进程控制(精讲)
  • 《P5522 [yLOI2019] 棠梨煎雪》
  • 如何分析大语言模型(LLM)的内部表征来评估文本的“诚实性”
  • 在 Docker 容器中使用内网穿透
  • 大语言模型推理系统综述
  • NLP——RNN变体LSTM和GRU
  • 关于vue2使用elform的rules校验
  • 深度学习进阶:自然语言处理的推荐点评
  • (LeetCode 面试经典 150 题) 42. 接雨水 (单调栈)
  • Gartner《Choosing Event Brokers to Support Event-DrivenArchitecture》心得
  • 振荡电路Multisim电路仿真实验汇总——硬件工程师笔记
  • .NET跨平台开发工具Rider v2025.1——支持.NET 10、C# 14
  • K8s Pod调度基础——2
  • Langgraph 学习教程
  • 位运算经典题解
  • python+uniapp基于微信小程序的流浪动物救助领养系统nodejs+java
  • 用 YOLOv8 + DeepSORT 实现目标检测、追踪与速度估算
  • SeaTunnel 社区 2 项目中选“开源之夏 2025”,探索高阶数据集成能力!
  • 华为设备 QoS 流分类与流标记深度解析及实验脚本