Detect black pixels in a binary image
显示 更早的评论
Hello,
I want to detect the amount (either area, %, or # of pixels) of black in a black and white/ binary image. Attached is an example image that I want to be analyzed.

回答(1 个)
Walter Roberson
2023-4-26
0 个投票
imbinarize with foreground polarity dark. Then mean2() * 100
类别
在 帮助中心 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!