Skip to content

get_shape_model_paramsGetShapeModelParamsGetShapeModelParamsget_shape_model_paramsT_get_shape_model_params🔗

説明🔗

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

書式🔗

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 )void GetShapeModelParams( const HTuple& ModelID, HTuple* NumLevels, HTuple* AngleStart, HTuple* AngleExtent, HTuple* AngleStep, HTuple* ScaleMin, HTuple* ScaleMax, HTuple* ScaleStep, HTuple* Metric, HTuple* MinContrast )static void HOperatorSet.GetShapeModelParams( HTuple modelID, out HTuple numLevels, out HTuple angleStart, out HTuple angleExtent, out HTuple angleStep, out HTuple scaleMin, out HTuple scaleMax, out HTuple scaleStep, out HTuple metric, out HTuple minContrast )def get_shape_model_params( model_id: HHandle ) -> Tuple[Sequence[int], float, float, float, Sequence[float], Sequence[float], Sequence[float], str, int]

def get_shape_model_params_s( model_id: HHandle ) -> Tuple[int, float, float, float, float, float, float, str, int]Herror T_get_shape_model_params( const Htuple ModelID, Htuple* NumLevels, Htuple* AngleStart, Htuple* AngleExtent, Htuple* AngleStep, Htuple* ScaleMin, Htuple* ScaleMax, Htuple* ScaleStep, Htuple* Metric, Htuple* MinContrast )

HTuple HShapeModel::GetShapeModelParams( double* AngleStart, double* AngleExtent, double* AngleStep, HTuple* ScaleMin, HTuple* ScaleMax, HTuple* ScaleStep, HString* Metric, Hlong* MinContrast ) const

Hlong HShapeModel::GetShapeModelParams( double* AngleStart, double* AngleExtent, double* AngleStep, double* ScaleMin, double* ScaleMax, double* ScaleStep, HString* Metric, Hlong* MinContrast ) const

HTuple HShapeModel.GetShapeModelParams( out double angleStart, out double angleExtent, out double angleStep, out HTuple scaleMin, out HTuple scaleMax, out HTuple scaleStep, out string metric, out int minContrast )

int HShapeModel.GetShapeModelParams( out double angleStart, out double angleExtent, out double angleStep, out double scaleMin, out double scaleMax, out double scaleStep, out string metric, out int minContrast )

説明🔗

オペレーター get_shape_model_paramsGetShapeModelParams は create_shape_modelCreateShapeModel、create_scaled_shape_modelCreateScaledShapeModel、ま たは create_aniso_shape_modelCreateAnisoShapeModel を使用して生成するために使用 された形状モデル ModelIDmodelIDmodel_id のパラメーターを返します。特にこ の出力は、create_shape_modelCreateShapeModel、 create_scaled_shape_modelCreateScaledShapeModel、または create_aniso_shape_modelCreateAnisoShapeModel によるモデルの生成中に自動的に決 定されたパラメーター NumLevelsnumLevelsnum_levels、AngleStepangleStepangle_step、 ScaleStepscaleStepscale_step、および MinContrastminContrastmin_contrast の確認に使用できま す。

ModelIDmodelIDmodel_idが adapt_shape_model_high_noiseAdaptShapeModelHighNoiseで適応された場合、 NumLevelsには最高ピラミッドレベルと推定最低ピラミッドレベルの2つの値が含まれます.

create_shape_modelCreateShapeModel または create_scaled_shape_modelCreateScaledShapeModel を使用して形状モデルを作成した場 合、ScaleMinscaleMinscale_min、ScaleMaxscaleMaxscale_max、および ScaleStepscaleStepscale_step に単一の値が返されます。このパラメーターは、形 状モデルの等方性スケーリングパラメーターと一致します。形状モデル が create_aniso_shape_modelCreateAnisoShapeModel を使用して生成された場合、上 記 3 つのパラメーターに 2 つの値がそれぞれ返されます。ここで、それ ぞれのパラメーターの最初の値は行方向のスケーリングを指し、2 番目の 値は列方向のスケーリングを指します。

モデル生成中に自動的に求めることもできるパラメーター Optimizationoptimizationoptimization と Contrastcontrastcontrast は、 get_shape_model_paramsGetShapeModelParams を使用して照会できないことに注意し てください。これらの値に関心があれば、 determine_shape_model_paramsDetermineShapeModelParams を代わりに使用してください。

実行情報🔗

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

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

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

パラメーター🔗

ModelIDmodelIDmodel_id (input_control) shape_model → (handle)HTuple (HHandle)HShapeModel, HTuple (IntPtr)HHandleHtuple (handle)

モデルのハンドル

NumLevelsnumLevelsnum_levels (output_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

ピラミッドレベル数

AngleStartangleStartangle_start (output_control) angle.rad → (real)HTuple (double)HTuple (double)floatHtuple (double)

パターンの最小回転

AngleExtentangleExtentangle_extent (output_control) angle.rad → (real)HTuple (double)HTuple (double)floatHtuple (double)

回転角度の拡張

制限: AngleExtent >= 0

AngleStepangleStepangle_step (output_control) angle.rad → (real)HTuple (double)HTuple (double)floatHtuple (double)

角度ステップ長(解像度)

制限: AngleStep >= 0 && AngleStep <= pi/2

ScaleMinscaleMinscale_min (output_control) number(-array) → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

パターンの最小スケール

制限: ScaleMin > 0

ScaleMaxscaleMaxscale_max (output_control) number(-array) → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

パターンの最大スケール

制限: ScaleMax >= ScaleMin

ScaleStepscaleStepscale_step (output_control) number(-array) → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

ステップ幅の長さ

制限: ScaleStep >= 0

Metricmetricmetric (output_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

マッチ測定基準

MinContrastminContrastmin_contrast (output_control) number → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

検索画像中の対象の最小コントラスト

結果🔗

モデルのハンドルが有効であれば、オペレーター get_shape_model_paramsGetShapeModelParams は、値 2 (H_MSG_TRUE) を返します。必要に応じ て、例外処理が発生します。

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

組み合わせ

前処理の候補

create_shape_modelCreateShapeModel, create_scaled_shape_modelCreateScaledShapeModel, create_aniso_shape_modelCreateAnisoShapeModel, read_shape_modelReadShapeModel

他の選択候補

get_generic_shape_model_paramGetGenericShapeModelParam

関連項目

find_shape_modelFindShapeModel, find_scaled_shape_modelFindScaledShapeModel, find_aniso_shape_modelFindAnisoShapeModel, find_shape_modelsFindShapeModels, find_scaled_shape_modelsFindScaledShapeModels, find_aniso_shape_modelsFindAnisoShapeModels

モジュール🔗

Matching