Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
praveen rai
praveen rai le 27 Mai 2019
Commenté : praveen rai le 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 anyoneb.jpg

Réponse acceptée

Image Analyst
Image Analyst le 27 Mai 2019
Try
binaryImage = grayImage < 128;
props = regionprops(binaryImage, 'BoundingBox');
width = props.BoundingBox(3);
height = props.BoundingBox(4);
  1 commentaire
praveen rai
praveen rai le 27 Mai 2019
@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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by