LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measuring distance between points

Hey,
I am trying to do 2-D particle tracking.  What I am trying to do is for each point in the image, I want to find the shortest distance to anouther point. Repeat for each point.  Then move on to the next image and then compare those distances, since the particles are moving slowly, to help keep tabs on the particle.  So for example if it was at least 15 pixels away from the nearest particle in picture one, that should stay about the same in picture two.  However I am having trouble trying figuring out how to find the closest particle to every particle.  I am open to other suggestions as well for 2-D particle tracking.\
0 Kudos
Message 1 of 4
(2,845 Views)

Hi novastar15,

What software are you using to process the images?  NI Vision software for LabVIEW?

Thanks!
Megan B.
National Instruments

 

0 Kudos
Message 2 of 4
(2,807 Views)

hi there,

i wrote a little vi (see attachment), but ist not tested.

 

best regards

chris

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 3 of 4
(2,792 Views)
Thanks,
I got something that appears to be working but not the most efficent piece I have ever done.  The vi you posted looked good.  And I am  using the vision package to find the centers.  Though it appears I need to refine that some more since over the course of a 30 second video all the centers go missing at least once.
0 Kudos
Message 4 of 4
(2,776 Views)