LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

2D gaussian fit

Hello. I want to 2D gaussian fitting to images from camera. I already knew about AnalysisLibErrType GaussFit function.

But, I dont know how to use this function for 2D. Please let me know about this if someone know about this.

 

Thanks,

0 Kudos
Message 1 of 3
(3,183 Views)

One more thing, I dont know what the output of AnalysisLibErrType GaussFit function is.

I want to get gaussian fitting x and y coordinate.

 

Thanks,

0 Kudos
Message 2 of 3
(3,181 Views)

Hello,

 

a two-dimensional Gaussian function z= f(x,y) is different from a 'regular', one-dimensional Gaussian function y = f(x). Also the former has four (x0, dx, y0, dy) instead of two parameters... Hence you cannot use the GaussFit function. I am not aware of a 2D nonlinear fitting function in the advanced analysis library of CVI.

 

However, you can reformat your data into a one-dimensional array and then use one of the nonlinear fitting functions of CVI with a four-parameter model function.

0 Kudos
Message 3 of 3
(3,176 Views)