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.
how can i find diagonal line in image?
5 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!