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

3 次查看(过去 30 天)
l.PNG

采纳的回答

KSSV
KSSV 2018-12-5
编辑:KSSV 2018-12-5
I = imread('download.png') ;
I = rgb2gray(I) ;
idx = I~=0 ;
iwant = sum(idx)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Read, Write, and Modify Image 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by