Skip to content

get_generic_shape_model_paramGetGenericShapeModelParamGetGenericShapeModelParamget_generic_shape_model_paramT_get_generic_shape_model_paramπŸ”—

Short descriptionπŸ”—

get_generic_shape_model_paramGetGenericShapeModelParamGetGenericShapeModelParamget_generic_shape_model_paramT_get_generic_shape_model_param β€” Return the parameters of a shape model.

SignatureπŸ”—

get_generic_shape_model_param( shape_model ModelID, attribute.name GenParamName, out attribute.value GenParamValue )void GetGenericShapeModelParam( const HTuple& ModelID, const HTuple& GenParamName, HTuple* GenParamValue )static void HOperatorSet.GetGenericShapeModelParam( HTuple modelID, HTuple genParamName, out HTuple genParamValue )def get_generic_shape_model_param( model_id: HHandle, gen_param_name: Sequence[str] ) -> Sequence[Union[int, float, str]]

Herror T_get_generic_shape_model_param( const Htuple ModelID, const Htuple GenParamName, Htuple* GenParamValue )

HTuple HShapeModel::GetGenericShapeModelParam( const HTuple& GenParamName ) const

HTuple HShapeModel.GetGenericShapeModelParam( HTuple genParamName )

DescriptionπŸ”—

The operator get_generic_shape_model_paramGetGenericShapeModelParam returns the parameters values GenParamValuegenParamValuegen_param_value of GenParamNamegenParamNamegen_param_name for the shape model ModelIDmodelIDmodel_id.

For an explanation of the settable GenParamValuegenParamValuegen_param_value, see set_generic_shape_model_paramSetGenericShapeModelParam. Additional parameters whose value can only be retrieved:

  • 'has_samples'"has_samples":

    States, whether the model contains training samples for sample-based training ('true'"true") or not ('false'"false").

  • 'needs_training'"needs_training":

    States, whether the model must be trained using train_generic_shape_modelTrainGenericShapeModel before it can be used by find_generic_shape_modelFindGenericShapeModel ('true'"true") or not ('false'"false").

  • 'sample_based_training_compatible'"sample_based_training_compatible":

    States, whether the model is compatible with the selected sample-based training methods ('true'"true") or not ('false'"false"). Selected methods for the sample-based training are set using 'sample_based_training'"sample_based_training" and retrievable using 'sample_based_training_param'"sample_based_training_param".

    In order to accomplish a successful sample-based training, the model needs to be compatible and contain training samples.

  • 'scale_type'"scale_type":

    A string which describes the type of scaling of the shape model.

  • 'score_visualization_enabled'"score_visualization_enabled":

    States, whether the set parameters are compatible for 'score_visualization'"score_visualization" and therewith the calculation of the score contribution of each model point is possible ('true'"true") or not ('false'"false").

The operator get_generic_shape_model_paramGetGenericShapeModelParam returns the value as it is used by the shape model. As certain parameters may be modified after calling train_generic_shape_modelTrainGenericShapeModel, their value can differ from the set value. This applies particularly to parameters whose value is to be determined automatically, e.g., with values set to 'auto'"auto". The (unmodified) set value of a GenParamNamegenParamNamegen_param_name can be retrieved by adding the suffix ’_param’ to its name.

Example: After calling train_generic_shape_modelTrainGenericShapeModel, 'num_levels'"num_levels" returns the estimated value and 'num_levels_param'"num_levels_param" returns the set value, e.g., its value set by default or the one set by the user.

Exceptions to this rule are:

  • 'greediness'"greediness" when 'sample_based_training'"sample_based_training" is set to 'per_level'"per_level".

  • 'min_score'"min_score" when 'sample_based_training'"sample_based_training" is set to 'per_level'"per_level".

A parameter GenParamNamegenParamNamegen_param_name for which the resulting GenParamValuegenParamValuegen_param_value can consist of more than a single value, for example a transformation matrix, cannot be queried together with other parameters. Instead, it requires a separate call to get_generic_shape_model_paramGetGenericShapeModelParam.

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.

