フィルターのクリア

how to find the height and width of an alphabet/letter

1 回表示 (過去 30 日間)
praveen rai
praveen rai 2019 年 5 月 27 日
コメント済み: praveen rai 2019 年 5 月 27 日
i have a letter in which I want to find the height and width of this letter
any algorithm or code can suggest by anyoneb.jpg

採用された回答

Image Analyst
Image Analyst 2019 年 5 月 27 日
Try
binaryImage = grayImage < 128;
props = regionprops(binaryImage, 'BoundingBox');
width = props.BoundingBox(3);
height = props.BoundingBox(4);
  1 件のコメント
praveen rai
praveen rai 2019 年 5 月 27 日
@Image Analyst its working for single letter but for words or for multiple letter its not working
error is "Field reference for multiple structure elements that is followed by more reference
blocks is an error."
image is
alphabet1.png

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by