maximum area

1 次查看(过去 30 天)
Abdul
Abdul 2012-3-21
how to detect maximum area in image

回答(1 个)

Sean de Wolski
Sean de Wolski 2012-3-21
Ibw = your_binary_image_to_get_the_area_of;
CC = bwconncomp(Ibw);
max_area = max(cellfun('prodofsize',CC.PixelIdxList));

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by