| Table of Contents / Matching / Shape-Based | Operators |
set_shape_model_param — Set selected parameters of the shape model.
set_shape_model_param( : : ModelID, GenParamNames, GenParamValues : )
The operator set_shape_model_param sets the selected parameters GenParamNames in the shape model ModelID. The following parameters can be modified:
'min_contrast'
Sets the minimum contrast of the object in the search images for the shape model ModelID. Thereby, the value of 'min_contrast' that was originally set, e.g. with create_shape_model, is overwritten for the shape model ModelID. Note that if the shape model ModelID was read from file and if this file should be changed as well, the shape model ModelID must again be written to file after the execution of the operator set_shape_model_param.
'timeout'
Sets the maximum runtime of the operators used to find the shape model ModelID (e.g. find_shape_model). This is especially useful in cases where a maximum cycle time has to be ensured. The 'timeout' must be given in milliseconds. The temporal accuracy depends on several factors including the size of the model, the speed of your computer, and the 'timer_mode' set via set_system. Be aware that the runtime of the search increases by up to 10 percent with activated timeout. To disable the timeout you can either use a negative value or 'false'.
Handle of the model.
Parameter names.
List of values: 'min_contrast', 'timeout'
Parameter values.
If the parameters are valid, the operator set_shape_model_param returns the value 2 (H_MSG_TRUE). If necessary an exception is raised.
create_shape_model_xld, create_scaled_shape_model_xld, create_aniso_shape_model_xld
find_shape_model, find_scaled_shape_model, find_aniso_shape_model
create_shape_model_xld, create_scaled_shape_model_xld, create_aniso_shape_model_xld
Matching
| Table of Contents / Matching / Shape-Based | Operators |
| HALCON Reference Manual 10.0.2 | Copyright © 1996-2011 MVTec Software GmbH |