Detecting and segmenting bubbles in a video
Show older comments
Hello all,
I'm trying to perform the video processing over a high-speed recorded video of bubbles moving up from a hot surface. I would like to extract some useful characteristics such as number of bubbles, their average diameter, and trickier ones such as their frequency, the location they are born (called nucleatio site). I have seen some people asking a similar question, and know that it is a a common segmentation problem. I have two main questions and appreciate your ideas and help in advance.
1) What is the best method for detecting the bubbles?
2) Assuming that we are able to find some reasonable bubbles in a frame, how can we use it to improve the detection in other frames?
The motivation of Q 2 is that some bubbles appear in many frames but my detection algorithm misses them in some other frames (the background of a bubble changes as it rises). Same thing happens for the diameter.
Here is a sample of a frame:

And this is what I detected using some preprocessing, edging (Prewitt), and thresholding to intensify the edges and applying the imfindcircle.

4 Comments
pzaksek
on 11 Jun 2022
Do you have any code, for detecting this bubbles, please help. Simple code
Image Analyst
on 11 Jun 2022
@pzaksek I'm sure your images don't look just like these so start your own question with your own images.
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
pzaksek
on 11 Jun 2022
I have high speed video images Photron.
I don’t even know where to start. I would like to determine the frequency and average size.
Do I need to open a new topic?


Thank you very much for your help.
Image Analyst
on 11 Jun 2022
@pzaksek, like I said, I'd start your own thread, rather than have it buried here in @shayan Davani's two year old question. In the meantime, automatic segmentation would be very difficult for this and I suggest you just do manual counting with drawpoint. Or else look for a different metric that correlates with whatever you want to correlate it with, such as average gray level.
Accepted Answer
More Answers (0)
Categories
Find more on Image Segmentation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!