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!