You are here: Start » Filter Reference » Path Local Transforms » SmoothPath_Mean
Smooths a path by averaging its characteristic points within a kernel.
| Name | Type | Range | Description | |
|---|---|---|---|---|
![]()  | 
				inPath | Path | Input path | |
![]()  | 
				inKernelRadius | Integer | 0 - ![]()  | 
				|
![]()  | 
				outPath | Path | Output path | |
Description
The operation replaces each characteristic point of the path with the local average, thus smoothing its shape. The local average is computed as a simple arithmetic mean of the consecutive 2*inKernelRadius + 1 characteristic points.
Examples
![]() A sample path  | 
![]()  | 
![]()  | 
SmoothPath_Mean run on the sample path with inKernelRadius = 1.  | 
SmoothPath_Mean run on the sample path with inKernelRadius = 3.  | 
Errors
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
List of possible exceptions:
| Error type | Description | 
|---|---|
| DomainError | Kernel size exceeds the number of points in a path in SmoothPath_Mean. | 
Complexity Level
This filter is available on Basic Complexity Level.
Filter Group
This filter is member of SmoothPath filter group.
See Also
- SmoothPath_Gauss – Smooths a path by averaging its characteristic points within a kernel using gaussian-weighted average.
 






