How to find out height of the charcter image where the pixel value not wqual to zero?

1 vue (au cours des 30 derniers jours)
Minu
Minu le 11 Juin 2013
Hi
How to find the minimum and maximum position of pixel value that is not equal to zero? ie, I want to find out height of the character image when we segment the image into lines.How to solve this.Help me please...

Réponses (1)

Matt J
Matt J le 11 Juin 2013
Modifié(e) : Matt J le 11 Juin 2013
[i,~]=find(image);
height = min(i)-max(i) + 1;

Catégories

En savoir plus sur Get Started with Image Processing Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by