Back to Adaptive Vision Library website
You are here: Start » Function Reference » Surface Spatial Transforms » CropSurfaceToRegion

CropSurfaceToRegion
Removes points that are not present in a given region.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::CropSurfaceToRegion ( const avl::Surface& inSurface, const avl::Region& inRegion, bool inPreserveDimensions, avl::Surface& outSurface )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inSurface | const Surface& | Input surface | |
![]() |
inRegion | const Region& | Region from which the points are not removed | |
![]() |
inPreserveDimensions | bool | False | Flag indicating whether the surface dimensions should be preserved or not |
![]() |
outSurface | Surface& | Output surface |
Errors
Error type | Description |
---|---|
DomainError | Input region exceeds surface dimensions in CropSurfaceToRegion. |