Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Path Combinators »
AveragePath
Computes the average of two paths (of equal size and type) point by point.
Syntax
C++
C#
void avl::AveragePath
(
const avl::Path& inPath1,
const avl::Path& inPath2,
avl::Path& outPath
)
void AveragePath
(
Path inPath1,
Path inPath2,
out Path outPath
)
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
AveragePath run on the sample paths.
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. |