Skip to content

refine_deformable_surface_modelRefineDeformableSurfaceModelRefineDeformableSurfaceModelrefine_deformable_surface_modelT_refine_deformable_surface_model🔗

説明🔗

refine_deformable_surface_modelRefineDeformableSurfaceModelRefineDeformableSurfaceModelrefine_deformable_surface_modelT_refine_deformable_surface_model — 3D シーンにおける可変形状サーフェスモデルの位置および変形を補正する。

書式🔗

refine_deformable_surface_model( deformable_surface_model DeformableSurfaceModel, object_model_3d ObjectModel3D, real RelSamplingDistance, object_model_3d InitialDeformationObjectModel3D, attribute.name GenParamName, attribute.value GenParamValue, out real Score, out deformable_surface_matching_result DeformableSurfaceMatchingResult )void RefineDeformableSurfaceModel( const HTuple& DeformableSurfaceModel, const HTuple& ObjectModel3D, const HTuple& RelSamplingDistance, const HTuple& InitialDeformationObjectModel3D, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* Score, HTuple* DeformableSurfaceMatchingResult )static void HOperatorSet.RefineDeformableSurfaceModel( HTuple deformableSurfaceModel, HTuple objectModel3D, HTuple relSamplingDistance, HTuple initialDeformationObjectModel3D, HTuple genParamName, HTuple genParamValue, out HTuple score, out HTuple deformableSurfaceMatchingResult )def refine_deformable_surface_model( deformable_surface_model: HHandle, object_model_3d: HHandle, rel_sampling_distance: float, initial_deformation_object_model_3d: HHandle, gen_param_name: MaybeSequence[str], gen_param_value: MaybeSequence[Union[str, float, int]] ) -> Tuple[Sequence[float], Sequence[HHandle]]

def refine_deformable_surface_model_s( deformable_surface_model: HHandle, object_model_3d: HHandle, rel_sampling_distance: float, initial_deformation_object_model_3d: HHandle, gen_param_name: MaybeSequence[str], gen_param_value: MaybeSequence[Union[str, float, int]] ) -> Tuple[float, HHandle]Herror T_refine_deformable_surface_model( const Htuple DeformableSurfaceModel, const Htuple ObjectModel3D, const Htuple RelSamplingDistance, const Htuple InitialDeformationObjectModel3D, const Htuple GenParamName, const Htuple GenParamValue, Htuple* Score, Htuple* DeformableSurfaceMatchingResult )

HTuple HObjectModel3D::RefineDeformableSurfaceModel( const HDeformableSurfaceModel& DeformableSurfaceModel, double RelSamplingDistance, const HObjectModel3D& InitialDeformationObjectModel3D, const HTuple& GenParamName, const HTuple& GenParamValue, HDeformableSurfaceMatchingResultArray* DeformableSurfaceMatchingResult ) const

double HObjectModel3D::RefineDeformableSurfaceModel( const HDeformableSurfaceModel& DeformableSurfaceModel, double RelSamplingDistance, const HObjectModel3D& InitialDeformationObjectModel3D, const HString& GenParamName, const HString& GenParamValue, HDeformableSurfaceMatchingResult* DeformableSurfaceMatchingResult ) const

double HObjectModel3D::RefineDeformableSurfaceModel( const HDeformableSurfaceModel& DeformableSurfaceModel, double RelSamplingDistance, const HObjectModel3D& InitialDeformationObjectModel3D, const char* GenParamName, const char* GenParamValue, HDeformableSurfaceMatchingResult* DeformableSurfaceMatchingResult ) const

double HObjectModel3D::RefineDeformableSurfaceModel( const HDeformableSurfaceModel& DeformableSurfaceModel, double RelSamplingDistance, const HObjectModel3D& InitialDeformationObjectModel3D, const wchar_t* GenParamName, const wchar_t* GenParamValue, HDeformableSurfaceMatchingResult* DeformableSurfaceMatchingResult ) const (Windows only)

HTuple HDeformableSurfaceModel::RefineDeformableSurfaceModel( const HObjectModel3D& ObjectModel3D, double RelSamplingDistance, const HObjectModel3D& InitialDeformationObjectModel3D, const HTuple& GenParamName, const HTuple& GenParamValue, HDeformableSurfaceMatchingResultArray* DeformableSurfaceMatchingResult ) const

double HDeformableSurfaceModel::RefineDeformableSurfaceModel( const HObjectModel3D& ObjectModel3D, double RelSamplingDistance, const HObjectModel3D& InitialDeformationObjectModel3D, const HString& GenParamName, const HString& GenParamValue, HDeformableSurfaceMatchingResult* DeformableSurfaceMatchingResult ) const

double HDeformableSurfaceModel::RefineDeformableSurfaceModel( const HObjectModel3D& ObjectModel3D, double RelSamplingDistance, const HObjectModel3D& InitialDeformationObjectModel3D, const char* GenParamName, const char* GenParamValue, HDeformableSurfaceMatchingResult* DeformableSurfaceMatchingResult ) const

