maximum area

1 view (last 30 days)
Abdul on 21 Mar 2012
how to detect maximum area in image

Answers (1)

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


Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!