开发者

How can I count the number of white pixels in a binary image with MATLAB?

开发者 https://www.devze.com 2022-12-31 05:33 出处:网络
How can I count the number of white pixels in a b开发者_如何学Cinary image with MATLAB?The function NNZ should do the trick, since \"white\" is represented as 1 and \"black\" as 0 in a binary image im

How can I count the number of white pixels in a b开发者_如何学Cinary image with MATLAB?


The function NNZ should do the trick, since "white" is represented as 1 and "black" as 0 in a binary image img:

nWhite = nnz(img);
0

精彩评论

暂无评论...
验证码 换一张
取 消