get area of a binary image

1 Ansicht (letzte 30 Tage)
Andre Asfar
Andre Asfar am 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?

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by