Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Region Combinators » RegionSymmetricDifference

RegionSymmetricDifference


Computes a region containing pixels from first or second input region, but not from both.

Name Type Description
inRegion1 Region First input region
inRegion2 Region Second input region
outRegion Region Output region

Description

The operation computes the logical symmetric difference of two given regions. That is, the resulting region contains pixel locations that belong to one of the given regions, but not to both of them. Both dimensions (width and height) of the resulting region are set to the maximum of the corresponding dimensions of the input regions.

Examples

RegionSymmetricDifference run on the sample regions.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Input and output regions are not distinct in RegionSymmetricDifference.

Complexity Level

This filter is available on Basic Complexity Level.

See Also

  • RegionDifference – Computes a region containing pixels from the first input region, but not from the second input region.