# Region detection in a grayscale image

I would like to identify the white spots in a greyscale image and calculate the area among other things.

I have tried to identify the white spots with:

markers = MaxDetect[GaussianFilter[img01, 60], Padding -> 1];
HighlightImage[img01, markers, Method -> {"DiskMarkers", 5}]


Is there a way to find the edge and calculate the area?

I would also like to scale it up to a larger picture with many spots, which seems to bring a lot of problems

• Have you tried using a high pass filter?
– Sâu
Dec 24, 2020 at 1:23
• I think the first thing is to decide what you want to measure. What exactly counts as the white spot? How should one decide whether a pixel counts as part of the white spot or not? Dec 24, 2020 at 4:43

MedianFilter[Binarize[img, 0.99], 4]