Measure the lengths of a polygon
Show older comments
How to measure the length of the sides in polygon at BW image? Obviously that the polygon is not ideal (it’s a picture) Note that the polygon is filled (background is "0" and polygon and its inside is "1")
Accepted Answer
More Answers (1)
Image Analyst
on 28 Jul 2013
0 votes
Use bwboundaries() to get the (x,y) coordinates of the outer perimeter. Then use the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_find_.22kinks.22_in_a_curve.3F, which points to an Answers posting where I gave demo code.
Categories
Find more on Region and Image Properties in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!