how can i find diagonal line in image?

9 ビュー (過去 30 日間)
nadia
nadia 2016 年 10 月 19 日
回答済み: Swarooph 2016 年 10 月 19 日
I have an image which contains canny output of it. now, I want to find diagonal line that exist in top left part of image. do you have any idea?

回答 (1 件)

Swarooph
Swarooph 2016 年 10 月 19 日
You can use hough transform to detect lines. Once lines are detected, you can use properties such as theta on the houghlines structure to filter your lines compared to a reference line.
Take a look at this example to see how to use hough transform to detect lines in MATLAB.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by