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

 채택된 답변

dpb
dpb 2015년 12월 30일

0 개 추천

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.

추가 답변 (1개)

Image Analyst
Image Analyst 2015년 12월 30일

1 개 추천

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.

카테고리

도움말 센터File Exchange에서 Polynomials에 대해 자세히 알아보기

태그

질문:

2015년 12월 30일

댓글:

2016년 1월 5일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by