How to calculate area of an irregular shape region in a binary image?

Illustration
sanyukta - 2023-12-29T20:02:26+00:00
Question: How to calculate area of an irregular shape region in a binary image?

Is there any way to calculate the area of the irregular regions in a binary image? I am attaching the image here.Kindly help me.

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

Try this:
 
 
props = regionprops(binaryImage, 'Area');
allAreas = [props.Area]

 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!