get_generic_shape_model_objectT_get_generic_shape_model_objectGetGenericShapeModelObjectGetGenericShapeModelObjectget_generic_shape_model_object (算子)

名称

get_generic_shape_model_objectT_get_generic_shape_model_objectGetGenericShapeModelObjectGetGenericShapeModelObjectget_generic_shape_model_object — 获取形状模型的图标对象。

签名

get_generic_shape_model_object( : Object : ModelID, GenParamName : )

Herror T_get_generic_shape_model_object(Hobject* Object, const Htuple ModelID, const Htuple GenParamName)

void GetGenericShapeModelObject(HObject* Object, const HTuple& ModelID, const HTuple& GenParamName)

HObject HShapeModel::GetGenericShapeModelObject(const HTuple& GenParamName) const

static void HOperatorSet.GetGenericShapeModelObject(out HObject objectVal, HTuple modelID, HTuple genParamName)

HObject HShapeModel.GetGenericShapeModelObject(HTuple genParamName)

def get_generic_shape_model_object(model_id: HHandle, gen_param_name: Sequence[str]) -> HObject

描述

算子 get_generic_shape_model_objectget_generic_shape_model_objectGetGenericShapeModelObjectGetGenericShapeModelObjectGetGenericShapeModelObjectget_generic_shape_model_object reads out objects of the shape model ModelIDModelIDModelIDModelIDmodelIDmodel_id and returns them in ObjectObjectObjectObjectobjectValobject

GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name specifies which iconic object will be returned. The following values are possible:

'clutter_region'"clutter_region""clutter_region""clutter_region""clutter_region""clutter_region"

The clutter region of the shape model.

'contours'"contours""contours""contours""contours""contours"

Representation of the shape model ModelIDModelIDModelIDModelIDmodelIDmodel_id for the bottom-most pyramid level as XLD contours. Thereby the contour is translated so that the origin of the model with the coordinates 'origin_row'"origin_row""origin_row""origin_row""origin_row""origin_row" and 'origin_column'"origin_column""origin_column""origin_column""origin_column""origin_column" (see set_generic_shape_model_paramset_generic_shape_model_paramSetGenericShapeModelParamSetGenericShapeModelParamSetGenericShapeModelParamset_generic_shape_model_param) is located at the origin of the pixel centered HALCON standard coordinate system (see 变换 / 二维变换). The contours can be used, for example, to visualize the found instances of the model in an image.

执行信息

参数

ObjectObjectObjectObjectobjectValobject (输出对象)  (multichannel-)object(-array) objectHObjectHObjectHObjectHobject *

Iconic object to be returned.

ModelIDModelIDModelIDModelIDmodelIDmodel_id (输入控制)  shape_model HShapeModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

形状模型的句柄。

GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name (输入控制)  string-array HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Parameter names.

默认值: 'clutter_region' "clutter_region" "clutter_region" "clutter_region" "clutter_region" "clutter_region"

值列表: 'clutter_region'"clutter_region""clutter_region""clutter_region""clutter_region""clutter_region", 'contours'"contours""contours""contours""contours""contours"

结果

如果参数有效,算子 get_generic_shape_model_objectget_generic_shape_model_objectGetGenericShapeModelObjectGetGenericShapeModelObjectGetGenericShapeModelObjectget_generic_shape_model_object 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。

可能的前趋

create_generic_shape_modelcreate_generic_shape_modelCreateGenericShapeModelCreateGenericShapeModelCreateGenericShapeModelcreate_generic_shape_model, set_generic_shape_model_objectset_generic_shape_model_objectSetGenericShapeModelObjectSetGenericShapeModelObjectSetGenericShapeModelObjectset_generic_shape_model_object, train_generic_shape_modeltrain_generic_shape_modelTrainGenericShapeModelTrainGenericShapeModelTrainGenericShapeModeltrain_generic_shape_model

模块

匹配