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

조회 수: 1 (최근 30일)
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...

답변 (1개)

Matt J
Matt J 2013년 6월 11일
편집: Matt J 2013년 6월 11일
[i,~]=find(image);
height = min(i)-max(i) + 1;

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by