03-30-2009 03:00 PM
I'm looking for a curve fitting function or code that I could use to do Gaussian curve fitting for a set of data points. Probably 15 points or less.
03-31-2009 10:52 AM
The functions GaussFit and GaussFitInterval are included with the Advanced Analysis Library that comes with LabWindows/CVI Full Development System. This should do exactly what you need to do.
For your reference here are the prototypes of the functions. You can find additional help on how to use them and descriptions on the parameters in the NI LabWindows/CVI Help.
AnalysisLibErrType GaussFit (double arrayX[], double arrayY[], double weight[], int numberOfElements, int fitMethod, double tolerance, double initialCoefficients[], double fittedData[], double *amplitude, double *center, double *standardDeviation, double *residue);
AnalysisLibErrType GaussFitInterval (double arrayX[], double arrayY[], double weight[], int numberOfElements, int intervalType, double confidenceLevel, double amplitude, double center, double standardDeviation, double upperBound[], double lowerBound[], double *deltaAmplitude, double *deltaCenter, double *deltaDeviation);
Regards,
Steven Zittrower
Applications Engineer
National Instruments
09-23-2010 10:58 AM
I would like to use this function too. How can I get a intesity matrix from a video. I would like to read the position of a laser beam pointing at a camera.
To do that I need to do intesity fit(Gauss) but first the imagest need to be converted into a matrix assigning a number(corresponding to the intesity) to every pixel of the camera. Do you have some idea or examples how this can be done.
Regards,
Peter