get area of a binary image

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?

 採用された回答

Walter Roberson
Walter Roberson 2011 年 7 月 26 日

0 投票

YourArea = sum(YourImage(:));

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by