I am trying to compute the area of a particular region of interest from images which are obtained from an experiment. The original data looks like this:
I have to calculate the area of the region which has a darker shade compared to the rest of the image. Then using the scale bar, I have to convert the measurement into real life values. I have trimmed and binarized the images to obtain the portion of the image where I want to calculate the area.
After trimming and binarization, the image looks like this:
To get to this black and white image, I found the threshold of the image and then binarized the image such that all the pixel values < threshold value are replaced by 0 and all above threshold value are replaced by 1.
However, I cannot calculate the area of the black portion and then use the scale bar to compute the results.
Any suggestions ?
ComponentMeasurements[AreaOfInterest, "Area"]
$\endgroup$