Back to Aurora Vision Library Lite website

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

RegionSymmetricDifference


Header: AVL.h
Namespace: avl

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

Syntax

void avl::RegionSymmetricDifference
(
	const avl::Region& inRegion1,
	const avl::Region& inRegion2,
	avl::Region& outRegion
)

Parameters

Name Type Default Description
Input value inRegion1 const Region& First input region
Input value inRegion2 const Region& Second input region
Output value 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.

See Also

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