I want this length in mm
How can i find the total length of this rod please anyone help me ?
2 ビュー (過去 30 日間)
表示 古いコメント

please find the length of this rod from start point to end point please give me solution i am new user in matlab software.
採用された回答
Walter Roberson
2023 年 5 月 10 日
filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/1379339/image.png';
grey = rgb2gray(imread(filename));
BW = grey >= 250;
imshow(BW)
props = regionprops(BW, 'MajorAxisLength');
object_size = props.MajorAxisLength %in pixels
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!