You are here: Start » FIL.NET » Function Reference » Path » Path Local Transforms » FIL.SmoothPath_Mean
Smooths a path by averaging its characteristic points within a kernel.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void SmoothPath_Mean ( FilNet.Path inPath, int inKernelRadius, FilNet.Path outPath )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPath | FilNet.Path | Input path. | ||
![]() | inKernelRadius | int | <0, INF> | 3 | Default value: 3. |
![]() | outPath | FilNet.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
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Kernel size exceeds the number of points in a closed path in SmoothPath_Mean. |