Clear Filters
Clear Filters

I have some code that detects objects in a video (the video is of a lava lamp). I would like to measure the velocity of the bubbles using the centroid.

1 view (last 30 days)
I'm assuming i will need to work out how far they move per frame but I'm struggling to work out how to do this as i am a beginner. Is it also possible to have a more accurate velocity by using say 10 frames? Any help is appreciated. Thanks

Accepted Answer

Image Analyst
Image Analyst on 21 Feb 2016
Yes, you can measure the velocity in units of pixels per second. See my image segmentation demo: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 as well as my attached demo for reading frames from a video.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!