Starting with a binary image, bwImg, which contains a number of connected objects.
>> bwImg = imread('blobs.png');
>> figure, imshow(bwImg), title('Binary Image')
To measure properties (e.g., area, centroid, etc) of every object in the image, use regionprops:
>> stats = reg...