ClassesClassesClassesClasses | | | | Operators

test_equal_regiontest_equal_regionTestEqualRegiontest_equal_regionTestEqualRegionTestEqualRegion (Operator)

Name

test_equal_regiontest_equal_regionTestEqualRegiontest_equal_regionTestEqualRegionTestEqualRegion — Test whether the regions of two objects are identical.

Signature

test_equal_region(Regions1, Regions2 : : : IsEqual)

Herror test_equal_region(const Hobject Regions1, const Hobject Regions2, Hlong* IsEqual)

Herror T_test_equal_region(const Hobject Regions1, const Hobject Regions2, Htuple* IsEqual)

Herror test_equal_region(Hobject Regions1, Hobject Regions2, Hlong* IsEqual)

Hlong HRegion::TestEqualRegion(const HRegion& Regions2) const

Hlong HRegionArray::TestEqualRegion(const HRegionArray& Regions2) const

void TestEqualRegion(const HObject& Regions1, const HObject& Regions2, HTuple* IsEqual)

Hlong HRegion::TestEqualRegion(const HRegion& Regions2) const

void HOperatorSetX.TestEqualRegion(
[in] IHUntypedObjectX* Regions1, [in] IHUntypedObjectX* Regions2, [out] VARIANT* IsEqual)

Hlong HRegionX.TestEqualRegion([in] IHRegionX* Regions2)

static void HOperatorSet.TestEqualRegion(HObject regions1, HObject regions2, out HTuple isEqual)

int HRegion.TestEqualRegion(HRegion regions2)

Description

The operator test_equal_regiontest_equal_regionTestEqualRegiontest_equal_regionTestEqualRegionTestEqualRegion compares the regions of the two input parameters. The n-th element in Regions1Regions1Regions1Regions1Regions1regions1 is compared to the n-th object in Regions2Regions2Regions2Regions2Regions2regions2 (for all n). If all regions are equal and the number of regions is identical the operator IsEqualIsEqualIsEqualIsEqualIsEqualisEqual is set to TRUE, otherwise FALSE.

For a short description of the iconic objects that are available in HALCON see the introduction of chapter Object.

Parallelization

Parameters

Regions1Regions1Regions1Regions1Regions1regions1 (input_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject

Test regions.

Regions2Regions2Regions2Regions2Regions2regions2 (input_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject

Comparative regions.

Number of elements: Regions1 == Regions2

IsEqualIsEqualIsEqualIsEqualIsEqualisEqual (output_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

boolean result value.

Complexity

If F is the area of a region the runtime complexity is O(1) or O(sqrt(F)) if the result is TRUE, O(sqrt(F)) if the result is FALSE.

Result

The operator test_equal_regiontest_equal_regionTestEqualRegiontest_equal_regionTestEqualRegionTestEqualRegion returns the value 2 (H_MSG_TRUE) if the parameters are correct. The behavior in case of empty input (no input objects available) is set via the operator set_system(::'no_object_result',<Result>:)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>). If the number of objects differs an exception is raised. Else test_equal_regiontest_equal_regionTestEqualRegiontest_equal_regionTestEqualRegionTestEqualRegion returns the value 2 (H_MSG_TRUE)

Alternatives

intersectionintersectionIntersectionintersectionIntersectionIntersection, complementcomplementComplementcomplementComplementComplement, area_centerarea_centerAreaCenterarea_centerAreaCenterAreaCenter

See also

test_equal_objtest_equal_objTestEqualObjtest_equal_objTestEqualObjTestEqualObj

Module

Foundation


ClassesClassesClassesClasses | | | | Operators