Find the orientation of the skeletonized image
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
![Capture.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/262116/Capture.jpeg)
0 commentaires
Réponses (2)
Matt J
le 16 Jan 2020
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
le 16 Jan 2020
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
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!