- binarize image
- use regionprops with EquivDiameter option
Bubble detection and diameter estimation
22 次查看(过去 30 天)
显示 更早的评论
Hey,
I wanted to detect and measure the diameter of the bubbles (elliptical and circular) in this image. I tried various techniques but couldn't do so.
Please help me out.

0 个评论
采纳的回答
更多回答(1 个)
Image Analyst
2021-1-31
Sounds like you got it figured out since you accepted an answer but I'd first have improved your image capture by placing a black velvet shroud behind your vessel to remove background clutter. Then I'd take an image with no bubbles and subtract the subtract that from the image with bubbles using imabsdiff(). Then threshold and call regionprops(). Realize that the bubbles may overlap and there is no way you can split them apart unless you do something like make a real time CT image. But the area fraction or size distribution of what you do have may be enough for you do differentiate different bubble makers or different bubble size distributions.
But anyway, glad you got it figured out.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!