Back to FabImage Library website
You are here: Start » Function Reference » Surface » Surface Spatial Transforms » SubtractSurfaces
SubtractSurfaces
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | Vision3DStandard |
Subtracts two surfaces point by point.
Syntax
C++
C#
void fil::SubtractSurfaces ( const fil::Surface& inSurface1, const fil::Surface& inSurface2, ftl::Optional<const fil::Region&> inRoi, fil::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. |