How to count the number of black pixels in each row & column seperately?
Afficher commentaires plus anciens
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 commentaires
Stephen23
le 27 Août 2018
"...how can I use histogram to do this?"
Why do you want to use a histogram? Surely sum would be simpler.
KALYAN ACHARJYA
le 27 Août 2018
Modifié(e) : KALYAN ACHARJYA
le 27 Août 2018
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
le 28 Août 2018
Réponses (1)
dpb
le 27 Août 2018
x is the image array...
[rmax,rloc]=max(sum(x));
[cmax,cloc]=max(sum(x,2));
Catégories
En savoir plus sur Histograms dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!