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

3 views (last 30 days)
l.PNG

Accepted Answer

KSSV
KSSV on 5 Dec 2018
Edited: KSSV on 5 Dec 2018
I = imread('download.png') ;
I = rgb2gray(I) ;
idx = I~=0 ;
iwant = sum(idx)

More Answers (0)

Community Treasure Hunt

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

Start Hunting!