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

1 Ansicht (letzte 30 Tage)
Anu
Anu am 5 Dez. 2018
Kommentiert: Anu am 5 Dez. 2018
l.PNG

Akzeptierte Antwort

KSSV
KSSV am 5 Dez. 2018
Bearbeitet: KSSV am 5 Dez. 2018
I = imread('download.png') ;
I = rgb2gray(I) ;
idx = I~=0 ;
iwant = sum(idx)

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by