09-18-2015 04:18 AM - edited 09-18-2015 04:33 AM
Hi,
I'm using the NI_AALPro.lvlib:Linear Fit.vi on an array of vertically stacked points. However, the result makes absolutely no sense, the fitted line doesn't represent the input data.
But if I rotate the points by 1 degree, the fit seems to work...
Why is that and is there a function or a way to properly fit the points regarding their orientation?
Thanks in advance!
I have attached:
Solved! Go to Solution.
09-18-2015 04:19 AM
Pictures part 2
09-18-2015 05:39 AM - edited 09-18-2015 05:40 AM
09-18-2015 05:59 AM - edited 09-18-2015 06:19 AM
Thanks for your quick reply! I adjusted the VI, it seems I thought a bit too complicated.
I included the blob coordinates (in the 1600x1200 px image) as a constant.
09-18-2015 06:04 AM
09-18-2015 06:21 AM - edited 09-18-2015 06:31 AM
Sorry, my mistake. I'll upload it shortly
I adjusted the file paths, you might need to update them with the location of the test picture I uploaded if you want to use that.
Thanks again!
09-18-2015 06:36 AM
Sorry, my mistake, here it is:
09-18-2015 06:43 AM
09-18-2015 06:51 AM
Hm, yes it does. But why is it so weird in case of my blobs?
09-18-2015 06:55 AM