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

Click For Summary
SUMMARY

This discussion focuses on fitting a surface to a 1920x1080 grid of evenly spaced data points representing a uniform white light source. The recommended method for this task is the least squares approach, specifically fitting the equation z = Ax + By + C. The user successfully applied this method in a 3D context, achieving satisfactory results. For further assistance, a link to MATLAB's support page was provided, which offers relevant solutions.

PREREQUISITES
  • Understanding of least squares fitting techniques
  • Familiarity with 3D surface equations (e.g., z = Ax + By + C)
  • Basic knowledge of matrix operations
  • Experience with MATLAB or similar computational tools
NEXT STEPS
  • Research "Least Squares Fitting in MATLAB" for practical implementation
  • Explore "Polynomial Surface Fitting" for advanced surface modeling techniques
  • Study "Matrix Operations in Linear Algebra" to strengthen foundational skills
  • Investigate "Maximum Likelihood Estimation (MLE)" for alternative fitting methods
USEFUL FOR

This discussion is beneficial for data scientists, engineers, and researchers involved in surface modeling, particularly those working with image data and requiring methods for fitting surfaces to datasets.

Woland
Messages
18
Reaction score
0
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 can't seem to find much on google for this. Does anyone have an approach, or perhaps could recommend some literature which covers this?

Thanks!
 
Physics news on Phys.org
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,
 

Similar threads

  • · Replies 26 ·
Replies
26
Views
3K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
Replies
8
Views
2K
Replies
28
Views
4K
Replies
24
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K