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

直线检测算子

hough_lines_dir 

接口

hough_lines_dir(ImageDir : HoughImage, Lines : DirectionUncertainty, AngleResolution, Smoothing, FilterSize, Threshold, AngleGap, DistGap, GenLines : Angle, Dist)

参数

in:

        ImageDir :由边缘检测算子sobel_dir、edge_image获取的边缘梯度方向图

        DirectionUncertainty:用于限定线内各点在边缘方向的运行变化程度。

        AngleResolution:定义了确定角度的精确程度。精度总计为1/AngleResolution度。

        Smoothing:用于选择平滑滤波器。

        FilterSize:平滑滤波器的size,决定输出的平滑度。

        Threshold:二值化阈值。

        AngleGap、DistGap:参数AngleGap和DistGap定义了霍夫图像中的点的邻域,以确定局部最大值:AngleGap分别描述霍夫图像在角度方向上和在距离方向上的两个最大值的最小距离。

        GenLines:bool值,用于决定是否在Lines中输出霍夫空间域中,有局部最大贡献值的区域。

out:

        HoughImage:霍夫变换图像

        Lines :输入图像中局部贡献值最大的区域(即检测到的直线区域)

        Angle:检测到的直线的法向量角度(弧度制)

        Dist:检测到的直线与原始位置的距离

示例程序

* Detect lines in an image with the help of the Hough transform
* using the edge direction as additional information and return it both
* in HNF and as regions
* 
read_image (Image, 'fabrik')
rectangle1_domain (Image, ImageReduced, 170, 280, 310, 360)
* Detect edges (amplitude and direction) using the Sobel operator
sobel_dir (ImageReduced, EdgeAmplitude, EdgeDirection, 'sum_abs', 3)
dev_set_color ('red')
threshold (EdgeAmplitude, Region, 55, 255)
* Reduce the direction image to the edge region
reduce_domain (EdgeDirection, Region, EdgeDirectionReduced)
* Start the Hough transform using the edge direction information
hough_lines_dir (EdgeDirectionReduced, HoughImage, Lines, 4, 2, 'mean', 3, 25, 5, 5, 'true', Angle, Dist)
* Store input lines described in HNF
gen_region_hline (LinesHNF, Angle, Dist)
dev_display (Image)
dev_set_colored (12)
* Display the lines
dev_set_draw ('margin')
dev_display (LinesHNF)
* Display the edge pixels that contributed to the corresponding lines
dev_set_draw ('fill')
dev_display (Lines)

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

相关文章:

  • 如何在本地Docker中部署MinIO服务并实现远程访问管理界面
  • 逛商场。。。
  • RTrPPG
  • web应用开发技术的一些概念
  • 智能优化算法应用:基于乌燕鸥算法3D无线传感器网络(WSN)覆盖优化 - 附代码
  • 超聚变服务器(原华为服务器)网站模拟器
  • Linux常见压缩指令小结
  • OpenSSL的源码在哪里下载?
  • 使用create-react-app脚手架创建react项目
  • 【网络安全】网络防护之旅 - 点燃网络安全战场的数字签名烟火
  • JVM基础扫盲
  • SpringBoot基于gRPC进行RPC调用
  • 浏览器的事件循环机制(Event loop)
  • THEMIS---Beta Sprint Summary Essay Blog
  • Vue中实现分布式动态路由的基本实现步骤介绍
  • 【Leetcode】计算器
  • 巧妙的使用WPF中的资源
  • 多维时序 | MATLAB实现RIME-CNN-BiLSTM-Multihead-Attention多头注意力机制多变量时间序列预测
  • 【AIGC重塑教育】AI大模型驱动的教育变革与实践
  • 【力扣100】2.两数相加
  • 算法leetcode|93. 复原 IP 地址(多语言实现)
  • TOGAF—架构(Architecture)项目管理
  • MVVM前端设计模式的发展与应用
  • redis:二、缓存击穿的定义、解决方案(互斥锁、逻辑过期)的优缺点和适用场景、面试回答模板和缓存雪崩
  • php的Url 安全的base64编码解码类
  • 安全CDN有什么作用,安全CDN工作原理是什么?
  • Mysql高可用|索引|事务 | 调优
  • 电机驱动开发
  • 基于PaddleNLP的深度学习对文本自动添加标点符号(一)
  • “Java已死、前端已凉”?尊嘟假嘟?