How can I get a simple curve function from a set of points on a touch trajectory? -


i want curve function set of points made user touch trajectory on touch screen devices. if user draws trajectory finger touch slowly, points input data increase tremendously. want compact curve function if lots of points data income. example, trajectory looks character 'u' consist of 100 vertices, want simple curve function 3 or 5 control points. can give me advice?

thank you.

you can least square spline fitting point data in trajectory. save lot of memory , storage. problem if want least square spline fitting in real time (i.e., finger moving along device's screen), might not fast enough catch finger's movement. so, recommended spline fitting when users lift finger.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -