get area of a binary image

1 view (last 30 days)
Andre Asfar
Andre Asfar on 26 Jul 2011
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)

Categories

Find more on Images in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!