Back to FabImage Library website
You are here: Start » Function Reference » Surface » Surface Interpolations » SmoothSurface_Mean

SmoothSurface_Mean
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | Vision3DStandard |
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#
void fil::SmoothSurface_Mean ( const fil::Surface& inSurface, ftl::Optional<const fil::Region&> inRoi, fil::KernelShape::Type inKernel, int inRadiusX, ftl::Optional<int> inRadiusY, fil::Surface& outSurface )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inSurface | const Surface& | |||
![]() |
inRoi | Optional<const Region&> | NIL | Range of points to be computed | |
![]() |
inKernel | KernelShape::Type | Kernel shape | ||
![]() |
inRadiusX | int | 0 - ![]() |
1 | Nearly half of the kernel's width (2*R+1) |
![]() |
inRadiusY | Optional<int> | 0 - ![]() |
NIL | 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.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Region of interest exceeds an input surface in SmoothSurface_Mean. |