SmoothRegion_Mean
Smooths an region by averaging pixels within a rectangular kernel.
Applications:Usually used for computing features related to local image "windows". Can be also used for noise removal, but Gauss is superior here.
Syntax
C++
Python
def SmoothRegion_Mean( inRegion: Region, outImage: Image, /, *, inRadiusX: int = 1, inRadiusY: int | None = None ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inRegion | Region | Input region | ||
![]() |
inRadiusX | int | 0 - ![]() |
1 | Nearly half of the kernel's width (2*R+1) |
![]() |
inRadiusY | int | None | 0 - ![]() |
None | Nearly half of the kernel's height (2*R+1), or same as inRadiusX |
![]() |
outImage | Image | Output image |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.



