How to count the white pixels for each column in a binary image

3 visualizzazioni (ultimi 30 giorni)
l.PNG

Risposta accettata

KSSV
KSSV il 5 Dic 2018
Modificato: KSSV il 5 Dic 2018
I = imread('download.png') ;
I = rgb2gray(I) ;
idx = I~=0 ;
iwant = sum(idx)

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by