Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Fiting a surface of best fit to a set of data points

  1. Dec 3, 2009 #1
    Hello all,

    I am trying to fit a surface to a 1920x1080 grid of evenly spaced data points. The values are supposed to be more or less uniform (its an image of a uniform white light source). So I would like to fit a plane to it (but maybe a paraboloid if it is not quiete uniform). What method should I use? A least squares approach? I cant seem to find much on google for this. Does anyone have an approach, or perhaps could recommend some literature which covers this?

    Thanks!
     
  2. jcsd
  3. Dec 3, 2009 #2
    Last edited: Dec 3, 2009
  4. Dec 4, 2009 #3
    I was able to figure it out . The usual least squares method applies to this. I fit z = Ax + By + C by creating a matrix of sums etc etc. It worked out nicely for the 3D case, same as for the 2D.

    Thank you,
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook