Back to Adaptive Vision Studio website

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

TestRegionEqualTo


Module: FoundationBasic

Tests whether given regions are equal.

Name Type Description
inRegion Region Input region
inReferenceRegion 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.

Complexity Level

This filter is available on Basic Complexity Level.

See Also