-
Quick start
-
API
-
Fill Hole
Description
Fills the holes found in a particle. The holes are filled with a pixel value of 1. The source image must be an 8-bit binary image. The holes found in contact with the image border are never filled because it is impossible to determine whether these holes are part of a particle. Type : polymorphic.
Input parameters
Image Src : class, type accepted U8.
Connectivity 4/8 (8) : boolean, specifies the type of connectivity used by the algorithm for particle detection. The connectivity mode directly determines whether an adjacent pixel belongs to the same particle or a different particle.
-
- True : particle detection is performed in connectivity mode 8
- False : particle detection is performed in connectivity mode 4
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).