Back to FabImage Library Lite website
You are here: Start » Path » Path Spatial Transforms » AlignPath

AlignPath
Header: | FIL.h |
---|---|
Namespace: | fil |
Moves a path from a local coordinate system to the absolute one.
Applications: Required when there is a path defined in a local coordinate system, but the next image-related filter in the program does not have any inAlignment input.
Syntax
void fil::AlignPath ( const fil::Path& inPath, const fil::CoordinateSystem2D& inAlignment, bool inInverse, fil::Path& outAlignedPath )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPath | const Path& | Input path | |
![]() |
inAlignment | const CoordinateSystem2D& | Coordinate system to align to | |
![]() |
inInverse | bool | Switches to the inverse transform | |
![]() |
outAlignedPath | Path& |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inPath and outAlignedPath
Read more about In-place Computation.
Description
AlignPath aligns the inPath to the inAlignment coordinate system. The input path is translated, rotated and scaled.
Examples
![]() |
![]() |
AlignPath run on the sample paths.
See Also
- TranslatePath – Translates a path by a vector.
- RotatePath – Rotates a path clockwise around a center point.