count_objcount_objCountObjCountObjcount_obj (算子名称)

名称

count_objcount_objCountObjCountObjcount_obj — Number of objects in a tuple.

参数签名

count_obj(Objects : : : Number)

Herror count_obj(const Hobject Objects, Hlong* Number)

Herror T_count_obj(const Hobject Objects, Htuple* Number)

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

Hlong HObject::CountObj() const

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

int HObject.CountObj()

def count_obj(objects: HObject) -> int

描述

该算子 count_objcount_objCountObjCountObjCountObjcount_obj 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.

运行信息

参数表

ObjectsObjectsObjectsObjectsobjectsobjects (input_object)  object-array objectHObjectHObjectHObjectHobject

Objects to be examined.

NumberNumberNumberNumbernumbernumber (output_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Number of objects in the tuple ObjectsObjectsObjectsObjectsobjectsobjects.

Complexity

Runtime complexity: O(|ObjectsObjectsObjectsObjectsobjectsobjects|).

结果

count_objcount_objCountObjCountObjCountObjcount_obj 返回值 2 ( H_MSG_TRUE) .

参考其它

copy_objcopy_objCopyObjCopyObjCopyObjcopy_obj, obj_to_integerobj_to_integerObjToIntegerObjToIntegerObjToIntegerobj_to_integer, connectionconnectionConnectionConnectionConnectionconnection, set_systemset_systemSetSystemSetSystemSetSystemset_system

模块

Foundation