This operator modifies the state of the following input parameter:

During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.

ParametersπŸ”—

ModelIDmodelIDmodel_id (input_control, state is modified) shape_model β†’ (handle)HTuple (HHandle)HShapeModel, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the shape model.

GenParamNamegenParamNamegen_param_name (input_control) attribute.name-array β†’ (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)

Parameter name.

Default: 'min_score'"min_score"
List of values: 'angle_end', 'angle_start', 'angle_step', 'border_shape_models', 'clutter_border_mode', 'clutter_contrast', 'clutter_hom_mat_2d', 'contour_pruning_threshold', 'contrast_high', 'contrast_low', 'greediness', 'has_samples', 'iso_scale_max', 'iso_scale_min', 'iso_scale_step', 'max_clutter', 'max_deformation', 'max_overlap', 'max_overlap_global_enable', 'metric', 'min_contrast', 'min_score', 'min_size', 'model_cache', 'model_identifier', 'needs_training', 'num_levels', 'num_matches', 'num_matches_global_enable', 'optimization', 'origin_column', 'origin_row', 'prepare_clutter_region_for_visualization', 'prepare_contours_for_visualization', 'pyramid_level_highest', 'pyramid_level_lowest', 'pyramid_level_robust_tracking', 'restrict_iso_scale_max', 'restrict_iso_scale_min', 'restrict_scale_column_max', 'restrict_scale_column_min', 'restrict_scale_row_max', 'restrict_scale_row_min', 'sample_based_training', 'sample_based_training_compatible', 'scale_column_max', 'scale_column_min', 'scale_column_step', 'scale_row_max', 'scale_row_min', 'scale_row_step', 'scale_type', 'score_visualization', 'score_visualization_enabled', 'strict_boundaries', 'subpixel', 'time_measurement', 'timeout', 'use_clutter'"angle_end", "angle_start", "angle_step", "border_shape_models", "clutter_border_mode", "clutter_contrast", "clutter_hom_mat_2d", "contour_pruning_threshold", "contrast_high", "contrast_low", "greediness", "has_samples", "iso_scale_max", "iso_scale_min", "iso_scale_step", "max_clutter", "max_deformation", "max_overlap", "max_overlap_global_enable", "metric", "min_contrast", "min_score", "min_size", "model_cache", "model_identifier", "needs_training", "num_levels", "num_matches", "num_matches_global_enable", "optimization", "origin_column", "origin_row", "prepare_clutter_region_for_visualization", "prepare_contours_for_visualization", "pyramid_level_highest", "pyramid_level_lowest", "pyramid_level_robust_tracking", "restrict_iso_scale_max", "restrict_iso_scale_min", "restrict_scale_column_max", "restrict_scale_column_min", "restrict_scale_row_max", "restrict_scale_row_min", "sample_based_training", "sample_based_training_compatible", "scale_column_max", "scale_column_min", "scale_column_step", "scale_row_max", "scale_row_min", "scale_row_step", "scale_type", "score_visualization", "score_visualization_enabled", "strict_boundaries", "subpixel", "time_measurement", "timeout", "use_clutter"

GenParamValuegenParamValuegen_param_value (output_control) attribute.value-array β†’ (real / integer / string)HTuple (double / Hlong / HString)HTuple (double / int / long / string)Sequence[Union[int, float, str]]Htuple (double / Hlong / char*)

Parameter value.

ResultπŸ”—

If the parameters are valid, the operator get_generic_shape_model_paramGetGenericShapeModelParam returns the value 2 (H_MSG_TRUE). If necessary an exception is raised.

Combinations with other operatorsπŸ”—

Combinations

Possible predecessors

create_generic_shape_modelCreateGenericShapeModel, set_generic_shape_model_paramSetGenericShapeModelParam, train_generic_shape_modelTrainGenericShapeModel

ModuleπŸ”—

Matching