detecting parallel lines in an image using Frequency domain

前端 未结 3 624
一整个雨季
一整个雨季 2021-01-06 04:54

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.

Do

3条回答
  •  清歌不尽
    2021-01-06 05:36

    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. sample img

    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...

提交回复
热议问题