get_shape_model_params — Return the parameters of a shape model.
The operator get_shape_model_params returns the parameters of the shape model ModelID that were used to create it using create_shape_model, create_scaled_shape_model, or create_aniso_shape_model. In particular, this output can be used to check the parameters NumLevels, AngleStep, ScaleStep, and MinContrast if they were determined automatically during the model creation with create_shape_model, create_scaled_shape_model, or create_aniso_shape_model.
If the shape model was created using create_shape_model or create_scaled_shape_model a single value is returned in ScaleMin, ScaleMax, and ScaleStep. This parameters corresponds to the isotropic scaling parameters of the shape model. If the shape model was created using create_aniso_shape_model two values each are returned in the above three parameters. Here, the first value of the respective parameter refers to the scaling in the row direction, while the second value refers to the scaling in the column direction.
Note that the parameters Optimization and Contrast that also can be determined automatically during the model creation cannot be queried by using get_shape_model_params. If their value is of interest determine_shape_model_params should be used instead.
Handle of the model.
Number of pyramid levels.
Smallest rotation of the pattern.
Extent of the rotation angles.
Assertion: AngleExtent >= 0
Step length of the angles (resolution).
Assertion: AngleStep >= 0 && AngleStep <= pi / 16
Minimum scale of the pattern.
Assertion: ScaleMin > 0
Maximum scale of the pattern.
Assertion: ScaleMax >= ScaleMin
Scale step length (resolution).
Assertion: ScaleStep >= 0
Minimum contrast of the objects in the search images.
If the handle of the model is valid, the operator get_shape_model_params returns the value 2 (H_MSG_TRUE). If necessary an exception is raised.
create_shape_model, create_scaled_shape_model, create_aniso_shape_model, read_shape_model
find_shape_model, find_scaled_shape_model, find_aniso_shape_model, find_shape_models, find_scaled_shape_models, find_aniso_shape_models