obj_diffobj_diffObjDiffObjDiffobj_diff (Operator)

Name

obj_diffobj_diffObjDiffObjDiffobj_diff — Calculate the difference of two object tuples.

Signature

obj_diff(Objects, ObjectsSub : ObjectsDiff : : )

Herror obj_diff(const Hobject Objects, const Hobject ObjectsSub, Hobject* ObjectsDiff)

Herror T_obj_diff(const Hobject Objects, const Hobject ObjectsSub, Hobject* ObjectsDiff)

void ObjDiff(const HObject& Objects, const HObject& ObjectsSub, HObject* ObjectsDiff)

HObject HObject::ObjDiff(const HObject& ObjectsSub) const

HImage HImage::ObjDiff(const HImage& ObjectsSub) const

HRegion HRegion::ObjDiff(const HRegion& ObjectsSub) const

HXLD HXLD::ObjDiff(const HXLD& ObjectsSub) const

HXLDCont HXLDCont::ObjDiff(const HXLDCont& ObjectsSub) const

HXLDPoly HXLDPoly::ObjDiff(const HXLDPoly& ObjectsSub) const

HXLDPara HXLDPara::ObjDiff(const HXLDPara& ObjectsSub) const

HXLDModPara HXLDModPara::ObjDiff(const HXLDModPara& ObjectsSub) const

HXLDExtPara HXLDExtPara::ObjDiff(const HXLDExtPara& ObjectsSub) const

static void HOperatorSet.ObjDiff(HObject objects, HObject objectsSub, out HObject objectsDiff)

HObject HObject.ObjDiff(HObject objectsSub)

HImage HImage.ObjDiff(HImage objectsSub)

HRegion HRegion.ObjDiff(HRegion objectsSub)

HXLD HXLD.ObjDiff(HXLD objectsSub)

HXLDCont HXLDCont.ObjDiff(HXLDCont objectsSub)

HXLDPoly HXLDPoly.ObjDiff(HXLDPoly objectsSub)

HXLDPara HXLDPara.ObjDiff(HXLDPara objectsSub)

HXLDModPara HXLDModPara.ObjDiff(HXLDModPara objectsSub)

HXLDExtPara HXLDExtPara.ObjDiff(HXLDExtPara objectsSub)

def obj_diff(objects: HObject, objects_sub: HObject) -> HObject

Description

obj_diffobj_diffObjDiffObjDiffObjDiffobj_diff calculates the set-theoretic difference of two object tuples: (objects in Objects) - (objects in ObjectsSub) The resulting object tuple ObjectsDiffObjectsDiffObjectsDiffObjectsDiffobjectsDiffobjects_diff is defined as the input tuple ObjectsObjectsObjectsObjectsobjectsobjects with all objects from ObjectsSubObjectsSubObjectsSubObjectsSubobjectsSubobjects_sub removed.

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

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.

Execution Information

Parameters

ObjectsObjectsObjectsObjectsobjectsobjects (input_object)  object(-array) objectHObjectHObjectHObjectHobject

Object tuple 1.

ObjectsSubObjectsSubObjectsSubObjectsSubobjectsSubobjects_sub (input_object)  object(-array) objectHObjectHObjectHObjectHobject

Object tuple 2.

ObjectsDiffObjectsDiffObjectsDiffObjectsDiffobjectsDiffobjects_diff (output_object)  object(-array) objectHObjectHObjectHObjectHobject *

Objects from ObjectsObjectsObjectsObjectsobjectsobjects that are not part of ObjectsSubObjectsSubObjectsSubObjectsSubobjectsSubobjects_sub.

Result

obj_diffobj_diffObjDiffObjDiffObjDiffobj_diff always returns 2 (H_MSG_TRUE).

See also

test_equal_objtest_equal_objTestEqualObjTestEqualObjTestEqualObjtest_equal_obj, count_objcount_objCountObjCountObjCountObjcount_obj, copy_objcopy_objCopyObjCopyObjCopyObjcopy_obj, select_objselect_objSelectObjSelectObjSelectObjselect_obj

Module

Foundation