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.
2 件のコメント
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!