Surface Fit over image
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a image like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/293589/image.png)
I want to do a Gaussian Surface fit over this image. Any suggestions would help.
3 Kommentare
Image Analyst
am 17 Mai 2020
Attach it so people can try things. Use the paper clip icon.
save('answers.mat', 'YourMatrix');
Akzeptierte Antwort
J. Alex Lee
am 17 Mai 2020
Here's my first pass thoughts:
First steps:
- Obtain X and Y coordinates of your pixels
- ensure your pixel values are of type double (maybe this is not super important)
- Decide if you want to call your X,Y coordinates your principal directions or not to decide the form of the function you want
Options:
- If you have optimization/curve fitting toolbox functions, use them
- If you don't, you can pretty easily write your own with fminsearch (only need 6 parameters and you have good initial guesses)
- If everything is Gaussian, maybe you can take a data/statistics approach to do [non-iterative] underlying parameter estimation technique (means and standard deviations?) from a data set constructed based on the pixel values...for univariate problems, i've found this to be a nice stand-in to actual fitting, which can be non-robust if you don't have good initial guesses and algorithms.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!