Back to FabImage Library Lite websiteYou are here:
Start »
Path »
Path Combinators »
AveragePath
Header: |
FIL.h
|
Namespace: |
fil |
Computes the average of two paths (of equal size and type) point by point.
Syntax
void fil::AveragePath
(
const fil::Path& inPath1,
const fil::Path& inPath2,
fil::Path& outPath
)
Parameters
|
Name |
Type |
Default |
Description |
 |
inPath1 |
const Path& |
|
Input path |
 |
inPath2 |
const Path& |
|
Input path |
 |
outPath |
Path& |
|
Output path |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inPath1 and outPath, inPath2 and outPath
Read more about In-place Computation.
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.
Errors
List of possible exceptions:
Error type |
Description |
DomainError |
Input paths have unequal size in AveragePath. |
DomainError |
Open/closed paths mismatch in AveragePath. |