ClassesClassesClassesClasses | | | | Operators

count_objcount_objCountObjcount_objCountObjCountObj (Operator)

Name

count_objcount_objCountObjcount_objCountObjCountObj — Number of objects in a tuple.

Signature

count_obj(Objects : : : Number)

Herror count_obj(const Hobject Objects, Hlong* Number)

Herror T_count_obj(const Hobject Objects, Htuple* Number)

Herror count_obj(Hobject Objects, Hlong* Number)

void CountObj(const HObject& Objects, HTuple* Number)

Hlong HObject::CountObj() const

void HOperatorSetX.CountObj(
[in] IHUntypedObjectX* Objects, [out] VARIANT* Number)

Hlong HImageX.CountObj()

Hlong HRegionX.CountObj()

Hlong HUntypedObjectX.CountObj()

Hlong HXLDContX.CountObj()

Hlong HXLDPolyX.CountObj()

Hlong HXLDParaX.CountObj()

Hlong HXLDModParaX.CountObj()

Hlong HXLDExtParaX.CountObj()

static void HOperatorSet.CountObj(HObject objects, out HTuple number)

int HObject.CountObj()

Description

The operator count_objcount_objCountObjcount_objCountObjCountObj determines for the object parameter ObjectsObjectsObjectsObjectsObjectsobjects the number of objects it contains. In this connection it should be noted that object is not the same as connection component (see connectionconnectionConnectionconnectionConnectionConnection). For example, the number of objects of one region consisting of three parts that are not connected is 1.

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

Parallelization

Parameters

ObjectsObjectsObjectsObjectsObjectsobjects (input_object)  object-array objectHObjectHObjectHObjectArrayHObjectXHobject

Objects to be examined.

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

Number of objects in the tuple ObjectsObjectsObjectsObjectsObjectsobjects.

Complexity

Runtime complexity: O(|ObjectsObjectsObjectsObjectsObjectsobjects|).

Result

count_objcount_objCountObjcount_objCountObjCountObj returns the value 2 (H_MSG_TRUE).

See also

copy_objcopy_objCopyObjcopy_objCopyObjCopyObj, obj_to_integerobj_to_integerObjToIntegerobj_to_integerObjToIntegerObjToInteger, connectionconnectionConnectionconnectionConnectionConnection, set_systemset_systemSetSystemset_systemSetSystemSetSystem

Module

Foundation


ClassesClassesClassesClasses | | | | Operators