Find the orientation of the skeletonized image
조회 수: 5 (최근 30일)
이전 댓글 표시
Is there any command that can find the orientation of skeletonized image? like the attached image that average angle of lines with respect to horizontal line.
댓글 수: 0
답변 (2개)
Matt J
2020년 1월 16일
You can use houghlines to get the endpoints of all the line segments in the image. From that, you can easily calculate their slopes.
darova
2020년 1월 16일
You can write your own function:
- use imline to create a line
- draw a line aligned with horizontal/vertical one
- calculate the angle
- rotate image
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!