MATLAB: Find the maximum Area of a binary image

MATLAB

I am trying to find a maximum Area of the circle in a binary image showing below
Thats mean the Area of the biggest circle what code should I use ?
thank you 🙂

Best Answer

stats = regionprops(YourBinaryImage, 'Area');
biggest_circle = max( [stats.Area] );