Clear Filters
Clear Filters

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

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

Categories

Find more on Read, Write, and Modify Image in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!