Skip to content

get_deformable_model_paramsGetDeformableModelParamsGetDeformableModelParamsget_deformable_model_paramsT_get_deformable_model_params🔗

説明🔗

get_deformable_model_paramsGetDeformableModelParamsGetDeformableModelParamsget_deformable_model_paramsT_get_deformable_model_params — 可変形状サーチモデルのパラメーターを返す。

書式🔗

get_deformable_model_params( deformable_model ModelID, attribute.name GenParamName, out attribute.name GenParamValue )void GetDeformableModelParams( const HTuple& ModelID, const HTuple& GenParamName, HTuple* GenParamValue )static void HOperatorSet.GetDeformableModelParams( HTuple modelID, HTuple genParamName, out HTuple genParamValue )def get_deformable_model_params( model_id: HHandle, gen_param_name: MaybeSequence[str] ) -> Sequence[Union[int, str, float]]

def get_deformable_model_params_s( model_id: HHandle, gen_param_name: MaybeSequence[str] ) -> Union[int, str, float]Herror T_get_deformable_model_params( const Htuple ModelID, const Htuple GenParamName, Htuple* GenParamValue )

HTuple HDeformableModel::GetDeformableModelParams( const HTuple& GenParamName ) const

HTuple HDeformableModel::GetDeformableModelParams( const HString& GenParamName ) const

HTuple HDeformableModel::GetDeformableModelParams( const char* GenParamName ) const

HTuple HDeformableModel::GetDeformableModelParams( const wchar_t* GenParamName ) const (Windows only)

HTuple HDeformableModel.GetDeformableModelParams( HTuple genParamName )

HTuple HDeformableModel.GetDeformableModelParams( string genParamName )

説明🔗

オペレーター get_deformable_model_paramsGetDeformableModelParams は可変形状サーチ モデルのパラメーターを取得し、確認することができます。要求されたプ ロパティの名前は、一般的なパラメーター GenParamNamegenParamNamegen_param_name に渡 され、対応する値は GenParamValuegenParamValuegen_param_value に返されます。

以下のパラメーターを照会できます。

  • 'cam_param'"cam_param": キャリブレーションされた場合に使用するカメラの内部パラメーター。

  • 'cam_param_rect'"cam_param_rect": 補正されたキャリブレーションされた場合に使用するカメラの内部パラメーター。

  • 'reference_pose'"reference_pose": キャリブレーションされた可変形状サーチモデルの参照位置と方向。返 される姿勢はユーザーが提供したモデル平面を表現します。

  • 'model_pose'"model_pose": 可変形状サーチモデルの参照位置と方向。出力される姿勢はモデル生成 に使用される 3 次元測定モデルであり、内部的に使用される姿勢を表 現します。set_deformable_model_originSetDeformableModelOriginで明示的に設定されていない場合、 姿勢はモデルの重心を指します。

  • 'angle_start'"angle_start": モデルの最小回転角度。

  • 'angle_extent'"angle_extent": モデルの回転角度範囲。

  • 'angle_step'"angle_step": モデルの角度ステップ長。

  • 'scale_r_min'"scale_r_min": 行方向のパターンの最小スケール。

  • 'scale_r_max'"scale_r_max": 行方向のパターンの最大スケール。

  • 'scale_r_step'"scale_r_step": 行方向のスケールステップパターン。

  • 'scale_c_min'"scale_c_min": 列方向のパターンの最小スケール。

  • 'scale_c_max'"scale_c_max": 列方向のパターンの最大スケール。

  • 'scale_c_step'"scale_c_step": 列方向のスケールステップパターン。

  • 'num_levels'"num_levels": ユーザー指定のピラミッドレベルの数。

  • 'optimization'"optimization": モデル点数を減らすことによる最適化種別。

  • 'min_size'"min_size": 可変形状サーチモデルのエッジの最小サイズ。

  • 'min_contrast'"min_contrast": 検索画像中の対象の最小コントラスト。

  • 'metric'"metric": マッチ測定基準。

  • 'model_row'"model_row": 放射方向に歪んでいないモデル画像での原点の行座標。

  • 'model_col'"model_col": 放射方向に歪んでいないモデル画像での原点の列座標。

  • 'model_type'"model_type": モデルのタイプ: 'planar_uncalib'"planar_uncalib", 'planar_calib'"planar_calib" または 'local'"local"。

  • 'created_from_xld'"created_from_xld": モデルがXLD または画像のどちらから作成されたか:'created_from_xld'"created_from_xld" または 'created_from_image'"created_from_image"。

  • 'get_deformable_model_contours_coord_system'"get_deformable_model_contours_coord_system": get_deformable_model_contoursGetDeformableModelContours が実行されたときに XLD オブジェクトが返される座標系 ('image'"image" あるいは 'world'"world") 。

