You are here: Start » AVL.NET » Function Reference » Region » Region Combinators » AVL.RegionSymmetricDifference

AVL.RegionSymmetricDifference

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void RegionSymmetricDifference
(
	AvlNet.Region inRegion1,
	AvlNet.Region inRegion2,
	AvlNet.Region outRegion
)

Parameters

Name Type Range Default Description
inRegion1AvlNet.RegionFirst input region.
inRegion2AvlNet.RegionSecond input region.
outRegionAvlNet.RegionOutput 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