hms2006 Posted February 2, 2015 Report Posted February 2, 2015 Hi, guys, From the attached image, you can see a stellar form image in black, and some annotation in x, y, d, w , r . x and y are just that we use in cartesian coordinate system; and d is the maximum dimension of the image, which is the span of the particle projected onto a line determined by a least-squares fit of the x and y positions of all occultations; w is the span of the particle projected onto the line perpendicular to that used for d; and r is the correlation coefficient from the least-squares fit. The data of the image is structured in an array with 0 and 1, which is very easy for me to get the dimension in x and y direction. But i really don't know how to get the dimension d, w and r in least-squares fit methods. If i want to realize it in labVIEW G language, can you give me some tips or codes in LabVIEW. Thanks! Quote
infinitenothing Posted February 2, 2015 Report Posted February 2, 2015 You need to convert your array to a list of coordinates and pass it to the linear fit function. Quote
hms2006 Posted February 3, 2015 Author Report Posted February 3, 2015 Get it, thanks for Infitenothing! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.