maximum area

回答(1 个)

Ibw = your_binary_image_to_get_the_area_of;
CC = bwconncomp(Ibw);
max_area = max(cellfun('prodofsize',CC.PixelIdxList));

类别

帮助中心File Exchange 中查找有关 Image Processing Toolbox 的更多信息

提问:

2012-3-21

Community Treasure Hunt

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

Start Hunting!

Translated by