Particle Filter
Description
Filters (keeps or removes) each particle in an image according to its measurements. Type : polymorphic.
Documentation illustration (illustration unavailable in the archive).
Input parameters
Documentation illustration (illustration unavailable in the archive). Image Src : class, type accepted U8.
Documentation illustration (illustration unavailable in the archive). 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.
Documentation illustration (illustration unavailable in the archive). Selection Values : array, controls the criteria used to filter the particle in the image.
Documentation illustration (illustration unavailable in the archive). Min : float, specifies the lower value of the range for the chosen parameter.
Documentation illustration (illustration unavailable in the archive). Max : float, specifies the upper value of the range for the chosen parameter.
Documentation illustration (illustration unavailable in the archive). Measurement Parameter : enum, is the measurement on which you want to filter.
Documentation illustration (illustration unavailable in the archive). 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.
Documentation illustration (illustration unavailable in the archive).
Output parameters
Documentation illustration (illustration unavailable in the archive). Image Dst : class
Examples
All these examples 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 Computer Vision library to run it).
