DilateRegion_AnyKernel
Performs a morphological dilation on a region using an arbitrary kernel.
Applications:Making the region thicker in a non-symmetrical way or filling-in gaps of a particular shape.
Syntax
C++
C#
Python
def DilateRegion_AnyKernel( inRegion: Region, inKernel: Region, outRegion: Region, /, *, inKernelAnchor: Location | None = None ) -> None
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inRegion | Region | Input region | |
![]() |
inKernel | Region | Kernel shape (any) | |
![]() |
inKernelAnchor | Location | None | None | Location within inKernel, defining its center |
![]() |
outRegion | Region | Output region |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.


