Tracking of a point in a sequence of images to measure linear displacement

38 views (last 30 days)
I recently started working on matlab.
I want to write the code to track the displacement of a point from a video file after converting into the gray scale images sequences. I unable to create the grid generation (the point on the line I am trying to track) and then ploting this on a displacement/pixel vs time/no of frames. Herewith I have the first and last images of my video. I have to measure the displacement between the top white marker line while bottom marker line is fixed.
I currently have images (600) such as the initial and final one is attached. Throughout the series of images, the markers move in one direction (downwards) and in fairly small amounts. The main problem is to resolve how to the points on the white markers line either point chosen by the user or through grid generation with interface analysis. The objective is only to measure the displacement of top marker line with the reference bottom white marker line.
Please guide me. Any suggestions would be helpful for me. Thanks in advance.

Answers (1)

Anmol Dhiman
Anmol Dhiman on 9 Apr 2020
Hi Ammar,
Computer Vision Toolbox™ provides video tracking algorithms, such as continuously adaptive mean shift (CAMShift) and Kanade-Lucas-Tomasi (KLT). You can use these algorithms for tracking a single object or as building blocks in a more complex tracking system.
I think Tracking and Motion Estimation would be a good starting point. Look for examples present on the page.
Thanks,
Anmol Dhiman

Community Treasure Hunt

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

Start Hunting!