Back to Adaptive Vision Library website
You are here: Start » Function Reference » Region Spatial Transforms » ResizeRegion
![](../../img/icon/ResizeRegion.png)
ResizeRegion
Enlarges or shrinks a region to new dimensions.
Syntax
C++
C#
void avl::ResizeRegion ( const avl::Region& inRegion, atl::Optional<int> inNewWidth, atl::Optional<int> inNewHeight, avl::Region& outRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inRegion | const Region& | Input region | ||
![]() |
inNewWidth | Optional<int> | 1 - ![]() |
NIL | |
![]() |
inNewHeight | Optional<int> | 1 - ![]() |
NIL | |
![]() |
outRegion | Region& | Output region |
Examples
![]() |
![]() |
ResizeRegion performed on the sample region with inNewWidth = 200, inNewHeight = 100.
Errors
Error type | Description |
---|---|
DomainError | Output region too big in ResizeRegion. |