2

I am looking for an example of predicting/regression of GPS position at a given time based on a sparse data set.

Given N rows of [lat,lng,time ticks], I want to be able to ask what the lat, lng is at any given ticks that might not be present in the N rows.

Additional, is it possible to also get the derivatives at the same time such the orientation of the moving object can be found?

In OpenCV or Eigen that is.

Angie Quijano
  • 4,167
  • 3
  • 25
  • 30
Poul K. Sørensen
  • 16,950
  • 21
  • 126
  • 283

1 Answers1

2

That is a linear regression problem.

Try using OpenCV's fitLine(). Go through the documentation and you should get a clear idea.

Try looking into this question

Once you get the output line function, a simple atan((y2-y1)/(x2-x1)) should give you the derivative.

Community
  • 1
  • 1
metsburg
  • 2,021
  • 1
  • 20
  • 32