Length of the curve in the image
1 次查看(过去 30 天)
显示 更早的评论
Dear All;
I have curve with random shape , i want to measure it length in the image , is there any way to do it
0 个评论
采纳的回答
Walter Roberson
2014-2-2
http://www.mathworks.com/help/images/ref/bwdistgeodesic.html Let the mask be true only at the "end" of the curve, seed only at the "beginning" of the curve, BW is the curve, then the geodesic would be the shortest "distance" through the curve to get to the end.
http://www.mathworks.com/help/images/ref/bwtraceboundary.html and take number of rows in returned matrix
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Denoising and Compression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!