@All
I am going to post my vi a soon as possible, but currently I am not at work until friday. But there is nothing interesting about my vi, it is the standard lev-mar. The only interesting thing could be the model function which is the standard.
For more information:
My program grabbs pictures and tries to analyze a specified Region of Interest (ROI). In most cases there is a light spot with a horizontal and vertical gaussian distribution (see attachement "spot.png"). I cannot calculate the gaussian fit during each iteration because it lasts so long (decreases FPS). To increase the FPS I try to minimize the fitting time.
@Medvall
I think I have to buy something?! That was not my intention...
@DSPGuy
Thx for the tips. I already tried a vi model function before which calcluated the f'(x) explicit.(found in the forum) I could not recognize a boost of performance, in addition I would say it slowed my vi a little. The vi model function I found is attached, maybe you can say something about that.
Referring to the precision I abort the fit after 20 attempts, with a tolerance of 10^-7. I cannot decrease the tolerance, because if the light spot is very faint - and that is often - , the vi would always try to fit something in that tolerance. That would lead to unnecessary strange fits, so the high tolerance and the 20 iterations forces the vi it to fit very well or none.
The last point is that I need the FWHM and the first Moment (weighted average) and for that reason I can use it for the initial guess. I have no clue how to determine the offset in a better way. Tried a lot of things (e.g. get waveform offset). The problem is, that the gaussian offset parameter is not he total offset. Any idea?
In some cases my inital guess values are more or less exactly the gaussian output parameters, but I would say there is no huge difference between exact inital guesses and more or less initial guesses referring to the performance. May you convince me it is.
I am going to try the peak detection to more accuratly determine the amplitude and center (maximum position).
Ok, that lambda could be an opportunity to boost erverything up. The tolerance does not seem to make a difference or?! I am going to check that.
Thx for more advices...