Back to Adaptive Vision Library Lite website
You are here: Start » Region Spatial Transforms » CropRegion
![](../../img/icon/CropRegion.png)
CropRegion
Creates a region from a rectangular fragment of another one.
Syntax
void avl::CropRegion ( const avl::Region& inRegion, const avl::Box& inSelection, avl::Region& outRegion )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inRegion | const Region& | Input region | |
![]() |
inSelection | const Box& | Box defining the range of cropping | |
![]() |
outRegion | Region& | Output region |
Examples
![]() |
![]() |
CropRegion performed on the sample region with inSelection = Box(0,0,200,200).