Ask Experts Questions for FREE Help !
Ask
    luckpp's Avatar
    luckpp Posts: 1, Reputation: 1
    New Member
     
    #1

    May 26, 2009, 05:30 AM
    Cubic Spline Interpolation – Guessing the Control Points
    Hello,

    Given a set of 2D points (located on a 2D graph) I want to guess the spline cubic control points in order to draw a smoother 2D graph.

    I will use a set of images in order to show you what I want to do:

    Starting from 5 control points ( [0, 0], [25, 50], [50, 25], [75, 75], [100, 100] ) I was able to guess the intermediate points using Cubic Spline Interpolation. Below is the result:


    Graph_OK


    My problem is when I try to do the reverse operation, namely : starting from a set of 101 known 2D points ([x0, y0] [x1, y1], … [xk, yk], … [x99, y99], [x100, y100]) I want to guess some control points in order to draw a smoother graph than the one resulting from the initial 101 2D points.

    In a rough form the graph may look like this:


    Graph_NOK



    But I want a smoother graph.
    I would highly appreciate your help. Any hint on how should I guess the control points and draw a spline curve would be great.

    Thank you very much and Best regards,
    Lucian Andritoi.
    Perito's Avatar
    Perito Posts: 3,139, Reputation: 150
    Ultra Member
     
    #2

    May 26, 2009, 06:35 AM

    I find cubic spline interpolation to be a bit irritating in the same way that you're finding. Often, I'll use Savitzky-Golay convolution to filter equally-spaced points (I don't know if yours are equally spaced on the x-axis or not).

    Savitzky-Golay smoothing filter

    Some of the equations given in SG's paper are incorrect and are corrected in subsequent papers by SG and others.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Keep Guessing [ 12 Answers ]

Here is another one...

Cubic yards [ 3 Answers ]

150 ft long 3 ft wide 2 " deep need to know how many cubic yards thanks

Can't get over her and keep guessing about her actions? Why? [ 2 Answers ]

Well My ex and I have been having really weird times. First off She called me about a month ago asking that I don't go to a show because she was going to be there. I ended up going, she was the one that found me in the crowd I might add. After the show she found me and we had a cigerette and a...

Second guessing the relationship [ 8 Answers ]

Well my boyfriend and I just started going out about a week ago and now he's sencond guessing weither we should stay together or not because he has a little feelings for his ex. What should I do? :confused:


View more questions Search