calculate the area
显示 更早的评论
hello everyone I need help. I have a picture consisting only of black and white. Does anybody know of any function which I figured would be an area of white on obazku.
Thank you so much to everyone
采纳的回答
更多回答(1 个)
Matt Kindig
2012-3-23
0 个投票
Do you want just the total number of pixels of white? If so, just sum the image (sum all 1's).
If you want the area of contiguous objects of white, check out the 'regionprops' function in the Image Processing Toolbox.
类别
在 帮助中心 和 File Exchange 中查找有关 3-D Volumetric Image Processing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!