MATLAB Answers

how can i find diagonal line in image?

23 views (last 30 days)
nadia
nadia on 19 Oct 2016
Answered: Swarooph on 19 Oct 2016
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?

  0 Comments

Sign in to comment.

Answers (1)

Swarooph
Swarooph on 19 Oct 2016
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.

  0 Comments

Sign in to comment.

Sign in to answer this question.