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 Exchange에서 Images에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by