필터 지우기
필터 지우기

How to count the number of black pixels in each row & column seperately?

조회 수: 1 (최근 30일)
swathi
swathi 2018년 8월 27일
댓글: swathi 2018년 8월 28일
Hello Sir, I would want to analyze signature based on various features. For this, I need to obtain different features. One would be obtaining the row & highest black pixels & column with highest black pixels. Could you please tell me how can I use histogram to do this? I have binary image of signature.
  댓글 수: 3
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 8월 27일
편집: KALYAN ACHARJYA 2018년 8월 27일
The histogram does not relate with spatial (Position) coordinates.
Second Part:
obtaining the row & highest black pixels & column with highest black pixels. You can proceed the following way
rows_num(i)=sum(k2(i,:));
% find the minimummvalue of rows_num, decided the i(row number)

댓글을 달려면 로그인하십시오.

답변 (1개)

dpb
dpb 2018년 8월 27일
x is the image array...
[rmax,rloc]=max(sum(x));
[cmax,cloc]=max(sum(x,2));

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by