如何使用变换图像检查线条是否平行? [英] how to check if lines are parallel using the transform image?

查看:136
本文介绍了如何使用变换图像检查线条是否平行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个理论问题:
如果我的图像中的线条似乎是平行的,我需要检查它们是否使用该图像的变换图像,我该怎么办?
如果它们是并行的,我如何判断变换图像?

I have a theoretical question: If I have an image with lines that seems to be parallel, and I need to check if they are so using the transform image of that image, how can I do it? how can I tell from the transform image if they are parallel?

推荐答案

使用Hough变换。

在霍夫结果图像中,每条直线都是一个点。在一个轴上,您拥有图像中每条线的角度,另一个轴上每条线与其中一条轴交叉。

In the Hough result "image" every straight line is a dot. On one axis you have the angle of each line in the image, on the other you have each line's crossing with one of the axis.

检查线条是否平行检测两个点并查看它们是否具有相同的角度值。

To check if your lines are parallel detect the two dots and see if they have the same angle value.

问候

这篇关于如何使用变换图像检查线条是否平行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