Is there any inbuilt function available for surface fitting to the intensity values of a grayscale image that minimize the entropy of an Image?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to fit the surface to the intensity values of a grayscale image. For that purpose, I have decided to use the entropy of an image as a criterion function.I was wondering if there is any way I can use fit - an inbuilt function that fits the surface or optimizes the polynomial coefficients at the same time minimizing the entropy of the image.
Thanks
0 Kommentare
Akzeptierte Antwort
John D'Errico
am 18 Okt. 2016
Bearbeitet: John D'Errico
am 18 Okt. 2016
No. Just use a general optimization tool (from the optimization toolbox), writing the objective function yourself.
The curve fitting toolbox functions will assume a minimum sum of squares of residuals criterion.
3 Kommentare
John D'Errico
am 18 Okt. 2016
Sorry. Polyfitn uses linear algebra (linear least squares) to solve for the coefficients of the polynomial, although the polynomial itself need not be linear. The problem is linear in the unknown coefficients in terms of the estimation.
In order to change the objective to something else, the code would need to call a general optimizer. That in itself would not be the end of the world, but since the code also computes a variety of measures of fit, they would be invalidated. Essentially, a large fraction of polyfitn would need to be re-written.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Segmentation and Analysis 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!