フィルターのクリア

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)
swathi
swathi 2018 年 8 月 28 日
Thank you very much.

サインインしてコメントする。

回答 (1 件)

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

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by