how to create 2D polynomial regression?
23 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
chien-feng Huang
le 30 Déc 2015
Commenté : chien-feng Huang
le 5 Jan 2016
hi I have a 22x34 image. how to create a function just like ax^2+by^2+cxy+dx+ey+f to fit this image
0 commentaires
Réponse acceptée
dpb
le 30 Déc 2015
If have CurveFitting Toolbox,
sf = fit([x, y], z, 'poly22'); % doc fit for details...
If not, write the specific model matrix and use \ to solve.
doc mldivide % illustrates
Oh, or if have Statistics Toolbox, there's the regress linear regression method.
Plus de réponses (1)
Image Analyst
le 30 Déc 2015
You can use John D'Errico's polyfitn in the File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/34765-polyfitn.
Attached is an example of how I used it to correct (flatten) a background.
0 commentaires
Voir également
Catégories
En savoir plus sur Linear and Nonlinear Regression dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!