| Table of Contents / 3D Matching / Surface-Based | Operators |
get_surface_model_param — Return the parameters and properties of a surface model.
get_surface_model_param( : : SurfaceModelID, ParamName : ParamValue)
The operator get_surface_model_param returns parameters and properties of the surface model SurfaceModelID. The surface model must have been created by create_surface_model or read_surface_model. The names of the desired properties are passed in the generic parameter ParamName, the corresponding values are returned in ParamValue.
The following values are possible for ParamName:
Diameter of the model point cloud. The diameter is the length of the diagonal of the axis-parallel bounding box (see parameter 'bounding_box1').
Center point of the model. The center point is the center of the axis-parallel bounding box (see parameter 'bounding_box1').
Smallest enclosing axis-parallel cuboid (min_x, min_y, min_z, max_x, max_y, max_z).
The 3D points sampled from the model for matching. This returns an ObjectModel3DID that contains all points sampled from the model surface for matching. The returned ObjectModel3D handle must be freed with clear_object_model_3d to avoid memory leaks.
The 3D model points subsampled from the model for the pose refinement. This returns an ObjectModel3DID that contains all points sampled from the model surface for pose refinement. The returned ObjectModel3D handle must be freed with clear_object_model_3d to avoid memory leaks.
Handle of the surface model.
Name of the parameter.
Default value: 'diameter'
List of values: 'diameter', 'center', 'bounding_box1', 'sampled_model', 'sampled_pose_refinement'
Value of the parameter.
get_surface_model_param returns 2 (H_MSG_TRUE) if all parameters are correct. If necessary, an exception is raised.
create_surface_model, read_surface_model
find_surface_model, refine_surface_model_pose, write_surface_model
3D Metrology
| Table of Contents / 3D Matching / Surface-Based | Operators |
| HALCON Reference Manual 10.0.2 | Copyright © 1996-2011 MVTec Software GmbH |