]>
If not known from some other experimental measurement, background optical properties can be obtained by fitting to the experimental data. While faster, specialized, fitting routines are available for fitting either the absorption or the scattering individually, the toolbox also includes generalized routines for finding both sets of optical coefficients simultaneously. Since these routines do not need additional Matlab toolboxes, there are also suitable for sites with only the core Matlab toolboxes installed.
| Syntax: | [mus, mua, costfunc] = fitBackground(SD, Medium, MeasList, data); | |
|---|---|---|
| Inputs: | SD | |
| Medium | ||
| MeasList | ||
| data | Experimental data to be fit against | |
| Outputs: | mus | X-values of cost function [vector] |
| mua | Y-values of cost function [vector] | |
| costfunc | Cost function calculated on a regular grid [matrix]. For complex data, the amplitude and phase costs are computed separately. | |
| Syntax: | [SD2, Medium2] = newFitBackground(SD, Medium, MeasList, data, muvec); | |
|---|---|---|
| Inputs: | SD | |
| Medium | ||
| MeasList | ||
| data | Experimental data to be fit against | |
| Outputs: | SD2 | SD structure with best-fit SD.SrcAmp and SD.DetAmp values |
| Medium2 | Medium structure with best-fit Muao and Muspo values | |
For both
where the
are the individual experimental measurements,
are the theoretical predictions, given optical properties
,
and the angle brackets denote an average over all measurements.
Minimizing the function is equivalent to minimizing the residue in the
Rytov approximation (which is what