ClassesClassesClassesClasses | | | | Operators

get_component_model_paramsget_component_model_paramsGetComponentModelParamsget_component_model_paramsGetComponentModelParamsGetComponentModelParams (Operator)

Name

get_component_model_paramsget_component_model_paramsGetComponentModelParamsget_component_model_paramsGetComponentModelParamsGetComponentModelParams — Return the parameters of a component model.

Signature

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

Herror get_component_model_params(const Hlong ComponentModelID, double* MinScoreComp, Hlong* RootRanking, Hlong* ShapeModelIDs)

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

Herror get_component_model_params(const HTuple& ComponentModelID, double* MinScoreComp, Hlong* RootRanking, Hlong* ShapeModelIDs)

Herror get_component_model_params(const HTuple& ComponentModelID, HTuple* MinScoreComp, HTuple* RootRanking, HTuple* ShapeModelIDs)

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

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

void HOperatorSetX.GetComponentModelParams(
[in] VARIANT ComponentModelID, [out] VARIANT* MinScoreComp, [out] VARIANT* RootRanking, [out] VARIANT* ShapeModelIDs)

VARIANT HComponentModelX.GetComponentModelParams(
[out] VARIANT* RootRanking, [out] IHShapeModelX*ShapeModelIDs)

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)

Description

The operator get_component_model_paramsget_component_model_paramsGetComponentModelParamsget_component_model_paramsGetComponentModelParamsGetComponentModelParams returns the parameters of the component model ComponentModelIDComponentModelIDComponentModelIDComponentModelIDComponentModelIDcomponentModelID. In particular, this output can be used to check the parameters RootRankingRootRankingRootRankingRootRankingRootRankingrootRanking and MinScoreCompMinScoreCompMinScoreCompMinScoreCompMinScoreCompminScoreComp after reading the component model with read_component_modelread_component_modelReadComponentModelread_component_modelReadComponentModelReadComponentModel. Additionally, the operator returns the shape model IDs ShapeModelIDsShapeModelIDsShapeModelIDsShapeModelIDsShapeModelIDsshapeModelIDs of the model components. The order of the returned shape model IDs corresponds to the indices of the components within the component model ComponentModelIDComponentModelIDComponentModelIDComponentModelIDComponentModelIDcomponentModelID. The IDs can be used to query their shape model parameters with get_shape_model_paramsget_shape_model_paramsGetShapeModelParamsget_shape_model_paramsGetShapeModelParamsGetShapeModelParams.

Parallelization

Parameters

ComponentModelIDComponentModelIDComponentModelIDComponentModelIDComponentModelIDcomponentModelID (input_control)  component_model HComponentModel, HTupleHTupleHComponentModel, HTupleHComponentModelX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Handle of the component model.

MinScoreCompMinScoreCompMinScoreCompMinScoreCompMinScoreCompminScoreComp (output_control)  real(-array) HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

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

RootRankingRootRankingRootRankingRootRankingRootRankingrootRanking (output_control)  integer(-array) HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

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

ShapeModelIDsShapeModelIDsShapeModelIDsShapeModelIDsShapeModelIDsshapeModelIDs (output_control)  shape_model(-array) HShapeModel, HTupleHTupleHShapeModel, HTupleHShapeModelX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Handles of the shape models of the individual model components.

Example (HDevelop)

read_component_model ('pliers.cpm', ComponentModelID)
get_component_model_params (ComponentModelID, MinScoreComp, RootRanking, \
                            ShapeModelIDs)
for i := 0 to |ShapeModelIDs|-1 by 1
    get_shape_model_params (ShapeModelIDs[i], NumLevels, AngleStart, \
                            AngleExtent, AngleStep, ScaleMin, ScaleMax, \
                            ScaleStep, Metric, MinContrast)
endfor

Result

If the handle of the component model is valid, the operator get_component_model_paramsget_component_model_paramsGetComponentModelParamsget_component_model_paramsGetComponentModelParamsGetComponentModelParams returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

create_trained_component_modelcreate_trained_component_modelCreateTrainedComponentModelcreate_trained_component_modelCreateTrainedComponentModelCreateTrainedComponentModel, create_component_modelcreate_component_modelCreateComponentModelcreate_component_modelCreateComponentModelCreateComponentModel

See also

get_shape_model_paramsget_shape_model_paramsGetShapeModelParamsget_shape_model_paramsGetShapeModelParamsGetShapeModelParams

Module

Matching


ClassesClassesClassesClasses | | | | Operators