Jump to content

How to calculate the maximum dimension of an irregular image in LabVIEW


hms2006

Recommended Posts

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!

post-53193-0-01267700-1422877845.png

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.