Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ Particle Filter options?

Hello,

I have found the Particle Filter in Vision 8 to be less than adequate for my needs. If I wanted to filter particles out that were in a range 1 to 3 pixels wide AND a range 10 to 50 high. Currently, the particle filter can only do OR'ing operations, not an AND (as far as I can tell). I am trying to remove skinny and tall particles. I know of a few techniques I can do in order to achieve this functionality, but it surprises me that the Particle Filter does not allow me to suggest an option to AND the array elements together, instead of always ORing them. I've been working with Vision based apps for a few years now and still surprised not to see it out there yet.

Has anyone developed a new Particle Filter operation to use OR/AND option with the elements in the array?
If I developed it, would it be valuable to anyone?


Thanks,

--Kevin
PVI Systems Inc.
Kevin Shirey | CLA | Champion | Senior Project Engineer II | DMC
0 Kudos
Message 1 of 2
(3,285 Views)

Kevin,

You can do it with the existing filter, but it is a bit tricky.  You need to invert your selection (outside the range instead of inside), then exclude everything that matches your criteria.  This will effectively AND your original criteria.

Bruce

Bruce Ammons
Ammons Engineering
Message 2 of 2
(3,275 Views)