You are here: Start » AVL.NET » Function Reference » Region » Region Relations » AVL.TestRegionEqualTo

AVL.TestRegionEqualTo

Tests whether given regions are equal.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void TestRegionEqualTo
(
	AvlNet.Region inRegion,
	AvlNet.Region inReferenceRegion,
	out bool outIsEqual
)

Parameters

Name Type Range Default Description
inRegionAvlNet.RegionInput region.
inReferenceRegionAvlNet.Region
outIsEqualbool

Description

The operation tests whether the inRegion is the same region as contained inside inReferenceRegion. It means that the resulting outIsEqual is set to 'true' if and only if both of the conditions are met:

  • inRegion and inReferenceRegion have the same dimensions
  • inRegion and inReferenceRegion contain the same set of pixels

Examples

TestRegionEqualTo run with inRegion set to the right region and inReferenceRegion set to the left, computes the outIsEqual = true.

TestRegionEqualTo run with inRegion set to the right region and inReferenceRegion set to the left, computes the outIsEqual = false, as dimensions of the regions differ.

See also