Skip to content

get_surface_model_paramGetSurfaceModelParamGetSurfaceModelParamget_surface_model_paramT_get_surface_model_param🔗

説明🔗

get_surface_model_paramGetSurfaceModelParamGetSurfaceModelParamget_surface_model_paramT_get_surface_model_param — サーフェスモデルのパラメーターとプロパティを返す。

書式🔗

get_surface_model_param( surface_model SurfaceModelID, attribute.name GenParamName, out attribute.value GenParamValue )void GetSurfaceModelParam( const HTuple& SurfaceModelID, const HTuple& GenParamName, HTuple* GenParamValue )static void HOperatorSet.GetSurfaceModelParam( HTuple surfaceModelID, HTuple genParamName, out HTuple genParamValue )def get_surface_model_param( surface_model_id: HHandle, gen_param_name: MaybeSequence[str] ) -> Sequence[HTupleElementType]

def get_surface_model_param_s( surface_model_id: HHandle, gen_param_name: MaybeSequence[str] ) -> HTupleElementTypeHerror T_get_surface_model_param( const Htuple SurfaceModelID, const Htuple GenParamName, Htuple* GenParamValue )

HTuple HSurfaceModel::GetSurfaceModelParam( const HTuple& GenParamName ) const

HTuple HSurfaceModel::GetSurfaceModelParam( const HString& GenParamName ) const

HTuple HSurfaceModel::GetSurfaceModelParam( const char* GenParamName ) const

HTuple HSurfaceModel::GetSurfaceModelParam( const wchar_t* GenParamName ) const (Windows only)

HTuple HSurfaceModel.GetSurfaceModelParam( HTuple genParamName )

HTuple HSurfaceModel.GetSurfaceModelParam( string genParamName )

説明🔗

オペレーター get_surface_model_paramGetSurfaceModelParam は、サーフェスモデル SurfaceModelIDsurfaceModelIDsurface_model_id のパラメーターとプロパティを返します。 サーフェスモデルは create_surface_modelCreateSurfaceModel または read_surface_modelReadSurfaceModel で前もって作成しておく必要があります。 値を取得したいプロパティ名を一般パラメーター GenParamNamegenParamNamegen_param_name に渡すことにより、対応する値が GenParamValuegenParamValuegen_param_value に返されます。

