How Can I Measure Arm Trajectory Using 2D Pixel Coordinates?

AI Thread Summary
The discussion centers on analyzing the trajectory of arm movements using pixel coordinates collected from video frames of two people interacting. The user seeks to determine whether the arm's motion is straight or curved based on these coordinates. Key points include the need for curve fitting techniques to analyze the x and y coordinates of the hand over time, with a focus on defining what constitutes straight versus curved motion. The conversation highlights the importance of having a clear understanding of body motion, even though the analysis leans more towards image processing than physics. The user is advised to consider the possibility of missing data points and the implications of working with 2D coordinates, as 3D motion analysis would require additional data for accurate calculations. Overall, the goal is to compute a single value that indicates the nature of the arm's trajectory.
msn009
Messages
53
Reaction score
6
I am not sure in which section this question should belong so I am placing it here for now. I have no experience in physics and body motion so appreciate some patience with my question.

the information i have are pixel coordinates of the head, shoulder, elbow, hand, knee, hips and leg of 2 people facing each other at every point.
this information is collected along a timeframe upto miliseconds so I have about 30 frames that has these coordinate information. Now I need to find a way to measure the trajectory of the arm when it is curving or moving straight ahead towards the person opposite. in the end the a single value result is expected to determine whether the trajectory was a curve or a straight move.

How can I use the points I have to compute this trajectory or perhaps references i can use to aid the thinking process?
 
Technology news on Phys.org
Welcome to the PF. :smile:

Do you have a view from the top as well as the side view? Or only the side view?
 
Hi msn, :welcome:

Not sure where the physics is in this one ? Looks more like image processing to me. All you want is one single number (curvature?), so you'll have to do a lot of distilling.

You forgot to define 'trajectory of the arm' in terms used before. Idem 'towards the person'.
 
Hi,
I have the video captures from the top but these points are translated into pixel points in a file. so i have the x and y pixel points for all these joints for each frame.
yes it is somewhat image processing but i have these values saved as points in an excel file. i understand that it might not be purely physics but i see the need to be able to understand the body motion to be able to know how best to compute these trajectories.
 
msn009 said:
how best to compute these trajectories.
It seems like you need to fit a curve to each set of datapoints, and have some definition (tolerances) for what you consider "straight" versus "curved" motion...

https://en.wikipedia.org/wiki/Curve_fitting
 
so in this case, can i just use the x,y co-ordinates of the hand and try to plot a function that will show whether it is a curved or straight line over time? basically i need use the trajectory of these points to form the definition of whether it is a straight or curved motion
 
  • Like
Likes berkeman
msn009 said:
so in this case, can i just use the x,y co-ordinates of the hand and try to plot a function that will show whether it is a curved or straight line over time? basically i need use the trajectory of these points to form the definition of whether it is a straight or curved motion
Yes, I think so. At least that's where I would start. Is one of the issues that you don't have data that is regularly sampled, or are missing some datapoints?
 
berkeman said:
Yes, I think so. At least that's where I would start. Is one of the issues that you don't have data that is regularly sampled, or are missing some datapoints?
yes, that would be a possibility but at this point i will only compute for those that has values in it.
 
You're describing 2D coordinates, but don't you have 3D motion and therefore need 3D coordinates?

If you have 2D images, I think you need 2 sets of them, with known offsets, to calculate the locations of the points in 3D space. Once you have x,y,z locations of the subject points, then it is just trigonometry calculations to find angles. E.G. if the pivot is at 0,0,0 and the other end of the arm at 1000,0,0 and a certain time later is at 707,707,0 it has rotated 45 degrees about the z axis.
 
  • #10
these are 3D motion projected onto 2D so I only have the x,y coordinates for each joint.
 
Back
Top