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 Ansicht (letzte 30 Tage)
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

Akzeptierte Antwort

Image Analyst
Image Analyst am 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.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by