Name
get_surface_matching_resultget_surface_matching_resultGetSurfaceMatchingResultget_surface_matching_resultGetSurfaceMatchingResultGetSurfaceMatchingResult — Get details of a result from surface based matching.
The operator get_surface_matching_resultget_surface_matching_resultGetSurfaceMatchingResultget_surface_matching_resultGetSurfaceMatchingResultGetSurfaceMatchingResult returns details about
the results of surface based matching or the surface pose refinement.
The results are
stored in SurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDsurfaceMatchingResultID, which must have been created
by find_surface_modelfind_surface_modelFindSurfaceModelfind_surface_modelFindSurfaceModelFindSurfaceModel or refine_surface_model_poserefine_surface_model_poseRefineSurfaceModelPoserefine_surface_model_poseRefineSurfaceModelPoseRefineSurfaceModelPose.
The parameter ResultNameResultNameResultNameResultNameResultNameresultName is used to select which result detail
shall be returned. If details about one of the results shall be retrieved,
ResultIndexResultIndexResultIndexResultIndexResultIndexresultIndex selects the result index, where 0 selects
the first result.
ResultIndexResultIndexResultIndexResultIndexResultIndexresultIndex is ignored for certain values of ResultNameResultNameResultNameResultNameResultNameresultName.
The following values are possible for ResultNameResultNameResultNameResultNameResultNameresultName:
- 'sampled_scene'"sampled_scene""sampled_scene""sampled_scene""sampled_scene""sampled_scene":
If SurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDsurfaceMatchingResultID was created by
find_surface_modelfind_surface_modelFindSurfaceModelfind_surface_modelFindSurfaceModelFindSurfaceModel, a 3D object model handle is returned that
contains the sampled scene points that were used in the
approximate matching step.
This is helpful for tuning the sampling distance for the
matching (see parameter RelSamplingDistance of operator
find_surface_modelfind_surface_modelFindSurfaceModelfind_surface_modelFindSurfaceModelFindSurfaceModel).
The parameter ResultIndexResultIndexResultIndexResultIndexResultIndexresultIndex is ignored.
The returned ObjectModel3D handle must be freed with
clear_object_model_3dclear_object_model_3dClearObjectModel3dclear_object_model_3dClearObjectModel3dClearObjectModel3d. If SurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDsurfaceMatchingResultID was
created by refine_surface_model_poserefine_surface_model_poseRefineSurfaceModelPoserefine_surface_model_poseRefineSurfaceModelPoseRefineSurfaceModelPose, an empty 3D object model
is returned.
- 'key_points'"key_points""key_points""key_points""key_points""key_points":
If SurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDsurfaceMatchingResultID was created by
find_surface_modelfind_surface_modelFindSurfaceModelfind_surface_modelFindSurfaceModelFindSurfaceModel a 3D object model handle is returned that
contains all points from the 3D scene that were used as key
points in the matching process.
This is helpful for tuning the sampling
distance and key point rate for the matching (see parameter
KeyPointFraction of operator find_surface_modelfind_surface_modelFindSurfaceModelfind_surface_modelFindSurfaceModelFindSurfaceModel).
The parameter ResultIndexResultIndexResultIndexResultIndexResultIndexresultIndex is ignored.
At least 10 key points should be on the object of interest for
stable results.
The returned ObjectModel3D handle must be freed with
clear_object_model_3dclear_object_model_3dClearObjectModel3dclear_object_model_3dClearObjectModel3dClearObjectModel3d.
If SurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDsurfaceMatchingResultID was created by
refine_surface_model_poserefine_surface_model_poseRefineSurfaceModelPoserefine_surface_model_poseRefineSurfaceModelPoseRefineSurfaceModelPose, a 3D object model with no
content is returned.
- 'pose'"pose""pose""pose""pose""pose":
Returns the pose of the matching or refinement result.
In ResultIndexResultIndexResultIndexResultIndexResultIndexresultIndex the index of the result must be specified.
- 'score_unrefined'"score_unrefined""score_unrefined""score_unrefined""score_unrefined""score_unrefined":
If SurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDsurfaceMatchingResultID was created by
find_surface_modelfind_surface_modelFindSurfaceModelfind_surface_modelFindSurfaceModelFindSurfaceModel, the score of the result before the
dense pose refinement is returned. If the sparse pose refinement was
disabled, this is the score of the approximate matching. Otherwise the
score of the sparse pose refinement is returned.
See find_surface_modelfind_surface_modelFindSurfaceModelfind_surface_modelFindSurfaceModelFindSurfaceModel for details about the score.
In ResultIndexResultIndexResultIndexResultIndexResultIndexresultIndex the index of the result must be specified.
If SurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDsurfaceMatchingResultID was created by
refine_surface_model_poserefine_surface_model_poseRefineSurfaceModelPoserefine_surface_model_poseRefineSurfaceModelPoseRefineSurfaceModelPose, 0 is returned.
- 'score_refined'"score_refined""score_refined""score_refined""score_refined""score_refined":
Returns the score of the result after the dense pose refinement.
See find_surface_modelfind_surface_modelFindSurfaceModelfind_surface_modelFindSurfaceModelFindSurfaceModel for details about this score.
In ResultIndexResultIndexResultIndexResultIndexResultIndexresultIndex the index of the result must be specified.
If SurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDSurfaceMatchingResultIDsurfaceMatchingResultID was created by
find_surface_modelfind_surface_modelFindSurfaceModelfind_surface_modelFindSurfaceModelFindSurfaceModel and dense pose refinement was disabled, 0
is returned.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Handle of the surface matching result.
Name of the result property.
Default value:
'pose'
"pose"
"pose"
"pose"
"pose"
"pose"
List of values: 'key_points'"key_points""key_points""key_points""key_points""key_points", 'pose'"pose""pose""pose""pose""pose", 'sampled_scene'"sampled_scene""sampled_scene""sampled_scene""sampled_scene""sampled_scene", 'score_refined'"score_refined""score_refined""score_refined""score_refined""score_refined", 'score_unrefined'"score_unrefined""score_unrefined""score_unrefined""score_unrefined""score_unrefined"
Index of the matching result, starting with 0.
Default value: 0
Suggested values: 0, 1, 2, 3
Restriction: ResultIndex >= 0
Value of the result property.
If the handle of the result is valid, the operator
get_surface_matching_resultget_surface_matching_resultGetSurfaceMatchingResultget_surface_matching_resultGetSurfaceMatchingResultGetSurfaceMatchingResult returns the value 2 (H_MSG_TRUE).
If necessary an exception is raised.
find_surface_modelfind_surface_modelFindSurfaceModelfind_surface_modelFindSurfaceModelFindSurfaceModel,
refine_surface_model_poserefine_surface_model_poseRefineSurfaceModelPoserefine_surface_model_poseRefineSurfaceModelPoseRefineSurfaceModelPose
clear_surface_modelclear_surface_modelClearSurfaceModelclear_surface_modelClearSurfaceModelClearSurfaceModel
find_surface_modelfind_surface_modelFindSurfaceModelfind_surface_modelFindSurfaceModelFindSurfaceModel,
refine_surface_model_poserefine_surface_model_poseRefineSurfaceModelPoserefine_surface_model_poseRefineSurfaceModelPoseRefineSurfaceModelPose,
read_surface_modelread_surface_modelReadSurfaceModelread_surface_modelReadSurfaceModelReadSurfaceModel,
write_surface_modelwrite_surface_modelWriteSurfaceModelwrite_surface_modelWriteSurfaceModelWriteSurfaceModel,
clear_surface_modelclear_surface_modelClearSurfaceModelclear_surface_modelClearSurfaceModelClearSurfaceModel
3D Metrology