Back to Adaptive Vision Library Lite website
You are here: Start » Region Spatial Transforms » CropRegionToRectangle
![](../../img/icon/CropRegion.png)
CropRegionToRectangle
Creates a region from a rectangular fragment of another one.
Syntax
void avl::CropRegionToRectangle ( const avl::Region& inRegion, const avl::Rectangle2D& inRectangle, atl::Optional<const avl::CoordinateSystem2D&> inRectangleAlignment, avl::Region& outRegion, atl::Optional<avl::Rectangle2D&> outAlignedRectangle = atl::NIL, atl::Optional<avl::CoordinateSystem2D&> outOutputAlignment = atl::NIL )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inRegion | const Region& | Input region | |
![]() |
inRectangle | const Rectangle2D& | Rectangle defining a rotated subregion | |
![]() |
inRectangleAlignment | Optional<const CoordinateSystem2D&> | NIL | Adjusts the rectangle to the position of the inspected object |
![]() |
outRegion | Region& | Output region | |
![]() |
outAlignedRectangle | Optional<Rectangle2D&> | NIL | Input rectangle after transformation (in the region coordinates) |
![]() |
outOutputAlignment | Optional<CoordinateSystem2D&> | NIL | Alignment of the output region |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inRegion and outRegion