How can i find the length of the horizontal and vertical line present only in the white pixel region for the attached binary image.
9 ビュー (過去 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 で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!