Skip to content

get_obj_classGetObjClassGetObjClassget_obj_classget_obj_class๐Ÿ”—

Short description๐Ÿ”—

get_obj_classGetObjClassGetObjClassget_obj_classget_obj_class โ€” Name of the class of an image object.

Signature๐Ÿ”—

get_obj_class( object Object, out string Class )void GetObjClass( const HObject& Object, HTuple* Class )static void HOperatorSet.GetObjClass( HObject objectVal, out HTuple classVal )def get_obj_class( object: HObject ) -> Sequence[str]

def get_obj_class_s( object: HObject ) -> strHerror get_obj_class( const Hobject Object, char* Class )

Herror T_get_obj_class( const Hobject Object, Htuple* Class )

HTuple HObject::GetObjClass( ) const

HTuple HObject.GetObjClass( )

Description๐Ÿ”—

get_obj_classGetObjClass returns the name of the corresponding class to each object. The following classes are possible:

  • โ€˜imageโ€™ Object with region (definition domain) and at least one channel.

  • โ€˜regionโ€™ Object with a region without gray values.

  • โ€˜xld_contโ€™ XLD object as contour

  • โ€˜xld_polyโ€™ XLD object as polygon

  • โ€˜xld_parallelโ€™ XLD object with parallel polygons

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๐Ÿ”—

ObjectobjectValobject (input_object) object(-array) โ†’ objectHObjectHObjectHObjectHobject

Image objects to be examined.

ClassclassValclass (output_control) string(-array) โ†’ (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)

Name of class.

Result๐Ÿ”—

If the parameter values are correct the operator get_obj_classGetObjClass returns the value 2 (H_MSG_TRUE). Otherwise an exception is raised.

Combinations with other operators๐Ÿ”—

Combinations

Possible successors

disp_imageDispImage, disp_regionDispRegion, disp_xldDispXld

See also

get_channel_infoGetChannelInfo, count_relationCountRelation

Module๐Ÿ”—

Foundation