Back to Aurora Vision Library Lite website
You are here: Start » Region » Region Spatial Transforms » TranslateRegion
TranslateRegion
Header: | AVL.h |
---|---|
Namespace: | avl |
Translates a region by a given number of pixels along each axis.
Syntax
void avl::TranslateRegion ( const avl::Region& inRegion, int inDeltaX, int inDeltaY, bool inInverse, atl::Optional<int> inFrameWidth, atl::Optional<int> inFrameHeight, avl::Region& outRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inRegion | const Region& | Input region | |||
inDeltaX | int | Horizontal shift | |||
inDeltaY | int | Vertical shift | |||
inInverse | bool | Negates the delta values | |||
inFrameWidth | Optional<int> | 0 - 65535 | NIL | Output region frame width | |
inFrameHeight | Optional<int> | 0 - 65535 | NIL | Output region frame height | |
outRegion | Region& | Output region |
Examples
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Input and output regions are not distinct in TranslateRegion. |