霍夫变换以确定线条及其宽度

发布于 2024-12-20 21:34:02 字数 271 浏览 2 评论 0原文

是否有修改霍夫变换来检测线段宽度的实现或论文?霍夫空间最大值可用于确定潜在的线,线段是在线上有足够间隔的像素组。完成此操作后,我尝试确定每个线段的宽度。

到目前为止我能找到的就是这张海报: http://www.cse.cuhk.edu.hk/ ~lyu/staff/SongJQ/poster_47_song_j.pdf

Are there any implementations or papers that modify the Hough transform to detect the width of line segments? Hough space maxima can be used to determine potential lines, and line segments are groups of pixels that are on the line for sufficient intervals. After doing that, I'm trying to determine the width of each line segment.

All I've been able to find thus far is this poster:
http://www.cse.cuhk.edu.hk/~lyu/staff/SongJQ/poster_47_song_j.pdf

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

林空鹿饮溪 2024-12-27 21:34:02

取决于您是否愿意花一些钱,有一个名为 Halcon 的软件包可以提供您想要的东西。

例如http://www.mvtec.com/download/reference/lines_gauss.html (这不是霍夫变换,但主包也有这些)。

我用谷歌找到了一篇名为“从图像中提取曲线”的论文,其中提到了线宽(我也无法使链接起作用)。

Depending if you are willing to spend some money, there is a package called Halcon that has the kind of things you are after.

For example http://www.mvtec.com/download/reference/lines_gauss.html (that's not a Hough transform, but the main package does have those as well).

I used Google to find a paper called "Extraction of Curved Lines from Images" which mentions line width (I can't get the link to work either).

殊姿 2024-12-27 21:34:02

如果每个线段都有一个二进制掩码,您可能会取距离变换的最大值那个线段?它应该告诉您线的中心距边缘有多远,宽度应为 2*max(distanceTranform(segment)) - 1 对于奇数宽度和 2*max( distanceTranform(segment)) 对于均匀宽度。

OpenCV 具有此方法的实现此处。他们还有HoughLinesP 来检测线段,但听起来您已经解决了。

If you have a binary mask for each line segment could you possibly take the maximum of the distance transform on that line segment? It should tell you how far away the center of the line is from the edge, the width should be 2*max(distanceTranform(segment)) - 1 for odd widths and 2*max(distanceTranform(segment)) for even widths.

OpenCV has an implementation of this method here. They also have HoughLinesP to detect line segments, but sounds like you already have that worked out.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文