# 2D Hough transform for line detection
## Slope-intercept representation
The slope-intercept representation of the Hough transform transforms points in the $xy$ space to straight lines in the $ab$ space using the equation $b = -x_ia + y_i$. An accumulator array is generated to capture the local maxima of intersections between lines (ab plane) to find the pixels in the source image located along the line (xy plane) with gradient $a$ and intercept $b$.
As the size of the discretized ab accumulator array depends on the gradient $a$ and intercept $b$, it becomes incomputably large as the gradient of a line in the $xy$ plane approaches vertical (infinity). The runtime for the ab transform hence takes considerably longer than the second representation.
## Normal representation
The normal representation of the Hough transform uses the $\rho\theta$ space from the equation $\rho = x_i\cos(\theta)+y_i\sin(\theta)$ which solves the above issue as $\theta$ can be restricted to the range $-90\degree < \theta \leq 90\degree$.
The `ht_plot_aligned` function in the [rt representation](hough_transform_rt_run.m) aligns the boundary of the original image to the lines found from the rt hough transform.
没有合适的资源?快使用搜索试试~ 我知道了~
二维霍夫变换matlab实现.rar
共5个文件
m:2个
bmp:2个
md:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 152 浏览量
2024-06-14
20:44:15
上传
评论
收藏 35KB RAR 举报
温馨提示
1.版本:matlab2014/2019a/2021a 2.附赠案例数据可直接运行matlab程序。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。
资源推荐
资源详情
资源评论
收起资源包目录
二维霍夫变换matlab实现.rar (5个子文件)
二维霍夫变换matlab实现
2D-hough-transform-main
hough_transform_rt_run.m 6KB
hough_transform_ab_run.m 4KB
Images
letter_line.bmp 663KB
letter.bmp 109KB
README.md 1KB
共 5 条
- 1
资源评论
matlab科研助手
- 粉丝: 3w+
- 资源: 5951
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功