MATLAB: Tracking movement of bubbles in water to obtain velocity

Computer Vision ToolboxImage Processing Toolboxtrackingvelocity

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

Best Answer

Robert: To get "real world" units you need to calibrate so that you know how many pixels correspond to 1 cm (or whatever). See my attached spatial calibration demo.
In your reply to Sean you say you need "information about the centroids' location" - what does that mean? You have the x and y location of the centroid - what other info do you need about the centroid location other than the coordinates?