Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

issue with particle filter 2

Hi all,

I'm using the IMAQ particle filter 2 in LV 8.5 and I don't really understand how the keep/remove logic works.

If the input array "selection values" has only one element, e.g. centre of mass X, particle that are out of the specified range will be removed if "range" is false. This is what I expect.
If the input array "selection values" has more than one element, e.g. centre of mass X and center of mass Y, then I expect to have in the end only particle that are in both ranges and this is not what happens.

When the input array "selection values" has more than one element, the filters are not applied sequentially and I have to do it like on the screen-shot below :




The detailed help doesn't tell what happens when the are more than one element in the input array "selection values". So can anyone tell me how it works in such a case ?

Thanks in advance


Message Edited by TiTou on 02-04-2008 10:02 AM

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 1 of 3
(4,006 Views)
TiTou -

If more than one object is in the Selection Values array, Particle Filter 2 will match all particles that satisfy any of the criteria.  If you want to have Particle Filter 2 match only particles that satisfy all of the criteria, you can change each of the Range parameters to be Exclude (true) and pass True to the Keep/Remove Particles input on the Particle Filter 2 VI.  I've attached a screenshot of what that looks like.

Greg Stoll
Vision R&D
National Instruments
Greg Stoll
LabVIEW R&D
Message 2 of 3
(3,993 Views)
Thank you Greg, that's what I was trying to do

Smiley Happy

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 3 of 3
(3,977 Views)