find_surface_model_imageFindSurfaceModelImageFindSurfaceModelImagefind_surface_model_imageT_find_surface_model_image
説明
find_surface_model_imageFindSurfaceModelImageFindSurfaceModelImagefind_surface_model_imageT_find_surface_model_image — 3 次元シーンと画像内の表面モデルに最も一致するものを検出する。
書式
find_surface_model_image( image Image, surface_model SurfaceModelID, object_model_3d ObjectModel3D, real RelSamplingDistance, real KeyPointFraction, real MinScore, string ReturnResultHandle, attribute.name GenParamName, attribute.value GenParamValue, out pose Pose, out real Score, out surface_matching_result SurfaceMatchingResultID )void FindSurfaceModelImage( const HObject& Image, const HTuple& SurfaceModelID, const HTuple& ObjectModel3D, const HTuple& RelSamplingDistance, const HTuple& KeyPointFraction, const HTuple& MinScore, const HTuple& ReturnResultHandle, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* Pose, HTuple* Score, HTuple* SurfaceMatchingResultID )static void HOperatorSet.FindSurfaceModelImage( HObject image, HTuple surfaceModelID, HTuple objectModel3D, HTuple relSamplingDistance, HTuple keyPointFraction, HTuple minScore, HTuple returnResultHandle, HTuple genParamName, HTuple genParamValue, out HTuple pose, out HTuple score, out HTuple surfaceMatchingResultID )def find_surface_model_image( image: HObject, surface_model_id: HHandle, object_model_3d: HHandle, rel_sampling_distance: float, key_point_fraction: float, min_score: MaybeSequence[Union[float, int]], return_result_handle: str, gen_param_name: Sequence[str], gen_param_value: Sequence[Union[str, float, int]] ) -> Tuple[Sequence[Union[float, int]], Sequence[float], Sequence[HHandle]]
def find_surface_model_image_s( image: HObject, surface_model_id: HHandle, object_model_3d: HHandle, rel_sampling_distance: float, key_point_fraction: float, min_score: MaybeSequence[Union[float, int]], return_result_handle: str, gen_param_name: Sequence[str], gen_param_value: Sequence[Union[str, float, int]] ) -> Tuple[Sequence[Union[float, int]], Sequence[float], HHandle]Herror T_find_surface_model_image( const Hobject Image, const Htuple SurfaceModelID, const Htuple ObjectModel3D, const Htuple RelSamplingDistance, const Htuple KeyPointFraction, const Htuple MinScore, const Htuple ReturnResultHandle, const Htuple GenParamName, const Htuple GenParamValue, Htuple* Pose, Htuple* Score, Htuple* SurfaceMatchingResultID )
HPoseArray HObjectModel3D::FindSurfaceModelImage( const HImage& Image, const HSurfaceModel& SurfaceModelID, double RelSamplingDistance, double KeyPointFraction, const HTuple& MinScore, const HString& ReturnResultHandle, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* Score, HSurfaceMatchingResultArray* SurfaceMatchingResultID ) const
HPose HObjectModel3D::FindSurfaceModelImage( const HImage& Image, const HSurfaceModel& SurfaceModelID, double RelSamplingDistance, double KeyPointFraction, double MinScore, const HString& ReturnResultHandle, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* Score, HSurfaceMatchingResult* SurfaceMatchingResultID ) const
HPose HObjectModel3D::FindSurfaceModelImage( const HImage& Image, const HSurfaceModel& SurfaceModelID, double RelSamplingDistance, double KeyPointFraction, double MinScore, const char* ReturnResultHandle, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* Score, HSurfaceMatchingResult* SurfaceMatchingResultID ) const
HPose HObjectModel3D::FindSurfaceModelImage( const HImage& Image, const HSurfaceModel& SurfaceModelID, double RelSamplingDistance, double KeyPointFraction, double MinScore, const wchar_t* ReturnResultHandle, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* Score, HSurfaceMatchingResult* SurfaceMatchingResultID ) const (Windows only)
HPoseArray HSurfaceModel::FindSurfaceModelImage( const HImage& Image, const HObjectModel3D& ObjectModel3D, double RelSamplingDistance, double KeyPointFraction, const HTuple& MinScore, const HString& ReturnResultHandle, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* Score, HSurfaceMatchingResultArray* SurfaceMatchingResultID ) const
HPose HSurfaceModel::FindSurfaceModelImage( const HImage& Image, const HObjectModel3D& ObjectModel3D, double RelSamplingDistance, double KeyPointFraction, double MinScore, const HString& ReturnResultHandle, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* Score, HSurfaceMatchingResult* SurfaceMatchingResultID ) const
HPose HSurfaceModel::FindSurfaceModelImage( const HImage& Image, const HObjectModel3D& ObjectModel3D, double RelSamplingDistance, double KeyPointFraction, double MinScore, const char* ReturnResultHandle, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* Score, HSurfaceMatchingResult* SurfaceMatchingResultID ) const
HPose HSurfaceModel::FindSurfaceModelImage( const HImage& Image, const HObjectModel3D& ObjectModel3D, double RelSamplingDistance, double KeyPointFraction, double MinScore, const wchar_t* ReturnResultHandle, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* Score, HSurfaceMatchingResult* SurfaceMatchingResultID ) const (Windows only)
static HPoseArray HSurfaceMatchingResult::FindSurfaceModelImage( const HImage& Image, const HSurfaceModel& SurfaceModelID, const HObjectModel3D& ObjectModel3D, double RelSamplingDistance, double KeyPointFraction, const HTuple& MinScore, const HString& ReturnResultHandle, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* Score, HSurfaceMatchingResultArray* SurfaceMatchingResultID )
HPose HSurfaceMatchingResult::FindSurfaceModelImage( const HImage& Image, const HSurfaceModel& SurfaceModelID, const HObjectModel3D& ObjectModel3D, double RelSamplingDistance, double KeyPointFraction, double MinScore, const HString& ReturnResultHandle, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* Score )
HPose HSurfaceMatchingResult::FindSurfaceModelImage( const HImage& Image, const HSurfaceModel& SurfaceModelID, const HObjectModel3D& ObjectModel3D, double RelSamplingDistance, double KeyPointFraction, double MinScore, const char* ReturnResultHandle, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* Score )
HPose HSurfaceMatchingResult::FindSurfaceModelImage( const HImage& Image, const HSurfaceModel& SurfaceModelID, const HObjectModel3D& ObjectModel3D, double RelSamplingDistance, double KeyPointFraction, double MinScore, const wchar_t* ReturnResultHandle, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* Score ) (Windows only)
HPose[] HObjectModel3D.FindSurfaceModelImage( HImage image, HSurfaceModel surfaceModelID, double relSamplingDistance, double keyPointFraction, HTuple minScore, string returnResultHandle, HTuple genParamName, HTuple genParamValue, out HTuple score, out HSurfaceMatchingResult[] surfaceMatchingResultID )
HPose HObjectModel3D.FindSurfaceModelImage( HImage image, HSurfaceModel surfaceModelID, double relSamplingDistance, double keyPointFraction, double minScore, string returnResultHandle, HTuple genParamName, HTuple genParamValue, out HTuple score, out HSurfaceMatchingResult surfaceMatchingResultID )
HPose[] HSurfaceModel.FindSurfaceModelImage( HImage image, HObjectModel3D objectModel3D, double relSamplingDistance, double keyPointFraction, HTuple minScore, string returnResultHandle, HTuple genParamName, HTuple genParamValue, out HTuple score, out HSurfaceMatchingResult[] surfaceMatchingResultID )
HPose HSurfaceModel.FindSurfaceModelImage( HImage image, HObjectModel3D objectModel3D, double relSamplingDistance, double keyPointFraction, double minScore, string returnResultHandle, HTuple genParamName, HTuple genParamValue, out HTuple score, out HSurfaceMatchingResult surfaceMatchingResultID )
static HPose[] HSurfaceMatchingResult.FindSurfaceModelImage( HImage image, HSurfaceModel surfaceModelID, HObjectModel3D objectModel3D, double relSamplingDistance, double keyPointFraction, HTuple minScore, string returnResultHandle, HTuple genParamName, HTuple genParamValue, out HTuple score, out HSurfaceMatchingResult[] surfaceMatchingResultID )
HPose HSurfaceMatchingResult.FindSurfaceModelImage( HImage image, HSurfaceModel surfaceModelID, HObjectModel3D objectModel3D, double relSamplingDistance, double keyPointFraction, double minScore, string returnResultHandle, HTuple genParamName, HTuple genParamValue, out HTuple score )
説明
オペレーター find_surface_model_imageFindSurfaceModelImage は、
ObjectModel3DobjectModel3Dobject_model_3d の 3 次元表面、Imageimageimage のシーンの画像で構成されるシーンで
最も合う表面モデル SurfaceModelIDsurfaceModelIDsurface_model_id を検索します。
Imageimageimage に渡される画像の数は、
set_surface_model_paramSetSurfaceModelParam を持つカメラセットの数に対応する必
要があります。
サーフェスモデルは、パラメーター'train_3d_edges'"train_3d_edges" を有効にした create_surface_modelCreateSurfaceModel
で作られることに注意してください。
画像は概略姿勢修正と精密姿勢修正でのみ使われます。修正を行うことで、
渡された画像のエッジの輪郭モデルの再投影エッジのアライメントと同じく
3Dシーンのモデルのアライメントも同時に最適化されます。
画像のドメインは無視されます。
さらに、find_surface_modelFindSurfaceModel, find_surface_model_imageFindSurfaceModelImage に記載されたパラメーターは、
下記の一般パラメーターをサポートします。:
-
'min_contrast'"min_contrast":
探索画像のオブジェクトの最小コントラストを設定してください。
修正で下記の閾値未満のコントラストのエッジは無視されます。
推奨値: 55, 1010, 2020
初期値: 1010
制限: 'min_contrast'"min_contrast" >= 00
-
'max_deformation'"max_deformation":
画像の一致するエッジのピクセルの探索範囲を設定します。
このパラメーターはオブジェクトの形状が create_surface_modelCreateSurfaceModelで作成した元の3Dモデルよりも
少し変形している場合に使えます。
この値を上げることは修正に大きな影響を与えることに注意してください。
推奨値: 00, 11, 55
初期値: 11
制限: 'max_deformation'"max_deformation" >= 00
実行情報
実行情報
このオペレータはハンドルを返します。このハンドルタイプのインスタンスの状態は、特定のオペレータにおいては、入力パラメータとして使われている場合であっても変更されることがあります。
このオペレータは、タイムアウトと割り込みのキャンセルをサポートします。
パラメーター
Imageimageimage (input_object) (multichannel-)image(-array) → object (byte / uint2)HObject (byte / uint2)HImage (byte / uint2)HObject (byte / uint2)Hobject (byte / uint2)
シーンの画像
SurfaceModelIDsurfaceModelIDsurface_model_id (input_control) surface_model → (handle)HTuple (HHandle)HSurfaceModel, HTuple (IntPtr)HHandleHtuple (handle)
表面モデルのハンドル
ObjectModel3DobjectModel3Dobject_model_3d (input_control) object_model_3d → (handle)HTuple (HHandle)HObjectModel3D, HTuple (IntPtr)HHandleHtuple (handle)
場面を含む 3 次元オブジェクトモデルの
ハンドル
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
KeyPointFractionkeyPointFractionkey_point_fraction (input_control) real → (real)HTuple (double)HTuple (double)floatHtuple (double)
サンプリングされた場面点のキーポイント
として使用される部分
初期値: 0.20.2
推奨値: 0.3, 0.2, 0.1, 0.050.3, 0.2, 0.1, 0.05
制限: 0 < KeyPointFraction <= 1
MinScoreminScoremin_score (input_control) real(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[float, int]]Htuple (double / Hlong)
返される姿勢の最小スコア
初期値: 00
制限: MinScore >= 0
ReturnResultHandlereturnResultHandlereturn_result_handle (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)
結果ハンドルを
SurfaceMatchingResultIDsurfaceMatchingResultIDsurface_matching_result_id で返すようにします。
初期値: 'false'"false"
推奨値: 'true', 'false'"true", "false"
GenParamNamegenParamNamegen_param_name (input_control) attribute.name-array → (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)
一般パラメーターの名前
初期値: [][]
値のリスト: '3d_edge_min_amplitude_abs', '3d_edge_min_amplitude_rel', '3d_edges', 'dense_pose_refinement', 'max_deformation', 'max_gap', 'max_overlap_dist_abs', 'max_overlap_dist_rel', 'min_contrast', 'num_matches', 'pose_ref_dist_threshold_abs', 'pose_ref_dist_threshold_rel', 'pose_ref_num_steps', 'pose_ref_scoring_dist_abs', 'pose_ref_scoring_dist_rel', 'pose_ref_sub_sampling', 'pose_ref_use_scene_normals', 'scene_invert_normals', 'scene_normal_computation', 'sparse_pose_refinement', 'use_3d_edges', 'use_self_similar_poses', 'use_view_based', 'viewpoint'"3d_edge_min_amplitude_abs", "3d_edge_min_amplitude_rel", "3d_edges", "dense_pose_refinement", "max_deformation", "max_gap", "max_overlap_dist_abs", "max_overlap_dist_rel", "min_contrast", "num_matches", "pose_ref_dist_threshold_abs", "pose_ref_dist_threshold_rel", "pose_ref_num_steps", "pose_ref_scoring_dist_abs", "pose_ref_scoring_dist_rel", "pose_ref_sub_sampling", "pose_ref_use_scene_normals", "scene_invert_normals", "scene_normal_computation", "sparse_pose_refinement", "use_3d_edges", "use_self_similar_poses", "use_view_based", "viewpoint"
GenParamValuegenParamValuegen_param_value (input_control) attribute.value-array → (string / real / integer)HTuple (HString / double / Hlong)HTuple (string / double / int / long)Sequence[Union[str, float, int]]Htuple (char* / double / Hlong)
一般パラメーターの値
初期値: [][]
推奨値: 0, 1, 'true', 'false', 0.005, 0.01, 0.03, 0.05, 0.1, 'num_scene_points', 'model_point_fraction', 'num_model_points', 'fast', 'mls'0, 1, "true", "false", 0.005, 0.01, 0.03, 0.05, 0.1, "num_scene_points", "model_point_fraction", "num_model_points", "fast", "mls"
Poseposepose (output_control) pose(-array) → (real / integer)HTuple (double / Hlong)HPose, HTuple (double / int / long)Sequence[Union[float, int]]Htuple (double / Hlong)
場面内の表面モデルの 3 次元姿勢
Scorescorescore (output_control) real-array → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)
見つかった表面モデルのインスタンスのスコア
SurfaceMatchingResultIDsurfaceMatchingResultIDsurface_matching_result_id (output_control) surface_matching_result(-array) → (handle)HTuple (HHandle)HSurfaceMatchingResult, HTuple (IntPtr)Sequence[HHandle]Htuple (handle)
ReturnResultHandlereturnResultHandlereturn_result_handle で有効にな
っている場合、マッチング結果のハンドル
結果
find_surface_model_imageFindSurfaceModelImage は、すべてのパラメーターが正しい
場合に 2 (H_MSG_TRUE) を返します。必要に応じて、例外が発生します。
他のオペレーターとの組み合わせ
組み合わせ
前処理の候補
read_object_model_3dReadObjectModel3d, xyz_to_object_model_3dXyzToObjectModel3d, get_object_model_3d_paramsGetObjectModel3dParams, read_surface_modelReadSurfaceModel, create_surface_modelCreateSurfaceModel, get_surface_model_paramGetSurfaceModelParam, edges_object_model_3dEdgesObjectModel3d
後処理の候補
refine_surface_model_poseRefineSurfaceModelPose, get_surface_matching_resultGetSurfaceMatchingResult, clear_surface_matching_resultClearSurfaceMatchingResult, clear_object_model_3dClearObjectModel3d
他の選択候補
refine_surface_model_poseRefineSurfaceModelPose, find_surface_modelFindSurfaceModel, refine_surface_model_pose_imageRefineSurfaceModelPoseImage
関連項目
refine_surface_model_poseRefineSurfaceModelPose, find_surface_modelFindSurfaceModel
モジュール
3D Metrology