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

count_objcount_objcount_objCountObjCountObj (Operator)

Name

count_objcount_objcount_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 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()

int HImage.CountObj()

int HRegion.CountObj()

int HXLD.CountObj()

int HXLDCont.CountObj()

int HXLDPoly.CountObj()

int HXLDPara.CountObj()

int HXLDModPara.CountObj()

int HXLDExtPara.CountObj()

Description

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

Parallelization

Parameters

ObjectsObjectsObjectsObjectsobjects (input_object)  object-array objectHObjectHObjectArrayHObjectXHobject

Objects to be examined.

NumberNumberNumberNumbernumber (output_control)  integer HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Number of objects in the tuple ObjectsObjectsObjectsObjectsobjects.

Complexity

Runtime complexity: O(|ObjectsObjectsObjectsObjectsobjects|).

Result

count_objcount_objcount_objCountObjCountObj returns the value 2 (H_MSG_TRUE).

See also

copy_objcopy_objcopy_objCopyObjCopyObj, obj_to_integerobj_to_integerobj_to_integerObjToIntegerObjToInteger, connectionconnectionconnectionConnectionConnection, set_systemset_systemset_systemSetSystemSetSystem

Module

Foundation


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