double HDeformableSurfaceModel::RefineDeformableSurfaceModel( const HObjectModel3D& ObjectModel3D, double RelSamplingDistance, const HObjectModel3D& InitialDeformationObjectModel3D, const wchar_t* GenParamName, const wchar_t* GenParamValue, HDeformableSurfaceMatchingResult* DeformableSurfaceMatchingResult ) const (Windows only)

static HTuple HDeformableSurfaceMatchingResult::RefineDeformableSurfaceModel( const HDeformableSurfaceModel& DeformableSurfaceModel, const HObjectModel3D& ObjectModel3D, double RelSamplingDistance, const HObjectModel3D& InitialDeformationObjectModel3D, const HTuple& GenParamName, const HTuple& GenParamValue, HDeformableSurfaceMatchingResultArray* DeformableSurfaceMatchingResult )

double HDeformableSurfaceMatchingResult::RefineDeformableSurfaceModel( const HDeformableSurfaceModel& DeformableSurfaceModel, const HObjectModel3D& ObjectModel3D, double RelSamplingDistance, const HObjectModel3D& InitialDeformationObjectModel3D, const HString& GenParamName, const HString& GenParamValue )

double HDeformableSurfaceMatchingResult::RefineDeformableSurfaceModel( const HDeformableSurfaceModel& DeformableSurfaceModel, const HObjectModel3D& ObjectModel3D, double RelSamplingDistance, const HObjectModel3D& InitialDeformationObjectModel3D, const char* GenParamName, const char* GenParamValue )

double HDeformableSurfaceMatchingResult::RefineDeformableSurfaceModel( const HDeformableSurfaceModel& DeformableSurfaceModel, const HObjectModel3D& ObjectModel3D, double RelSamplingDistance, const HObjectModel3D& InitialDeformationObjectModel3D, const wchar_t* GenParamName, const wchar_t* GenParamValue ) (Windows only)

HTuple HObjectModel3D.RefineDeformableSurfaceModel( HDeformableSurfaceModel deformableSurfaceModel, double relSamplingDistance, HObjectModel3D initialDeformationObjectModel3D, HTuple genParamName, HTuple genParamValue, out HDeformableSurfaceMatchingResult[] deformableSurfaceMatchingResult )

double HObjectModel3D.RefineDeformableSurfaceModel( HDeformableSurfaceModel deformableSurfaceModel, double relSamplingDistance, HObjectModel3D initialDeformationObjectModel3D, string genParamName, string genParamValue, out HDeformableSurfaceMatchingResult deformableSurfaceMatchingResult )

HTuple HDeformableSurfaceModel.RefineDeformableSurfaceModel( HObjectModel3D objectModel3D, double relSamplingDistance, HObjectModel3D initialDeformationObjectModel3D, HTuple genParamName, HTuple genParamValue, out HDeformableSurfaceMatchingResult[] deformableSurfaceMatchingResult )

double HDeformableSurfaceModel.RefineDeformableSurfaceModel( HObjectModel3D objectModel3D, double relSamplingDistance, HObjectModel3D initialDeformationObjectModel3D, string genParamName, string genParamValue, out HDeformableSurfaceMatchingResult deformableSurfaceMatchingResult )

static HTuple HDeformableSurfaceMatchingResult.RefineDeformableSurfaceModel( HDeformableSurfaceModel deformableSurfaceModel, HObjectModel3D objectModel3D, double relSamplingDistance, HObjectModel3D initialDeformationObjectModel3D, HTuple genParamName, HTuple genParamValue, out HDeformableSurfaceMatchingResult[] deformableSurfaceMatchingResult )

double HDeformableSurfaceMatchingResult.RefineDeformableSurfaceModel( HDeformableSurfaceModel deformableSurfaceModel, HObjectModel3D objectModel3D, double relSamplingDistance, HObjectModel3D initialDeformationObjectModel3D, string genParamName, string genParamValue )

説明🔗

オペレーター refine_deformable_surface_modelRefineDeformableSurfaceModel は、3D シーン ObjectModel3DobjectModel3Dobject_model_3d におけるサーフェスモデル DeformableSurfaceModeldeformableSurfaceModeldeformable_surface_model の InitialDeformationObjectModel3DinitialDeformationObjectModel3Dinitial_deformation_object_model_3d で指定された初期位置お よび変形を補正します。 可変形状サーフェスモデル DeformableSurfaceModeldeformableSurfaceModeldeformable_surface_model は、 create_deformable_surface_modelCreateDeformableSurfaceModel などを使用して前もって作成 しておく必要があります。

refine_deformable_surface_modelRefineDeformableSurfaceModel は、シーン内のオブジェクトの位置お よび変形がほぼわかっており、その位置を補正する必要がある場合に役立ちます。 出力パラメーターの追加情報については、 find_deformable_surface_modelFindDeformableSurfaceModel を参照してください。

InitialDeformationObjectModel3DinitialDeformationObjectModel3Dinitial_deformation_object_model_3d には、 get_deformable_surface_model_paramGetDeformableSurfaceModelParam で取得されたサンプリン グされた変形モデルと同じ数の点を同じ順序で含める必要があります。

