Back to Aurora Vision Library website

You are here: Start » Function Reference » Path » Path Local Transforms » SmoothPath_Gauss

SmoothPath_Gauss


Header: AVL.h
Namespace: avl
Module: FoundationPro

Smooths a path by averaging its characteristic points within a kernel using gaussian-weighted average.

Syntax

C++
C#
 
void avl::SmoothPath_Gauss
(
	const avl::Path& inPath,
	const float inStdDev,
	const float inKernelRelativeSize,
	avl::Path& outPath
)

Parameters

Name Type Range Default Description
Input value inPath const Path& Input path
Input value inStdDev const float 0.0 - 0.6f Smoothing standard deviation
Input value inKernelRelativeSize const float 0.0 - 3.0f A multiple of the standard deviation determining the size of the kernel
Output value outPath Path& Output path

Description

The operation replaces each characteristic point of the path with the local gaussian average, thus smoothing its shape. The local average is computed as a gaussian mean of the consecutive inStdDev*inKernelRelativeSize characteristic points.

Examples

A sample path

SmoothPath_Gauss run on the sample path with inStdDev = 0.6 and inKernelRelativeSize = 3.

SmoothPath_Gauss run on the sample path with inStdDev = 2 and inKernelRelativeSize = 3.

See Also

  • SmoothPath_Mean – Smooths a path by averaging its characteristic points within a kernel.