calculate the area
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Adam
2012-3-25
2 个评论
Image Analyst
2012-3-25
What is obazku? Is that zero or black? What if there are several disconnected areas of white? Your method would give the total area but not the area of each one individually. If you want the total white area in a binary black and white grayscale image then your method is fine.
更多回答(1 个)
Matt Kindig
2012-3-23
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.
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!