Skip to content

get_generic_shape_model_paramGetGenericShapeModelParamGetGenericShapeModelParamget_generic_shape_model_paramT_get_generic_shape_model_param🔗

説明🔗

get_generic_shape_model_paramGetGenericShapeModelParamGetGenericShapeModelParamget_generic_shape_model_paramT_get_generic_shape_model_param — 形状ベースモデルのパラメーターを返す。

書式🔗

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 )

説明🔗

オペレーターget_generic_shape_model_paramGetGenericShapeModelParamは、形状ベースモデルModelIDmodelIDmodel_idの GenParamNamegenParamNamegen_param_nameのパラメーターGenParamValuegenParamValuegen_param_valueを返します。

設定可能な GenParamValuegenParamValuegen_param_valueの説明については、 set_generic_shape_model_paramSetGenericShapeModelParamを参照してください。 読み取り専用の追加パラメーター:

  • 'has_samples'"has_samples":

    モデルにサンプルベースのトレーニング用のトレーニングサンプルが含まれているかどうか('true'"true") または含まれていないかどうか('false'"false")を示します。

  • 'needs_training'"needs_training":

    モデルがfind_generic_shape_modelFindGenericShapeModelで使用する前に、 train_generic_shape_modelTrainGenericShapeModel を使用してトレーニングする必要があるかどうかを示します。 ('true'"true") もしくは('false'"false")。

  • 'sample_based_training_compatible'"sample_based_training_compatible":

    モデルが選択されたサンプルベースのトレーニング方法と互換性があるか ('true'"true")、または互換性がないか('false'"false")を 示します。サンプルベースのトレーニング用に選択された方法は 'sample_based_training'"sample_based_training" を使用して設定され、 'sample_based_training_param'"sample_based_training_param" を使用して取得できます。

    サンプルベースのトレーニングを成功させるには、モデルに互換性があり、 かつトレーニングサンプルが含まれている必要があります。

  • 'scale_type'"scale_type":

    形状モデルのスケーリングの種類を表す文字列。

  • 'score_visualization_enabled'"score_visualization_enabled":

    設定されたパラメータが 'score_visualization'"score_visualization" と互換性があり、 それによって各モデルポイントのスコア貢献度の計算が 可能か('true'"true")、または可能でないか('false'"false")を示します。

オペレーターget_generic_shape_model_paramGetGenericShapeModelParamは、 形状ベースモデルで使われた値を返します。 特定のパラメーターはtrain_generic_shape_modelTrainGenericShapeModelが実行された後に変更される可能性がある為、 設定値と異なる場合があります。 これはパラメーターが'auto'"auto"に設定されている場合のように自動的に決定されるパラメーターに特に当てはまります。 GenParamNamegenParamNamegen_param_nameの(変更されていない)設定値は、 名前に接尾辞’_param’を追加することで取得できます。

例:train_generic_shape_modelTrainGenericShapeModelを呼び出した後、 'num_levels'"num_levels" は推定値を返します。そして、 'num_levels_param'"num_levels_param"は、既定値やユーザーに設定された値を返します。 このルールに対する例外:

  • 'sample_based_training'"sample_based_training"が{‘per_level’}に設定されているときの'greediness'"greediness"。

  • 'sample_based_training'"sample_based_training"が{‘per_level’}に設定されているときの'min_score'"min_score"。

得られた GenParamNamegenParamNamegen_param_name が(例えば変換行列とった)複数の値で構成される 可能性のあるパラメータ GenParamValuegenParamValuegen_param_value は、 他のパラメータと同時に照会することはできません。 代わりに get_generic_shape_model_paramGetGenericShapeModelParam 別に呼び出す必要があります。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

このオペレータは以下の入力パラメータの状態を変更します :

このパラメータの値は外部同期なしには複数スレッド間で共有されません。

パラメーター🔗

ModelIDmodelIDmodel_id (input_control, 状態が変更されました) shape_model → (handle)HTuple (HHandle)HShapeModel, HTuple (IntPtr)HHandleHtuple (handle)

形状ベースモデルのハンドル

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

パラメーターの名前

初期値: 'min_score'"min_score"
値のリスト: '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*)

パラメーターの値

結果🔗

パラメーターが有効な場合、オペレーター get_generic_shape_model_paramGetGenericShapeModelParamは、2 (H_MSG_TRUE)を返します。 必要に応じて例外が発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

create_generic_shape_modelCreateGenericShapeModel, set_generic_shape_model_paramSetGenericShapeModelParam, train_generic_shape_modelTrainGenericShapeModel

モジュール🔗

Matching