GenParamNamegenParamNamegen_param_nameには、以下の値が可能となります。

  • 'diameter'"diameter": モデル点群の境界矩形の対角線。これは軸に平行な境界矩形(boundary box) の対角の長さです(パラメーター 'bounding_box1'"bounding_box1" を参照)。

  • 'center'"center": モデルの中心点。中心点は軸に平行な境界矩形(boundary box)の中心です (パラメーター 'bounding_box1'"bounding_box1" を参照)。

  • 'bounding_box1'"bounding_box1": 全体を包括する軸に平行な最小立方体 (min_x, min_y, min_z, max_x, max_y, max_z)。

  • 'sampled_model'"sampled_model": マッチングのためモデルからサンプリングされた3次元点群。 これは、マッチングのためにモデルサーフェスからサンプリングされたすべての 点を含む ObjectModel3D を返します。

  • 'sampled_pose_refinement'"sampled_pose_refinement": 姿勢修正のためにモデルからサブサンプリングされた3次元モデル点群。 これは、姿勢修正のためにモデルサーフェスからサンプリングされたすべての 点を含む ObjectModel3D を返します。

  • '3d_edges_trained'"3d_edges_trained": サーフェスモデルがエッジサポートサーフェスマッチングを用意していた場合の戻り値。 つまりパラメーター'train_3d_edges'"train_3d_edges"がcreate_surface_modelCreateSurfaceModelで有効になって いた場合。戻り値は、'true'"true" もしくは 'false'"false"。

  • 'view_based_trained'"view_based_trained": サーフェスモデルがサーフェスマッチングの視点に基づいたスコアの計算をサポート しているかどうか、つまり、パラメーター 'train_view_based'"train_view_based" が create_surface_modelCreateSurfaceModel で有効にされているかどうかを 'true'"true" または 'false'"false" で返します。

  • 'camera_parameter'"camera_parameter":

  • 'camera_parameter X'"camera_parameter X": カメラ数Xのカメラパラメーターを返します。(Xはカメラのゼロから始まるインデックスです) 指定されていない場合、Xのデフォルト値はゼロです。(最初のカメラ) カメラのパラメーターはset_surface_model_paramSetSurfaceModelParamによって事前に設定されている 必要があります。

  • 'camera_pose'"camera_pose":

  • 'camera_pose X'"camera_pose X": カメラ数Xのカメラ姿勢を返します。(Xはカメラのゼロから始まるインデックスです。 指定されていない場合、Xのデフォルト値はゼロです。

  • 'symmetry_axis_direction'"symmetry_axis_direction":

  • 'symmetry_axis_origin'"symmetry_axis_origin": それぞれ set_surface_model_paramSetSurfaceModelParam で設定された対称軸 または対称軸原点を返します。

  • 'symmetry_poses'"symmetry_poses": set_surface_model_paramSetSurfaceModelParam で設定された対称姿勢を返します。

  • 'symmetry_poses_all'"symmetry_poses_all": set_surface_model_paramSetSurfaceModelParam で設定された対称姿勢に基づいて set_surface_model_paramSetSurfaceModelParam で作成されたすべての対称姿勢を返します。

  • 'pose_restriction_reference_pose'"pose_restriction_reference_pose": set_surface_model_paramSetSurfaceModelParam で設定された参照姿勢を返し、 設定されていない場合に空のTupleを返します。

  • 'pose_restriction_max_angle_diff'"pose_restriction_max_angle_diff": 参照姿勢と見つかったポーズの間の最大の偏差角度の差をラジアンで返します。 設定されていない場合に空のTupleを返します。

  • 'pose_restriction_allowed_axis_direction'"pose_restriction_allowed_axis_direction":

  • 'pose_restriction_allowed_axis_origin'"pose_restriction_allowed_axis_origin": それぞれ set_surface_model_paramSetSurfaceModelParamで設定された、 許容された回転軸とその原点を返します。軸が設定されていない場合、空のTupleを返します。

  • 'pose_restriction_filter_final_poses_only'"pose_restriction_filter_final_poses_only": 最終的なポーズのみがフィルターされていた場合に、'true'"true"を返します。 マッチング処理の間にポーズがフィルターされている場合に 'false'"false" を返します(初期値)。

  • 'self_similar_poses_trained'"self_similar_poses_trained": ほぼ対称的な自己相似(self-similar)の姿勢に関して最適化したサーフェスモデルが 準備されているかどうか、つまり、パラメーター'train_self_similar_poses'"train_self_similar_poses" がcreate_surface_modelCreateSurfaceModelで有効にされているかどうかを返します。 'true'"true"または'false'"false"が返されます。

  • 'sampled_self_similarity'"sampled_self_similarity": 自己相似の姿勢の検索用にサンプリングされたモデルの三次元座標を含む ObjectModel3Dを返します。

  • 'self_similar_poses'"self_similar_poses": オブジェクトが自己相似である、つまりほぼ対称である姿勢を返します。 パラメータ'train_self_similar_poses'"train_self_similar_poses"がcreate_surface_modelCreateSurfaceModel で有効になっていない場合、空のTupleが返されます。

  • 'self_similar_poses_models'"self_similar_poses_models": 元のモデルのコピーを含む、'self_similar_poses'"self_similar_poses"により出力される姿勢に 変換されたObjectModel3DのTupleを返します。 これにより、自己相似の姿勢を目視で確認することが可能です。 このパラメーターは、有効化したパラメーター'train_self_similar_poses'"train_self_similar_poses"を 用いてサーフェスモデルが作成された場合にのみ、使用できます。

実行情報🔗

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

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

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

パラメーター🔗

SurfaceModelIDsurfaceModelIDsurface_model_id (input_control) surface_model → (handle)HTuple (HHandle)HSurfaceModel, HTuple (IntPtr)HHandleHtuple (handle)

サーフェスモデルのハンドル

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

パラメーター名

初期値: 'diameter'"diameter"
値のリスト: '3d_edges_trained', 'bounding_box1', 'camera_parameter', 'camera_pose', 'center', 'diameter', 'pose_restriction_allowed_axis_direction', 'pose_restriction_allowed_axis_origin', 'pose_restriction_filter_final_poses_only', 'pose_restriction_max_angle_diff', 'pose_restriction_reference_pose', 'sampled_model', 'sampled_pose_refinement', 'sampled_self_similarity', 'self_similar_poses', 'self_similar_poses_models', 'self_similar_poses_trained', 'symmetry_axis_direction', 'symmetry_axis_origin', 'symmetry_poses', 'symmetry_poses_all', 'view_based_trained'"3d_edges_trained", "bounding_box1", "camera_parameter", "camera_pose", "center", "diameter", "pose_restriction_allowed_axis_direction", "pose_restriction_allowed_axis_origin", "pose_restriction_filter_final_poses_only", "pose_restriction_max_angle_diff", "pose_restriction_reference_pose", "sampled_model", "sampled_pose_refinement", "sampled_self_similarity", "self_similar_poses", "self_similar_poses_models", "self_similar_poses_trained", "symmetry_axis_direction", "symmetry_axis_origin", "symmetry_poses", "symmetry_poses_all", "view_based_trained"

GenParamValuegenParamValuegen_param_value (output_control) attribute.value(-array) → (real / string / integer / handle)HTuple (double / HString / Hlong / HHandle)HTuple (double / string / int / long / HHandle)Sequence[HTupleElementType]Htuple (double / char* / Hlong / handle)

パラメーター値

結果🔗

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

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

組み合わせ

前処理の候補

create_surface_modelCreateSurfaceModel, read_surface_modelReadSurfaceModel

後処理の候補

find_surface_modelFindSurfaceModel, refine_surface_model_poseRefineSurfaceModelPose, write_surface_modelWriteSurfaceModel

関連項目

create_surface_modelCreateSurfaceModel, set_surface_model_paramSetSurfaceModelParam

モジュール🔗

3D Metrology