I used this methodology to segment bubbles in a liquid foam:
- Preprocessing of the image aplpying median filter
- Computing binary threshold using iterative Otsu method
- Binarization of the image
- Masking the binarizated image by
labels = measure.label(binary, connectivity=2) props = measure.regionprops(labels)
- detecting diameters of the images using
prop.equivalent_diameter