how to find the height and width of an alphabet/letter
2 ビュー (過去 30 日間)
古いコメントを表示
i have a letter in which I want to find the height and width of this letter
any algorithm or code can suggest by anyone![b.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/221120/b.jpeg)
![b.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/221120/b.jpeg)
0 件のコメント
採用された回答
Image Analyst
2019 年 5 月 27 日
Try
binaryImage = grayImage < 128;
props = regionprops(binaryImage, 'BoundingBox');
width = props.BoundingBox(3);
height = props.BoundingBox(4);
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Segmentation and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!