SmoothSurface_Mean
Smooths a surface by averaging heights within a rectangular kernel.
Applications:Usually used for computing features related to local surface "windows". Can be also used for noise removal, but Gauss is superior here.
Syntax
C++
C#
Python
def SmoothSurface_Mean( inSurface: Surface, outSurface: Surface, /, *, inRoi: Region | None = None, inKernel: KernelShape = KernelShape.Box, inRadiusX: int = 1, inRadiusY: int | None = None ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inSurface | Surface | |||
![]() |
inRoi | Region | None | None | Range of points to be computed | |
![]() |
inKernel | KernelShape | KernelShape.Box | Kernel shape | |
![]() |
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 |
![]() |
outSurface | Surface |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.



