get_component_model_paramsGetComponentModelParamsGetComponentModelParamsget_component_model_paramsT_get_component_model_params
説明
get_component_model_paramsGetComponentModelParamsGetComponentModelParamsget_component_model_paramsT_get_component_model_params — 部品モデルのパラメーターを参照する。
警告
get_component_model_paramsGetComponentModelParamsは現在では使用されず、下位互換性のためだけに提供されます。
このオペレータはHALCON 26.11で削除予定です。
書式
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 )
説明
オペレーター get_component_model_paramsGetComponentModelParams は、部品モデル
ComponentModelIDcomponentModelIDcomponent_model_id のパラメーターを返します。特に、この出力
は read_component_modelReadComponentModel で部品モデルを読み込んだ後にパラ
メーター RootRankingrootRankingroot_ranking と MinScoreCompminScoreCompmin_score_comp をチェック
するために使うことができます。加えて、部品モデルの形状モデルID
ShapeModelIDsshapeModelIDsshape_model_ids を返します。返された形状モデル IDの順序
は、部品モデル ComponentModelIDcomponentModelIDcomponent_model_id 内の部品の順番と一致しま
す。このIDは get_shape_model_paramsGetShapeModelParams で形状モデルのパラ
メーターを要求する際に使うことができます。
実行情報
実行情報
このオペレータはハンドルを返します。このハンドルタイプのインスタンスの状態は、特定のオペレータにおいては、入力パラメータとして使われている場合であっても変更されることがあります。
パラメーター
ComponentModelIDcomponentModelIDcomponent_model_id (input_control) component_model → (handle)HTuple (HHandle)HComponentModel, HTuple (IntPtr)HHandleHtuple (handle)
部品モデルのハンドル
MinScoreCompminScoreCompmin_score_comp (output_control) real(-array) → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)
検出部品の最小スコア
RootRankingrootRankingroot_ranking (output_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)
ルート部品として適しているモデル部品の順位
ShapeModelIDsshapeModelIDsshape_model_ids (output_control) shape_model(-array) → (handle)HTuple (HHandle)HShapeModel, HTuple (IntPtr)Sequence[HHandle]Htuple (handle)
個々の部品の形状モデルのハンドル
結果
部品モデルのハンドルが有効であれば、オペレーター
get_component_model_paramsGetComponentModelParams は、値 2 (H_MSG_TRUE) を返します。必要に
応じて、例外が発生します。
モジュール
Matching