MATLAB Answers

get area of a binary image

3 views (last 30 days)
Hi everyone, I have a question about get area of binary images like this:
The area is the number of pixels, there is a command that can give me the area?

Accepted Answer

Walter Roberson
Walter Roberson on 26 Jul 2011
YourArea = sum(YourImage(:));

More Answers (0)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!