Back to Adaptive Vision Library website
You are here: Start » Function Reference » Path Combinators » AveragePath
AveragePath
Computes the average of two paths (of equal size and type) point by point.
Syntax
C++
C#
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inPath1 | const Path& | Input path | ||
inPath2 | const Path& | Input path | ||
outPath | Path& | Output path |
Description
The operation computes the average of two paths of equal size and type (open/closed). Each point of the resulting path is an average of the corresponding points in the input paths.
Examples
In-place Processing
This function supports in-place data processing - you can pass the same reference to inPath1 and outPath, inPath2 and outPath
Errors
Error type | Description |
---|---|
DomainError | Input paths have unequal size in AveragePath. |
DomainError | Open/closed paths mismatch in AveragePath. |