필터 지우기
필터 지우기

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 CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by