Welcome to our Support Center

Particle Filter

Description

Filters (keeps or removes) each particle in an image according to its measurements. Type : polymorphic.

 

Input parameters

 

Image Src : class, type accepted U8.
Keep/Remove (Keep) : boolean,
controls whether particles that meet any of the criteria specified in Selection Values are removed. When Keep/Remove Particles is TRUE, particles meeting any of the criteria are removed. If FALSE, only particles meeting any of the criteria remain.

Selection Values : array, controls the criteria used to filter the particle in the image.

Min : float, specifies the lower value of the range for the chosen parameter.
Max : float, specifies the upper value of the range for the chosen parameter.
Measurement Parameter : enum, is the measurement on which you want to filter.
In/Out (In) : boolean, specifies whether to include or exclude the values given in Min and Max.

When In/Out is false, the particle meets the criteria if Min ≤ particle measurement < Max.
When In/Out is true, the particle meets the criteria if Max ≤ particle measurement  < Min.

Output parameters

 

Image Dst : class

Example

All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install TIGR library to run it).

Table of Contents