get_shape_model_params🔗
Short description🔗
get_shape_model_params — Return the parameters of a shape model.
Signature🔗
get_shape_model_params( shape_model ModelID, out integer NumLevels, out angle.rad AngleStart, out angle.rad AngleExtent, out angle.rad AngleStep, out number ScaleMin, out number ScaleMax, out number ScaleStep, out string Metric, out number MinContrast )
Description🔗
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 ModelID was adapted with
adapt_shape_model_high_noise, NumLevels contains two values: the
highest pyramid level and the estimated lowest pyramid level.
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.
Execution information🔗
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters🔗
ModelID (input_control) shape_model → (handle)
Handle of the model.
NumLevels (output_control) integer(-array) → (integer)
Number of pyramid levels.
AngleStart (output_control) angle.rad → (real)
Smallest rotation of the pattern.
AngleExtent (output_control) angle.rad → (real)
Extent of the rotation angles.
Assertion: AngleExtent >= 0
AngleStep (output_control) angle.rad → (real)
Step length of the angles (resolution).
Assertion: AngleStep >= 0 && AngleStep <= pi/2
ScaleMin (output_control) number(-array) → (real)
Minimum scale of the pattern.
Assertion: ScaleMin > 0
ScaleMax (output_control) number(-array) → (real)
Maximum scale of the pattern.
Assertion: ScaleMax >= ScaleMin
ScaleStep (output_control) number(-array) → (real)
Scale step length (resolution).
Assertion: ScaleStep >= 0
Metric (output_control) string → (string)
Match metric.
MinContrast (output_control) number → (integer)
Minimum contrast of the objects in the search images.
Result🔗
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.
Combinations with other operators🔗
Combinations
Possible predecessors
create_shape_model, create_scaled_shape_model, create_aniso_shape_model, read_shape_model
Alternatives
See also
find_shape_model, find_scaled_shape_model, find_aniso_shape_model, find_shape_models, find_scaled_shape_models, find_aniso_shape_models
Module🔗
Matching