suppose the data points are given (point cloud:Q_r) , and i want to fit a polynomial surface to the given data points. Suppose the surface Bezier surface
where , if m,n=3, then the bicubic surface in term of polynomial function become The goal is to obtain the free-form polynomial Bezier surface (bicubic for my case) that fits the data points better in the discrete least-squares sense. To do so, we have to compute the control points P_{๐,๐},๐=0,...,๐;๐=0,...,๐ of the approximating surface by minimizing the least-squares error, ๐ธ, defined as the sum of squares of the residuals: . Is there any way we can apply MATLAB optimization technique, so that i will get the best coefficient (P_{i,j}) that fit the original data?
To find best (P_{i,j}) i need to find best u and v parameter vector that will give me best (P_{i,j}) using least square.
Any suggestions, recomendation, link to c.f is appreciated.