get_component_model_paramsT_get_component_model_paramsGetComponentModelParamsGetComponentModelParamsget_component_model_params (算子)

名称

get_component_model_paramsT_get_component_model_paramsGetComponentModelParamsGetComponentModelParamsget_component_model_params — 返回组件模型的参数。

签名

get_component_model_params( : : ComponentModelID : MinScoreComp, RootRanking, ShapeModelIDs)

Herror T_get_component_model_params(const Htuple ComponentModelID, Htuple* MinScoreComp, Htuple* RootRanking, Htuple* ShapeModelIDs)

void GetComponentModelParams(const HTuple& ComponentModelID, HTuple* MinScoreComp, HTuple* RootRanking, HTuple* ShapeModelIDs)

HTuple HComponentModel::GetComponentModelParams(HTuple* RootRanking, HShapeModelArray* ShapeModelIDs) const

double HComponentModel::GetComponentModelParams(Hlong* RootRanking, HShapeModel* ShapeModelIDs) const

static void HOperatorSet.GetComponentModelParams(HTuple componentModelID, out HTuple minScoreComp, out HTuple rootRanking, out HTuple shapeModelIDs)

HTuple HComponentModel.GetComponentModelParams(out HTuple rootRanking, out HShapeModel[] shapeModelIDs)

double HComponentModel.GetComponentModelParams(out int rootRanking, out HShapeModel shapeModelIDs)

def get_component_model_params(component_model_id: HHandle) -> Tuple[Sequence[float], Sequence[int], Sequence[HHandle]]

def get_component_model_params_s(component_model_id: HHandle) -> Tuple[float, int, HHandle]

描述

算子 get_component_model_paramsget_component_model_paramsGetComponentModelParamsGetComponentModelParamsGetComponentModelParamsget_component_model_params returns the parameters of the component model ComponentModelIDComponentModelIDComponentModelIDComponentModelIDcomponentModelIDcomponent_model_id. In particular, this output can be used to check the parameters RootRankingRootRankingRootRankingRootRankingrootRankingroot_ranking and MinScoreCompMinScoreCompMinScoreCompMinScoreCompminScoreCompmin_score_comp after reading the component model with read_component_modelread_component_modelReadComponentModelReadComponentModelReadComponentModelread_component_model。Additionally, the operator returns the shape model IDs ShapeModelIDsShapeModelIDsShapeModelIDsShapeModelIDsshapeModelIDsshape_model_ids of the model components. The order of the returned shape model IDs corresponds to the indices of the components within the component model ComponentModelIDComponentModelIDComponentModelIDComponentModelIDcomponentModelIDcomponent_model_id. The IDs can be used to query their shape model parameters with get_shape_model_paramsget_shape_model_paramsGetShapeModelParamsGetShapeModelParamsGetShapeModelParamsget_shape_model_params

执行信息

此算子返回一个句柄。请注意,即使该句柄被用作特定算子的输入参数,这些算子仍可能改变此句柄类型的实例状态。

参数

ComponentModelIDComponentModelIDComponentModelIDComponentModelIDcomponentModelIDcomponent_model_id (输入控制)  component_model HComponentModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the component model.

MinScoreCompMinScoreCompMinScoreCompMinScoreCompminScoreCompmin_score_comp (输出控制)  real(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Minimum score of the instances of the components to be found.

RootRankingRootRankingRootRankingRootRankingrootRankingroot_ranking (输出控制)  integer(-array) HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Ranking of the model components expressing their suitability to act as root component.

ShapeModelIDsShapeModelIDsShapeModelIDsShapeModelIDsshapeModelIDsshape_model_ids (输出控制)  shape_model(-array) HShapeModel, HTupleSequence[HHandle]HTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handles of the shape models of the individual model components.

示例(HDevelop)

read_component_model ('pliers.cbm', ComponentModelID)
get_component_model_params (ComponentModelID, MinScoreComp, RootRanking, \
                            ShapeModelIDs)
for i := 0 to |ShapeModelIDs|-1 by 1
    get_generic_shape_model_param (ShapeModelIDs[i], 'min_score', \
    GenParamValue)
endfor

结果

If the handle of the component model is valid, the operator get_component_model_paramsget_component_model_paramsGetComponentModelParamsGetComponentModelParamsGetComponentModelParamsget_component_model_params 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。

可能的前趋

create_trained_component_modelcreate_trained_component_modelCreateTrainedComponentModelCreateTrainedComponentModelCreateTrainedComponentModelcreate_trained_component_model, create_component_modelcreate_component_modelCreateComponentModelCreateComponentModelCreateComponentModelcreate_component_model

另见

get_generic_shape_model_paramget_generic_shape_model_paramGetGenericShapeModelParamGetGenericShapeModelParamGetGenericShapeModelParamget_generic_shape_model_param

模块

匹配