Skip to content

set_deformable_model_paramSetDeformableModelParamSetDeformableModelParamset_deformable_model_paramT_set_deformable_model_param🔗

説明🔗

set_deformable_model_paramSetDeformableModelParamSetDeformableModelParamset_deformable_model_paramT_set_deformable_model_param — 可変形状サーチモデルに指定したパラメーターを設定する。

書式🔗

set_deformable_model_param( deformable_model ModelID, attribute.name GenParamName, attribute.value GenParamValue )void SetDeformableModelParam( const HTuple& ModelID, const HTuple& GenParamName, const HTuple& GenParamValue )static void HOperatorSet.SetDeformableModelParam( HTuple modelID, HTuple genParamName, HTuple genParamValue )def set_deformable_model_param( model_id: HHandle, gen_param_name: Sequence[str], gen_param_value: Sequence[Union[float, int, str]] ) -> None

Herror T_set_deformable_model_param( const Htuple ModelID, const Htuple GenParamName, const Htuple GenParamValue )

void HDeformableModel::SetDeformableModelParam( const HTuple& GenParamName, const HTuple& GenParamValue ) const

void HDeformableModel.SetDeformableModelParam( HTuple genParamName, HTuple genParamValue )

説明🔗

オペレーター set_deformable_model_paramSetDeformableModelParam は可変形状サーチモ デル ModelIDmodelIDmodel_id で選択パラメーター GenParamNamegenParamNamegen_param_name を 設定します。以下のパラメーターを修正することができます。

'min_contrast'"min_contrast"

可変形状サーチモデル ModelIDmodelIDmodel_id に検索画像にあるオブジェクト の最小コントラストを設定します。 その結果、例えば、create_planar_uncalib_deformable_modelCreatePlanarUncalibDeformableModel を使用して設定された元の 'min_contrast'"min_contrast" の値が可変形状 サーチモデルモデル ModelIDmodelIDmodel_id 用に上書きされます。可変形状 サーチモデルモデル ModelIDmodelIDmodel_id はファイルから読み込まれ、この ファイルも変更されると、オペレーター set_deformable_model_paramSetDeformableModelParam の実行後に可変形状サーチモデル モデル ModelIDmodelIDmodel_id を再度ファイルに書き込む必要があることに注 意してください。

'get_deformable_model_contours_coord_system'"get_deformable_model_contours_coord_system"

オペレーター get_deformable_model_contoursGetDeformableModelContours が実行されるとき XLD オブジェクトが返される座標系を設定します。 'world'"world" が指定されると、XLD オブジェクトはメートル単位の 世界座標系で返されます。これはキャリブレーションを適用する場合のみ可能 であることにご注意してください。 'image'"image" が指定されると、XLD オブジェクトはピクセル単位の 画像座標系で返されます。キャリブレーションが適用されている場合 この座標系は補正された画像座標系に対応します。補正された画像座標系とは 補正されたカメラパラメーターを使用して、change_radial_distortion_imageChangeRadialDistortionImage により得られる画像座標系のことです。補正されたカメラパラメーターは get_deformable_model_paramsGetDeformableModelParams により照会することができます。 モデルが create_planar_calib_deformable_model_xldCreatePlanarCalibDeformableModelXld で生成された場合 'get_deformable_model_contours_coord_system'"get_deformable_model_contours_coord_system" の値は初期設定で 'world'"world" となります。その他の場合では、'image'"image" となります。

実行情報🔗

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

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

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

このオペレータは以下の入力パラメータの状態を変更します :

このパラメータの値は外部同期なしには複数スレッド間で共有されません。

パラメーター🔗

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)Sequence[str]Htuple (char*)

パラメーター名

値のリスト: 'get_deformable_model_contours_coord_system', 'min_contrast'"get_deformable_model_contours_coord_system", "min_contrast"

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

パラメーター値

推奨値: 5, 6, 7, 8, 9, 10, 'image', 'world'5, 6, 7, 8, 9, 10, "image", "world"

結果🔗

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

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

組み合わせ

前処理の候補

create_planar_uncalib_deformable_modelCreatePlanarUncalibDeformableModel, create_planar_calib_deformable_modelCreatePlanarCalibDeformableModel, create_local_deformable_modelCreateLocalDeformableModel, read_deformable_modelReadDeformableModel

後処理の候補

find_planar_uncalib_deformable_modelFindPlanarUncalibDeformableModel, find_planar_calib_deformable_modelFindPlanarCalibDeformableModel

関連項目

get_deformable_model_contoursGetDeformableModelContours, get_deformable_model_paramsGetDeformableModelParams

モジュール🔗

Matching