Tracking movement of bubbles in water to obtain velocity
Show older comments
Hello,
I'm working on a project that involves tracking bubbles moving through a water tunnel and using the information to determine their velocities. I'm very new to Matlab and I'm looking for a little guidance on where to start.
I have the basic toolboxes that come with the Student Suite, and Computer Vision; just going through the examples, I found numerous ways to track the bubbles, but I don't know how to convert the tracking to velocity. Any help you can offer is greatly appreciated!
Thanks in advance,
Rob
Accepted Answer
More Answers (1)
Sean de Wolski
on 3 Nov 2014
0 votes
Easiest way would be to find their centroids ( regionprops or vision.BlobAnalysis), calculate the distance between them ( hypot) and divide that by the time step.
This will give you pixels/second, if you know the pixel size, multiply by this.
1 Comment
Image Analyst
on 4 Nov 2014
Robert's "Answer" moved here since it's a reply to Sean:
Sean,
Thanks, I followed your recommendation and I managed to find the centroids but now I'm just having difficulty getting the information about the centroids' location; I thought I would want to use "getpixelposition" but that doesn't seem to be working (probably for an obvious reason I don't know yet lol).
Do you know of a better function that I should use? And thank you for getting me started with the centroids!
Categories
Find more on Computer Vision with Simulink 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!