I need to give a bit of a background first, so please bare with me. I have a set of values that represent servo motor position values. By default I end up with a large set of values and I'd like to simply it.
Here's a test plot of the positions and the moving average "local extrema" points marked with white boxes:
The two graphs are for the two servos used in this particular test.
I'm currently happy with the points extracted and would like to interpolate between these. I can use linear interpolation, but the motion looks robotic and I'd like to preserve the nice easing that was recorded. I would like to use some sort of bezier interpolation to get smoother/more organic results regarding motion, but here's where I'm stuck.
For any 2 'keyframes'/key servo positions (marked with white) I can use the start and end points for a cubic equation, but I need to find out the 'anchor' points/other two members of the equation so I can compute a smooth interpolated value.
Can someone please explain ('dumbed down' for me if possible) how I can find 2 members of a bezier equation knowing the other two ?
Any other ideas/suggestions are welcome and I can provide more explanations and (Processing)code if needed.