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

3 visualizaciones (últimos 30 días)
Anu
Anu el 5 de Dic. de 2018
Comentada: Anu el 5 de Dic. de 2018
l.PNG

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Image Segmentation and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by