Back to Adaptive Vision Library website
You are here: Start » Function Reference » Region Spatial Transforms » ResizeRegion
ResizeRegion
Enlarges or shrinks a region to new dimensions.
Header: | AVL.h |
---|
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
Errors
Error type | Description |
---|---|
DomainError | Output region too big in ResizeRegion. |
See Also
- DownsampleRegion – Shrinks a region by the factor of two along each axis.
- EnlargeRegionNTimes – Enlarges a region by a natural factor.
- ResizeImage – Enlarges or shrinks an image to new dimensions.
- ResizeRegion_Relative – Resizes region relatively along each axis.
- ShrinkRegionNTimes – Shrinks a region by a natural factor along each axis.