开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