Back to Adaptive Vision Library website
You are here: Start » Function Reference » Region Spatial Transforms » AlignRegion
AlignRegion
Aligns a region to a coordinate system.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::AlignRegion ( const avl::Region& inRegion, const avl::CoordinateSystem2D& inAlignment, bool inInverse, atl::Optional<int> inFrameWidth, atl::Optional<int> inFrameHeight, avl::Region& outAlignedRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRegion | const Region& | Input region | |||
inAlignment | const CoordinateSystem2D& | Coordinate system to align to | |||
inInverse | bool | Switches to the inverse transform | |||
inFrameWidth | Optional<int> | 0 - | NIL | Output region's frame width | |
inFrameHeight | Optional<int> | 0 - | NIL | Output region's frame height | |
outAlignedRegion | Region& |
Description
AlignRegion applies inAlignment transform to an input region.
Examples
Remarks
Region is a pixel-precise object, so geometrical transform may cause its deformation. Consider using a closed Path instead, which can be converted to a region in the last step.
In-place Processing
This function supports in-place data processing - you can pass the same reference to inRegion and outAlignedRegion
See Also
- MirrorRegion – Mirrors a region across vertical or horizontal axis.
- RotateRegion – Rotates a region around a point.
- TransposeRegion – Flips and rotates a region so that x-coordinates are exchanged with y-coordinates.