HALCON Reference Manual 10.0.2
Table of Contents / Object / Information ClassesClassesClasses | | | Operators

test_equal_objtest_equal_objtest_equal_objTestEqualObjTestEqualObj (Operator)

Name

test_equal_objtest_equal_objtest_equal_objTestEqualObjTestEqualObj — Compare image objects regarding equality.

Signature

test_equal_obj(Objects1, Objects2 : : : IsEqual)

Herror test_equal_obj(const Hobject Objects1, const Hobject Objects2, Hlong* IsEqual)

Herror T_test_equal_obj(const Hobject Objects1, const Hobject Objects2, Htuple* IsEqual)

Herror test_equal_obj(Hobject Objects1, Hobject Objects2, Hlong* IsEqual)

void HOperatorSetX.TestEqualObj(
[in] IHUntypedObjectX* Objects1, [in] IHUntypedObjectX* Objects2, [out] VARIANT* IsEqual)

Hlong HImageX.TestEqualObj([in] IHImageX* Objects2)

Hlong HRegionX.TestEqualObj([in] IHRegionX* Objects2)

Hlong HUntypedObjectX.TestEqualObj([in] IHUntypedObjectX* Objects2)

Hlong HXLDContX.TestEqualObj([in] IHXLDContX* Objects2)

Hlong HXLDPolyX.TestEqualObj([in] IHXLDPolyX* Objects2)

Hlong HXLDParaX.TestEqualObj([in] IHXLDParaX* Objects2)

Hlong HXLDModParaX.TestEqualObj([in] IHXLDModParaX* Objects2)

Hlong HXLDExtParaX.TestEqualObj([in] IHXLDExtParaX* Objects2)

static void HOperatorSet.TestEqualObj(HObject objects1, HObject objects2, out HTuple isEqual)

int HObject.TestEqualObj(HObject objects2)

int HImage.TestEqualObj(HImage objects2)

int HRegion.TestEqualObj(HRegion objects2)

int HXLD.TestEqualObj(HXLD objects2)

int HXLDCont.TestEqualObj(HXLDCont objects2)

int HXLDPoly.TestEqualObj(HXLDPoly objects2)

int HXLDPara.TestEqualObj(HXLDPara objects2)

int HXLDModPara.TestEqualObj(HXLDModPara objects2)

int HXLDExtPara.TestEqualObj(HXLDExtPara objects2)

Description

The operator test_equal_objtest_equal_objtest_equal_objTestEqualObjTestEqualObj compares the regions and gray value components of all objects of the two input parameters. The n-th object in Objects1Objects1Objects1Objects1objects1 is compared to the n-th object in Objects2Objects2Objects2Objects2objects2 (for all n). If all corresponding regions are equal and the number of regions is also identical the parameter IsEqualIsEqualIsEqualIsEqualisEqual is set to TRUE, otherwise FALSE.

Attention

Image matrices and XLDs are not compared regarding their contents. Thus, two images or XLDs, respectively, are “equal” if they are located at the same place in the storage. By contrast, regions that are not located at the same place in the storage are compared regarding their actual contents. If the input parameters are empty and the behavior was set via the operator set_system(::'no_object_result','true':)set_system("no_object_result","true")set_system("no_object_result","true")SetSystem("no_object_result","true")SetSystem("no_object_result","true"), the parameter IsEqualIsEqualIsEqualIsEqualisEqual is set to TRUE, since all input (= empty set) is equal.

Parallelization

Parameters

Objects1Objects1Objects1Objects1objects1 (input_object)  object-array objectHObjectHObjectArrayHObjectXHobject

Test objects.

Objects2Objects2Objects2Objects2objects2 (input_object)  object-array objectHObjectHObjectArrayHObjectXHobject

Comparative objects.

IsEqualIsEqualIsEqualIsEqualisEqual (output_control)  integer HTupleHTupleVARIANTHtuple (integer) (int / long) (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 and O(sqrt(F)) if the result is FALSE.

Result

The operator test_equal_objtest_equal_objtest_equal_objTestEqualObjTestEqualObj 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>)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_objtest_equal_objtest_equal_objTestEqualObjTestEqualObj returns 2 (H_MSG_TRUE)

See also

test_equal_regiontest_equal_regiontest_equal_regionTestEqualRegionTestEqualRegion

Module

Foundation


Table of Contents / Object / Information ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH