I am working on video stabilisation ( making shaky videos non-shaky) using matlab. One of the steps is to find a smooth camera path given the unstable camera path. The unstable camera path is one which gives the jittering or shake to the video. I have camera path specified using camera position which is a 3d-data. camera path - (cx,cy,cz);
As i plot in matlab, i can visually see the shakiness of the camera motion. So now i require a least squares fitting to be done on the camera path specified by(cx,cy,cz);
I came across polyfit() which does fitting for 2-dimensional data. But what i need is a 3-d smooth curve fit to the shaky curve. Thanks in advance.