How can i find the length of the horizontal and vertical line present only in the white pixel region for the attached binary image.
1 回表示 (過去 30 日間)
古いコメントを表示

2 件のコメント
採用された回答
その他の回答 (1 件)
Saeid
2018 年 12 月 11 日
Hi, If the blue cross is not in the initial image, you can easily use this:
imgbw=im2bw(img);
VerticalLength=sum(img(:,column));
HorizontalLength=sum(img(row,:));
where img is your original image and row and column are from the center of the cross.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Read, Write, and Modify Image についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!