Huh? Of course you can use regionprops. No need to use bwboundaries() at all, unless you just want to show the outlines of the segmented areas in the overlay above your original gray scale or color image.
If you want the area of all the white pixels in your binary image you can do it two ways, with slightly different results because they use different calculation methods
pixelSum1 = bwarea(binaryImage);
pixelSum2 = sum(binaryImage(:));
If you want the area of each blob in the image individually, you can do it like this:
labeledImage = bwlabel(binaryImage);
measurements = regionprops(labeledImage, 'Area');
allAreas = [measurements.Area];
totalAreaOfAllBlobs = sum(allAreas);
Best Answer