get_shape_model_3d_params — Return the parameters of a 3D shape model.
The operator get_shape_model_3d_params allows to query parameters of the 3D shape model. The names of the desired parameters are passed in the generic parameter GenParamNames, the corresponding values are returned in GenParamValues.
The following parameters can be queried:
Internal parameters of the camera that is used for the matching.
Reference orientation: Rotation around x-axis or x component of the Rodriguez vector (in radians or without unit).
Reference orientation: Rotation around y-axis or y component of the Rodriguez vector (in radians or without unit).
Reference orientation: Rotation around z-axis or z component of the Rodriguez vector (in radians or without unit).
Meaning of the rotation values of the reference orientation.
Minimum longitude of the model views.
Maximum longitude of the model views.
Minimum latitude of the model views.
Maximum latitude of the model views.
Minimum camera roll angle of the model views.
Maximum camera roll angle of the model views.
Minimum camera-object-distance of the model views.
Maximum camera-object-distance of the model views.
Minimum contrast of the objects in the search images.
User-specified number of pyramid levels.
Maximum number of used pyramid levels over all model views.
Kind of optimization by reducing the number of model points.
Size of the model parts that is used when 'metric' is set to 'ignore_part_polarity'.
Minimum 3D face angle for which 3D object model edges are included in the 3D shape model.
Minimum size of the projected 3D object model edge (in number of pixels) to include the projected edge in the 3D shape model.
Maximum acceptable tolerance of the projected 3D object model edges (in pixels).
Number of model views per pyramid level. For each pyramid level the number of views that are stored in the 3D shape model are returned. Thus, the number of returned elements corresponds to the number of used pyramid levels, which can be queried with 'num_levels_max'. Note that for pyramid levels below 'lowest_model_level' (see documentation of create_shape_model_3d), the value 0 is returned.
Reference position and orientation of the 3d shape model. The returned pose describes the pose of the internally used reference coordinate system of the 3D shape model with respect to the coordinate system that is used in the underlying 3D object model. With this pose, points given in the object coordinate system can be transformed into the reference coordinate system.
3D coordinates of the reference point of the underlying 3D object model.
Smallest enclosing axis-parallel cuboid of the underlying 3D object model in the following order: [min_x, min_y, min_z, max_x, max_y, max_z].
Describes whether the pose refinement during the search is performed in a sped up mode ('true') or in the conventional mode ('false').
Lowest pyramid level down to which views are stored in the model.
Describes whether in project_shape_model_3d adjacent contours should be joined or not.
A detailed description of the parameters can be looked up with the operator create_shape_model_3d.
It is possible to query the values of several parameters with a single operator call by passing a tuple containing the names of all desired parameters to GenParamNames. As a result a tuple of the same length with the corresponding values is returned in GenParamValues. Note that this is solely possible for parameters that return only a single value.
Handle of the 3D shape model.
Names of the generic parameters that are to be queried for the 3D shape model.
Default value: 'num_levels_max'
List of values: 'bounding_box1', 'cam_param', 'cam_roll_max', 'cam_roll_min', 'dist_max', 'dist_min', 'fast_pose_refinement', 'latitude_max', 'latitude_min', 'longitude_max', 'longitude_min', 'lowest_model_level', 'metric', 'min_contrast', 'min_face_angle', 'min_size', 'model_tolerance', 'num_levels', 'num_levels_max', 'num_views_per_level', 'optimization', 'order_of_rotation', 'part_size', 'ref_rot_x', 'ref_rot_y', 'ref_rot_z', 'reference_point', 'reference_pose', 'union_adjacent_contours'
Values of the generic parameters.
If the parameters are valid, the operator get_shape_model_3d_params returns the value 2 (H_MSG_TRUE). If necessary an exception is raised.
convert_point_3d_cart_to_spher, convert_point_3d_spher_to_cart, create_cam_pose_look_at_point, trans_pose_shape_model_3d