補正した結果のスコアは Scorescorescore に返されます。そして、可変サーフェスマッチング の結果ハンドルは DeformableSurfaceMatchingResultdeformableSurfaceMatchingResultdeformable_surface_matching_result に返されます。 変形したモデルや参照点の位置など結果の詳細については、オペレータ get_deformable_surface_matching_resultGetDeformableSurfaceMatchingResult で、結果ハンドル を使用して問いあわせることができます。

スコアは、00 と 11 の間で正規化され、シーンに表示さ れるモデル表面の量を表します。11 の値は完全マッチングを表 します。

パラメーター GenParamNamegenParamNamegen_param_name とパラメーター GenParamValuegenParamValuegen_param_value は一般的なパラメーターを設定するために使われます。

パラメーターの詳細については、 find_deformable_surface_modelFindDeformableSurfaceModel のドキュメントを参照してくだ さい。

実行情報🔗

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

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

  • 内部データレベルで自動的に並列演算処理を実施

このオペレータはハンドルを返します。このハンドルタイプのインスタンスの状態は、特定のオペレータにおいては、入力パラメータとして使われている場合であっても変更されることがあります。

このオペレータは、タイムアウトと割り込みのキャンセルをサポートします。

パラメーター🔗

DeformableSurfaceModeldeformableSurfaceModeldeformable_surface_model (input_control) deformable_surface_model → (handle)HTuple (HHandle)HDeformableSurfaceModel, HTuple (IntPtr)HHandleHtuple (handle)

可変形状サーフェスモデルのハンドル

ObjectModel3DobjectModel3Dobject_model_3d (input_control) object_model_3d → (handle)HTuple (HHandle)HObjectModel3D, HTuple (IntPtr)HHandleHtuple (handle)

シーンを含む 3D オブジェクトモデ ルのハンドル

RelSamplingDistancerelSamplingDistancerel_sampling_distance (input_control) real → (real)HTuple (double)HTuple (double)floatHtuple (double)

シーンの相対的なサンプリング距離

初期値: 0.050.05
推奨値: 0.1, 0.07, 0.05, 0.04, 0.030.1, 0.07, 0.05, 0.04, 0.03
制限: 0 < RelSamplingDistance < 1

InitialDeformationObjectModel3DinitialDeformationObjectModel3Dinitial_deformation_object_model_3d (input_control) object_model_3d → (handle)HTuple (HHandle)HObjectModel3D, HTuple (IntPtr)HHandleHtuple (handle)

3D オブジェクトモデルの初期の 変形

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

一般パラメーターの名前

初期値: [][]
値のリスト: 'pose_ref_dist_threshold_abs', 'pose_ref_dist_threshold_rel', 'pose_ref_num_steps', 'pose_ref_scoring_dist_abs', 'pose_ref_scoring_dist_rel', 'scene_normal_computation'"pose_ref_dist_threshold_abs", "pose_ref_dist_threshold_rel", "pose_ref_num_steps", "pose_ref_scoring_dist_abs", "pose_ref_scoring_dist_rel", "scene_normal_computation"

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

一般パラメーターの値

初期値: [][]
推奨値: 'fast', 'mls', 0, 1, 10, 25, 50, 0.05, 0.1, 0.25, 0.3, 0.05, 0.03, 0.005"fast", "mls", 0, 1, 10, 25, 50, 0.05, 0.1, 0.25, 0.3, 0.05, 0.03, 0.005

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

補正されたモデルのスコア

DeformableSurfaceMatchingResultdeformableSurfaceMatchingResultdeformable_surface_matching_result (output_control) deformable_surface_matching_result(-array) → (handle)HTuple (HHandle)HDeformableSurfaceMatchingResult, HTuple (IntPtr)Sequence[HHandle]Htuple (handle)

マッチング結果のハンドル

結果🔗

refine_deformable_surface_modelRefineDeformableSurfaceModel は、すべてのパラメーターが 正しい場合に 2 (H_MSG_TRUE) を返します。必要に応じて、例外が発生します。

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

組み合わせ

前処理の候補

read_object_model_3dReadObjectModel3d, xyz_to_object_model_3dXyzToObjectModel3d, get_object_model_3d_paramsGetObjectModel3dParams, read_deformable_surface_modelReadDeformableSurfaceModel, create_deformable_surface_modelCreateDeformableSurfaceModel, get_deformable_surface_model_paramGetDeformableSurfaceModelParam, find_deformable_surface_modelFindDeformableSurfaceModel

後処理の候補

get_deformable_surface_matching_resultGetDeformableSurfaceMatchingResult, clear_deformable_surface_matching_resultClearDeformableSurfaceMatchingResult, clear_object_model_3dClearObjectModel3d

他の選択候補

find_deformable_surface_modelFindDeformableSurfaceModel

関連項目

create_deformable_surface_modelCreateDeformableSurfaceModel, find_deformable_surface_modelFindDeformableSurfaceModel

モジュール🔗

3D Metrology