how to find the height and width of an alphabet/letter
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
praveen rai
am 27 Mai 2019
Kommentiert: praveen rai
am 27 Mai 2019
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 Kommentare
Akzeptierte Antwort
Image Analyst
am 27 Mai 2019
Try
binaryImage = grayImage < 128;
props = regionprops(binaryImage, 'BoundingBox');
width = props.BoundingBox(3);
height = props.BoundingBox(4);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!