Back to FabImage Library website
You are here: Start » Function Reference » Region » Region Spatial Transforms » MirrorRegion

MirrorRegion
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationBasic |
Mirrors a region across vertical or horizontal axis.
Syntax
C++
C#
void fil::MirrorRegion ( const fil::Region& inRegion, const fil::MirrorDirection::Type inMirrorDirection, fil::Region& outRegion )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inRegion | const Region& | Input region | |
![]() |
inMirrorDirection | const MirrorDirection::Type | Horizontal | Reverse the order of region columns (horizontal direction) or rows (vertical direction). |
![]() |
outRegion | Region& | Output region |
Examples
![]() |
![]() |
MirrorRegion with inMirrorDirection = Horizontal.
![]() |
![]() |
MirrorRegion with inMirrorDirection = Vertical.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Input and output regions are not distinct in MirrorRegion. |
See Also
- TransposeRegion – Flips and rotates a region so that x-coordinates are exchanged with y-coordinates.