count_obj🔗
Short description🔗
count_obj — Number of objects in a tuple.
Signature🔗
count_obj( object Objects, out integer Number )
Description🔗
The operator count_obj determines for the object parameter
Objects the number of objects it contains.
In this connection it should be noted that object is not the same
as connection component (see connection).
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.
Execution information🔗
Execution information
-
Supports objects on compute devices.
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters🔗
Objects (input_object) object-array → object
Objects to be examined.
Number (output_control) integer → (integer)
Number of objects in the tuple Objects.
Complexity🔗
Runtime complexity: \(O(|\textrm{Objects}|)\).
Result🔗
count_obj returns the value 2 (H_MSG_TRUE).
Combinations with other operators🔗
Module🔗
Foundation