# MATLAB: How to calculate the area of certain portion of an image

how to calculate the area of certain portion of an image ?Image Processing Toolbox

how to calculate the area of certain portion of an image ?

binaryImage = grayImage > 90;measurements = regionprops(binaryImage, 'Area');allAreas = [measurements.Area];