how to find angle of inclination of the object in binary images

2 次查看(过去 30 天)
Please any one show me the code for finding angle of inclination of the object in binary image, Please help me.

回答(1 个)

Image Analyst
Image Analyst 2014-3-3
In short, you process your image until you get to an image that you can threshold into foreground and background. Then you call regionprops on the foreground and ask for the 'Orientation' of all the blobs. That's the angles of the major axis of an ellipse fit to the blobs.

类别

Help CenterFile Exchange 中查找有关 Labeling, Segmentation, and Detection 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by