Azzera filtri
Azzera filtri

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

1 visualizzazione (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)

Categorie

Scopri di più su Read, Write, and Modify Image in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by