to find center line of similiar multiple objects in an image

2 次查看(过去 30 天)
sir, can anyone help me to find center line of all multi objects having similiar objects in matlab.or can ony one help me to make a curved image patch into straightene

回答(1 个)

Image Analyst
Image Analyst 2014-6-10
You can use regionprops() to get the orientation and centroid or weighted centroid. Then just use the point slope form of the line equation to get the equation of a line along the "centerline".

Community Treasure Hunt

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

Start Hunting!

Translated by