Sign in to follow this  
goruka

Curve fitting with minimum oscilation

Recommended Posts

goruka    125
Hi! I've been researching curve interpolation algorithms for a while, and I have the following problem.
All the classic ones like cubic spline, hermite, catmull rom, etc add small oscilations near the control points, and I don't want this. Are there other curve-fitting algoritms that, no matter if they need more control points than 4, they don't produce such oscillations?

Share this post


Link to post
Share on other sites
jjd    2140
[quote name='goruka' timestamp='1339649660' post='4949047']
Hi! I've been researching curve interpolation algorithms for a while, and I have the following problem.
All the classic ones like cubic spline, hermite, catmull rom, etc add small oscilations near the control points, and I don't want this. Are there other curve-fitting algoritms that, no matter if they need more control points than 4, they don't produce such oscillations?
[/quote]

I'm not sure what you mean by oscillations in the curves -- perhaps you could provide a picture? In that regard, the Catmull-Rom spline should be pretty good and minimizing unnecessary curvature in the curve. Are you sure that it is not a problem with your implementation?

-Josh

Share this post


Link to post
Share on other sites
alvaro    21266
So-called "natural" cubic splines (where the second derivative of contiguous segments matches at the common node and the second derivative at the ends is 0) have the least "curvature" among all interpolating curves, in some sense that can be made very precise (minimum integral of the square of the second derivative). So I would give them a try. If you are not happy with the results, you must have some other criterion in mind, so it would be good to see some examples.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this