使用频域检测图像中的平行线 [英] detecting parallel lines in an image using Frequency domain
问题描述
我的图像是直线。
我想检查线路是否使用频域并行。
我正在对图像进行fft并获得变换图像。
I have an image with straight lines. I want to check if the lines are parallels using frequency domain. I'm doing fft on the image and i get the transform image.
有谁知道如何使用变换图像来查找线条是否为并行?
Does anyone know how can i use the transform image for finding if the lines are parallel?
推荐答案
所以这里有两种情况,使用一些随机角度或相同角度,两行可变长度,以及它们的绝对价值。
So here are the two cases, using either some random angle or the same angle, of 2 lines of variable lengths, and their absolute value ffts.
所以有通过查看他们的fft,你可以通过很多方式判断它们是否平行,我会在一个更简单的方向上给出一个提示,从fft'ed图像的中心开始......
So there are many ways you can tell if they are parallel or not by looking on their fft, I'll give a hint in one of the easier directions, start from the center of the fft'ed image...
这篇关于使用频域检测图像中的平行线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!