LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pattern Matching

Hello Community!!!

If I have many images, suppose 1000 and I want to know the coordinates of the particle that is in the images. How can I do that??

0 Kudos
Message 1 of 6
(2,014 Views)

In order to get help, you'll either need to be wayyyyy more descriptive than "the particle that is in the images" or we'll need to see an example image.

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

0 Kudos
Message 2 of 6
(2,006 Views)

If I have a video clip of a moving particle, and I break it in a series of images. Suppose there is 10 minute video captured at 20 fps, then I'll have 12000 frames. so I want to know the particle coordinates in all frames. and the angle between the particle axis of motion and the x-axis. Can I do this  using pattern matching in Lab view.  Attached is the kind of images I have.

0 Kudos
Message 3 of 6
(2,000 Views)

That sounds like the sort of thing the NI Vision Development module is for.  It's not free, so I hope you have a budget to get it, but you can get it as a free trial to see if it works first.

 

 

0 Kudos
Message 4 of 6
(1,970 Views)

Analyzing 1000 or 12000 images is exactly the same as analyzing one image, it just takes longer. 😄

Do you have the code to analyze one image?

 

  • Do you have any time restrictions?
  • Is there always exactly one particle of known anisotropic shape and size?
  • Is the size constant? (If so, you could just do a 2D convolution with a black disk of correct size, similar to this where we look for a circle).
  • Is the particle always in view?
  • How much noise is there?
  • How many pixels in each image? (is 146x146 typical)
  • Can we assume that the particle moves slowly i.e. the positions in adjacent frames is similar?
  • what resolution is required? (rounded to the nearest pixel? Subpixel resolution?)
  • Once you express the xy positions as complex values, getting the direction and speed between two adjacent frames is trivial.
0 Kudos
Message 5 of 6
(1,953 Views)

Well, you have a nice image, so that makes life a lot easier.

 

p

 

Which one is the particle?

 

A simple IMAQ Threshold and IMAQ object analysis or circle detection would detect both particles. A simple filter on the image or size on the results would give you the small or large particle. 

 

You could use OpenCV with Python (called from LabVIEW) for this too.

0 Kudos
Message 6 of 6
(1,923 Views)