Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Surface Spatial Transforms »
CropSurfaceToRegion
Removes points that are not present in a given region.
Syntax
C++
C#
void avl::CropSurfaceToRegion
(
const avl::Surface& inSurface,
const avl::Region& inRegion,
bool inPreserveDimensions,
avl::Surface& outSurface
)
void CropSurfaceToRegion
(
Surface inSurface,
Region inRegion,
bool inPreserveDimensions,
out 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. |