04-02-2014 01:01 AM
Hi all,
I have a set of points and am fitting a second degree polynomial in it using General Polynomial fit.vi, Regression Equation String.vi and Eval y=f(x) Optimal Step. vi as given in the example Regression Solver.vi.
Now, my problem is, I want all the points on the curve given the equation of the curve. By all points, I mean with all the pixels, similar to the VI 'GetPointsOnLine' which gives all the points on a line given its endpoints. Please help me.
Please see the regression solver example in C:\National Instruments\LabVIEW 2013\examples\Mathematics\Fitting\Regression Solver.vi
Thank you
04-02-2014 01:42 PM
You really need to define your X values. Once you have those, then you just plug those values into your formula and you should have your Y values.
04-02-2014 04:09 PM
Crea an x-ramp corresponding to your pixels and use polynomial evaluation to calculate the curve based on the polynomial coefficients.