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!