FillRegionHoles
Adds pixels to the input region so that it contains no holes.
Syntax
C++
C#
Python
def FillRegionHoles( inRegion: Region, outRegion: Region, /, *, inConnectivity: RegionConnectivity = RegionConnectivity.EightDirections, inMinHoleArea: int = 0, inMaxHoleArea: int | None = None ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inRegion | Region | Input region | ||
![]() |
inConnectivity | RegionConnectivity | RegionConnectivity.EightDirections | Type of connectivity used for the region foreground | |
![]() |
inMinHoleArea | int | 0 - ![]() |
0 | Minimal area of a hole to be filled |
![]() |
inMaxHoleArea | int | None | 0 - ![]() |
None | Maximal area of a hole to be filled |
![]() |
outRegion | Region | Output region |