パラメーターの詳細については、オペレーター create_planar_uncalib_deformable_modelCreatePlanarUncalibDeformableModel と create_planar_calib_deformable_modelCreatePlanarCalibDeformableModel で、または、 get_deformable_model_contoursGetDeformableModelContours で調べることができます。

パラメーター Contrastcontrastcontrast はモデル生成時に自動的に決定されますが、 get_deformable_model_paramsGetDeformableModelParams を使用して取得することができないことに注意してください。 代わりに、オペレーター determine_deformable_model_paramsDetermineDeformableModelParams を使用することで 値を取得することが可能です。

GenParamNamegenParamNamegen_param_name に必要なパラメーター名をすべて含む tuple を 渡すことで、1 つのオペレーター呼び出しを使用し複数のパラメーター値 を確認することができます。その結果、対応する値をもつ同じ長さの tuple が GenParamValuegenParamValuegen_param_value で返されます。これは 1 つの値のみ 返すパラメーター対して可能です。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

ModelIDmodelIDmodel_id (input_control) deformable_model → (handle)HTuple (HHandle)HDeformableModel, HTuple (IntPtr)HHandleHtuple (handle)

モデルのハンドル

GenParamNamegenParamNamegen_param_name (input_control) attribute.name(-array) → (string)HTuple (HString)HTuple (string)MaybeSequence[str]Htuple (char*)

可変形状サーチモデルを確認する一般パラメーター名

初期値: 'angle_start'"angle_start"
値のリスト: 'angle_extent', 'angle_start', 'angle_step', 'cam_param', 'cam_param_rect', 'created_from_xld', 'get_deformable_model_contours_coord_system', 'metric', 'min_contrast', 'min_size', 'model_col', 'model_pose', 'model_row', 'model_type', 'num_levels', 'optimization', 'reference_pose', 'scale_c_max', 'scale_c_min', 'scale_c_step', 'scale_r_max', 'scale_r_min', 'scale_r_step'"angle_extent", "angle_start", "angle_step", "cam_param", "cam_param_rect", "created_from_xld", "get_deformable_model_contours_coord_system", "metric", "min_contrast", "min_size", "model_col", "model_pose", "model_row", "model_type", "num_levels", "optimization", "reference_pose", "scale_c_max", "scale_c_min", "scale_c_step", "scale_r_max", "scale_r_min", "scale_r_step"

GenParamValuegenParamValuegen_param_value (output_control) attribute.name(-array) → (string / integer / real)HTuple (HString / Hlong / double)HTuple (string / int / long / double)Sequence[Union[int, str, float]]Htuple (char* / Hlong / double)

一般パラメーターの値

結果🔗

パラメーターが有効ならば、オペレーター get_deformable_model_paramsGetDeformableModelParams は値 2 (H_MSG_TRUE) を返します。必要に応 じて、例外処理が発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

create_planar_uncalib_deformable_modelCreatePlanarUncalibDeformableModel, create_planar_calib_deformable_modelCreatePlanarCalibDeformableModel, create_local_deformable_modelCreateLocalDeformableModel

後処理の候補

find_planar_uncalib_deformable_modelFindPlanarUncalibDeformableModel, find_planar_calib_deformable_modelFindPlanarCalibDeformableModel

関連項目

set_deformable_model_paramSetDeformableModelParam

モジュール🔗

Matching