Trajectory plotting of a series of images

조회 수: 9 (최근 30일)
Abhishek 2012년 3월 17일
Hello Guys, I want to plot a trajectory of tennis ball thrown from one end of a table to another. This data is in the form of series of 18 images in a .mat file. This trajectory would be used to determine the final position of the ball's landing position. is there a way to overcome this problem? I shall send the .mat file if required. Thanks guys, Abhishek

채택된 답변

Joseph Areeda
Joseph Areeda 2012년 3월 17일
Well it seems to me the process is fairly straight forward but the implementation could be complicated depending on how fancy you wanted to get.
If I were given this problem it would be broken down into:
1) Determine the position of the ball in each frame.
2) Use some sort of calibration of frame time and image scaling to convert that position to (x,y,t)
3) Fit a linear function to x=f(t) and a quadratic function to y=f(t)
4) Determine when y(t) = 0 and calculate x at that time
Step 1 is a good image processing project to do automatically but for the first go aground I'd probably just display the image and ask the user to click on the center of the ball.
See the tech note for your curve fitting options. I'd probably go with a simple least squares fit.

추가 답변 (0개)


Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기


Community Treasure Hunt

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

Start Hunting!

Translated by