get_component_model_params ( : : ComponentModelID : MinScoreComp, RootRanking, ShapeModelIDs )

Return the parameters of a component model.

The operator get_component_model_params returns the parameters of the component model ComponentModelID. In particular, this output can be used to check the parameters RootRanking and MinScoreComp after reading the component model with read_component_model. Additionally, the operator returns the shape model IDs ShapeModelIDs of the model components. The order of the returned shape model IDs corresponds to the indices of the components within the component model ComponentModelID. The IDs can be used to query their shape model parameters with get_shape_model_params.


Parameters

ComponentModelID (input_control)
component_model -> integer
Handle of the component model.

MinScoreComp (output_control)
real(-array) -> real
Minimum score of the instances of the components to be found.

RootRanking (output_control)
integer(-array) -> integer
Ranking of the model components expressing their suitability to act as root component.

ShapeModelIDs (output_control)
shape_model(-array) -> integer
Handles of the shape models of the individual model components.


Example
read_component_model ('pliers.cpm', ComponentModelID)
get_component_model_params (ComponentModelID, MinScoreComp, RootRanking,
                            ShapeModelIDs)
for i := 0 to |ShapeModelIDs|-1 by 1
    get_shape_model_params (ShapeModelIDs[i], NumLevels, AngleStart,
                            AngleExtent, AngleStep, ScaleMin, ScaleMax,
                            ScaleStep, Metric, MinContrast)
endfor

Result

If the handle of the component model is valid, the operator get_component_model_params returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.


Parallelization Information

get_component_model_params is reentrant and processed without parallelization.


Possible Predecessors

create_trained_component_model, create_component_model


See also

get_shape_model_params


Module

Matching



Copyright © 1996-2008 MVTec Software GmbH