to find center line of similiar multiple objects in an image

1 view (last 30 days)
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

Answers (1)

Image Analyst
Image Analyst on 10 Jun 2014
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!