Back to Aurora Vision Library website
You are here: Start » Function Reference » Surface » Surface Spatial Transforms » SubtractSurfaces
SubtractSurfaces
| Header: | AVL.h |
|---|---|
| Namespace: | avl |
| Module: | Vision3DStandard |
Subtracts two surfaces point by point.
Syntax
C++
C#
void avl::SubtractSurfaces ( const avl::Surface& inSurface1, const avl::Surface& inSurface2, atl::Optional<const avl::Region&> inRoi, avl::Surface& outSurface )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inSurface1 | const Surface& | First input surface | |
![]() |
inSurface2 | const Surface& | Second input surface | |
![]() |
inRoi | Optional<const Region&> | NIL | Region of interest |
![]() |
outSurface | Surface& | Output surface |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Different surface dimensions in SubtractSurfaces. |
| DomainError | Different surface scales or offsets in SubtractSurfaces. |
| DomainError | Different surface types in SubtractSurfaces. |
| DomainError | Region of interest exceeds an input surface in SubtractSurfaces. |


