Back to Adaptive Vision Library website

You are here: Start » Function Reference » Region » Region Relations » TestRegionEqualTo

TestRegionEqualTo


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Tests whether given regions are equal.

Syntax

C++
C#
 
void avl::TestRegionEqualTo
(
	const avl::Region& inRegion,
	const avl::Region& inReferenceRegion,
	bool& outIsEqual
)

Parameters

Name Type Default Description
inRegion const Region& Input region
inReferenceRegion const Region&
outIsEqual bool&

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