get_component_model_paramsT_get_component_model_paramsGetComponentModelParamsGetComponentModelParamsget_component_model_params (Operator)
Name
get_component_model_paramsT_get_component_model_paramsGetComponentModelParamsGetComponentModelParamsget_component_model_params
— Return the parameters of a component model.
Signature
def get_component_model_params(component_model_id: HHandle) -> Tuple[Sequence[float], Sequence[int], Sequence[HHandle]]
def get_component_model_params_s(component_model_id: HHandle) -> Tuple[float, int, HHandle]
Description
The operator get_component_model_paramsget_component_model_paramsGetComponentModelParamsGetComponentModelParamsGetComponentModelParamsget_component_model_params
returns the
parameters of the component model ComponentModelIDComponentModelIDComponentModelIDComponentModelIDcomponentModelIDcomponent_model_id
. In
particular, this output can be used to check the parameters
RootRankingRootRankingRootRankingRootRankingrootRankingroot_ranking
and MinScoreCompMinScoreCompMinScoreCompMinScoreCompminScoreCompmin_score_comp
after reading the
component model with read_component_modelread_component_modelReadComponentModelReadComponentModelReadComponentModelread_component_model
. Additionally, the
operator returns the shape model IDs ShapeModelIDsShapeModelIDsShapeModelIDsShapeModelIDsshapeModelIDsshape_model_ids
of the
model components. The order of the returned shape model IDs
corresponds to the indices of the components within the component
model ComponentModelIDComponentModelIDComponentModelIDComponentModelIDcomponentModelIDcomponent_model_id
. The IDs can be used to query their
shape model parameters with get_shape_model_paramsget_shape_model_paramsGetShapeModelParamsGetShapeModelParamsGetShapeModelParamsget_shape_model_params
.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.
Parameters
ComponentModelIDComponentModelIDComponentModelIDComponentModelIDcomponentModelIDcomponent_model_id
(input_control) component_model →
HComponentModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the component model.
MinScoreCompMinScoreCompMinScoreCompMinScoreCompminScoreCompmin_score_comp
(output_control) real(-array) →
HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Minimum score of the instances of the components to
be found.
RootRankingRootRankingRootRankingRootRankingrootRankingroot_ranking
(output_control) integer(-array) →
HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Ranking of the model components expressing their
suitability to act as root component.
ShapeModelIDsShapeModelIDsShapeModelIDsShapeModelIDsshapeModelIDsshape_model_ids
(output_control) shape_model(-array) →
HShapeModel, HTupleSequence[HHandle]HTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handles of the shape models of the individual model
components.
Example (HDevelop)
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_paramsget_component_model_paramsGetComponentModelParamsGetComponentModelParamsGetComponentModelParamsget_component_model_params
returns the value TRUE. If necessary,
an exception is raised.
Possible Predecessors
create_trained_component_modelcreate_trained_component_modelCreateTrainedComponentModelCreateTrainedComponentModelCreateTrainedComponentModelcreate_trained_component_model
,
create_component_modelcreate_component_modelCreateComponentModelCreateComponentModelCreateComponentModelcreate_component_model
See also
get_shape_model_paramsget_shape_model_paramsGetShapeModelParamsGetShapeModelParamsGetShapeModelParamsget_shape_model_params
Module
Matching