Skip to content

get_component_model_paramsGetComponentModelParamsGetComponentModelParamsget_component_model_paramsT_get_component_model_params🔗

Short description🔗

get_component_model_paramsGetComponentModelParamsGetComponentModelParamsget_component_model_paramsT_get_component_model_params — Return the parameters of a component model.

Warning🔗

get_component_model_paramsGetComponentModelParams is obsolete and is only provided for reasons of backward compatibility. The operator will be removed with HALCON 26.11.

Signature🔗

get_component_model_params( component_model ComponentModelID, out real MinScoreComp, out integer RootRanking, out shape_model ShapeModelIDs )void GetComponentModelParams( const HTuple& ComponentModelID, HTuple* MinScoreComp, HTuple* RootRanking, HTuple* ShapeModelIDs )static void HOperatorSet.GetComponentModelParams( HTuple componentModelID, out HTuple minScoreComp, out HTuple rootRanking, out HTuple 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]Herror T_get_component_model_params( 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

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

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

Description🔗

The operator get_component_model_paramsGetComponentModelParams returns the parameters of the component model ComponentModelIDcomponentModelIDcomponent_model_id. In particular, this output can be used to check the parameters RootRankingrootRankingroot_ranking and MinScoreCompminScoreCompmin_score_comp after reading the component model with read_component_modelReadComponentModel. Additionally, the operator returns the shape model IDs ShapeModelIDsshapeModelIDsshape_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 ComponentModelIDcomponentModelIDcomponent_model_id. The IDs can be used to query their shape model parameters with get_shape_model_paramsGetShapeModelParams.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.

Parameters🔗

ComponentModelIDcomponentModelIDcomponent_model_id (input_control) component_model → (handle)HTuple (HHandle)HComponentModel, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the component model.

MinScoreCompminScoreCompmin_score_comp (output_control) real(-array) → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

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

RootRankingrootRankingroot_ranking (output_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

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

ShapeModelIDsshapeModelIDsshape_model_ids (output_control) shape_model(-array) → (handle)HTuple (HHandle)HShapeModel, HTuple (IntPtr)Sequence[HHandle]Htuple (handle)

Handles of the shape models of the individual model components.

Result🔗

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

Module🔗

Matching