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

1 Ansicht (letzte 30 Tage)
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...

Antworten (1)

Matt J
Matt J am 11 Jun. 2013
Bearbeitet: Matt J am 11 Jun. 2013
[i,~]=find(image);
height = min(i)-max(i) + 1;

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by