ErodeImage_AnyKernel
Replaces each pixel with the minimum of pixels within an arbitrary kernel.
Syntax
C++
C#
Python
def ErodeImage_AnyKernel( inImage: Image, inKernel: Region, outImage: Image, /, *, inRoi: Region | None = None, inSourceRoi: Region | None = None, inBorderColor: Pixel | None = None, inKernelAnchor: Location | None = None ) -> None
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inImage | Image | Input image | |
![]() |
inRoi | Region | None | None | Range of outImage pixels to be computed |
![]() |
inSourceRoi | Region | None | None | Range of inImage pixels to be considered in computations |
![]() |
inBorderColor | Pixel | None | None | Color of the imaginary pixels outside the image boundaries |
![]() |
inKernel | Region | Kernel shape (any) | |
![]() |
inKernelAnchor | Location | None | None | A location within inKernel, defining its center |
![]() |
outImage | Image | Output image |
Hardware Acceleration
This operation is optimized for SSE2 technology for pixels of types: all formats (when inSourceRoi = NIL and inBorderColor = NIL).
This operation is optimized for NEON technology for pixels of types: all formats (when inSourceRoi = NIL and inBorderColor = NIL).
This operation supports automatic parallelization for multicore and multiprocessor systems.
This operation supports processing on OpenCL compatible device (when inRoi=NIL, inSourceRoi=NIL, inBorderColor=NIL).


