You are here: Start » AVL.NET » AVL.FillRegionHoles(AvlNet.Region, AvlNet.RegionConnectivity, int?, int?, AvlNet.Region)
AVL.FillRegionHoles(AvlNet.Region, AvlNet.RegionConnectivity, int?, int?, AvlNet.Region)
Extends the input region so that it contains also all the pixels previously lying in its holes.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void FillRegionHoles( AvlNet.Region inRegion, AvlNet.RegionConnectivity inConnectivity, int? inMinHoleArea, int? inMaxHoleArea, out AvlNet.Region outRegion )
Parameters
- inRegion
- Type: AvlNet.Region
Input region - inConnectivity
- Type: AvlNet.RegionConnectivity
Type of connectivity used for the region foreground - inMinHoleArea
- Type: System.Nullable<System.Int32>
Minimal area of a hole to be filled, or null. - inMaxHoleArea
- Type: System.Nullable<System.Int32>
Maximal area of a hole to be filled, or null. - outRegion
- Type: AvlNet.Region
Output region
Description
The operation extends a region to contain all pixels inside any of the region holes. Holes of a region are those connected areas of pixels not belonging to the region, that do not touch the boundary of the region frame.
Examples
![]() |
![]() |
FillRegionHoles run on a sample region.
Remarks
This filter is mostly used in Blob Analysis Technique please refer to our Machine Vision Guide - Blob Analysis article.


