compute the orientation of a line in a image

i have a binary image which contain some line segments.For each point location,i want to calculate the orientation of its corresponding line .please suggest an solution
thanks in advance .

 Akzeptierte Antwort

Image Analyst
Image Analyst am 27 Sep. 2011

0 Stimmen

call bwconncomp() and then regionprops() and ask for "orientation". See if that works for you.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by