get_shape_model_paramsT_get_shape_model_paramsGetShapeModelParamsGetShapeModelParams (Operator)

Name

get_shape_model_paramsT_get_shape_model_paramsGetShapeModelParamsGetShapeModelParams — Auslesen der Parameter eines Formmodells.

Signatur

get_shape_model_params( : : ModelID : NumLevels, AngleStart, AngleExtent, AngleStep, ScaleMin, ScaleMax, ScaleStep, Metric, MinContrast)

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)

void GetShapeModelParams(const HTuple& ModelID, HTuple* NumLevels, HTuple* AngleStart, HTuple* AngleExtent, HTuple* AngleStep, HTuple* ScaleMin, HTuple* ScaleMax, HTuple* ScaleStep, HTuple* Metric, HTuple* MinContrast)

Hlong 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

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)

int 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)

Beschreibung

Der Operator get_shape_model_paramsget_shape_model_paramsGetShapeModelParamsGetShapeModelParamsGetShapeModelParams gibt die zur Erzeugung des Formmodells ModelIDModelIDModelIDModelIDmodelID mit create_shape_modelcreate_shape_modelCreateShapeModelCreateShapeModelCreateShapeModel, create_scaled_shape_modelcreate_scaled_shape_modelCreateScaledShapeModelCreateScaledShapeModelCreateScaledShapeModel oder create_aniso_shape_modelcreate_aniso_shape_modelCreateAnisoShapeModelCreateAnisoShapeModelCreateAnisoShapeModel verwendeten Parameter zurück. Dies ist insbesondere hilfreich, um die Parameter NumLevelsNumLevelsNumLevelsNumLevelsnumLevels, AngleStepAngleStepAngleStepAngleStepangleStep, ScaleStepScaleStepScaleStepScaleStepscaleStep oder MinContrastMinContrastMinContrastMinContrastminContrast zu überprüfen, falls diese durch create_shape_modelcreate_shape_modelCreateShapeModelCreateShapeModelCreateShapeModel, create_scaled_shape_modelcreate_scaled_shape_modelCreateScaledShapeModelCreateScaledShapeModelCreateScaledShapeModel oder create_aniso_shape_modelcreate_aniso_shape_modelCreateAnisoShapeModelCreateAnisoShapeModelCreateAnisoShapeModel automatisch bestimmt wurden.

Falls das Formmodell mit create_shape_modelcreate_shape_modelCreateShapeModelCreateShapeModelCreateShapeModel oder create_scaled_shape_modelcreate_scaled_shape_modelCreateScaledShapeModelCreateScaledShapeModelCreateScaledShapeModel erzeugt worden ist, wird in ScaleMinScaleMinScaleMinScaleMinscaleMin, ScaleMaxScaleMaxScaleMaxScaleMaxscaleMax und ScaleStepScaleStepScaleStepScaleStepscaleStep jeweils ein Wert für den jeweiligen isotropen Skalierungsparameter zurückgegeben. Falls das Formmodell mit create_aniso_shape_modelcreate_aniso_shape_modelCreateAnisoShapeModelCreateAnisoShapeModelCreateAnisoShapeModel erzeugt worden ist, werden in den obigen drei Parametern jeweils zwei Werte zurückgegeben. Dabei bezieht sich der jeweils erste Parameter auf die Skalierung in Zeilenrichtung, der jeweils zweite Parameter auf die Skalierung in Spaltenrichtung.

Zu beachten ist, dass die Parameter OptimizationOptimizationOptimizationOptimizationoptimization und ContrastContrastContrastContrastcontrast, die während der Modellgenerierung ebenfalls automatisch bestimmt werden können, nicht mit get_shape_model_paramsget_shape_model_paramsGetShapeModelParamsGetShapeModelParamsGetShapeModelParams abgefragt werden können. In diesem Fall sollte determine_shape_model_paramsdetermine_shape_model_paramsDetermineShapeModelParamsDetermineShapeModelParamsDetermineShapeModelParams statt get_shape_model_paramsget_shape_model_paramsGetShapeModelParamsGetShapeModelParamsGetShapeModelParams verwendet werden.

Ausführungsinformationen

Parameter

ModelIDModelIDModelIDModelIDmodelID (input_control)  shape_model HShapeModel, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle des Modells.

NumLevelsNumLevelsNumLevelsNumLevelsnumLevels (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Anzahl von Pyramidenebenen.

AngleStartAngleStartAngleStartAngleStartangleStart (output_control)  angle.rad HTupleHTupleHtuple (real) (double) (double) (double)

Kleinste auftretende Rotation des Musters.

AngleExtentAngleExtentAngleExtentAngleExtentangleExtent (output_control)  angle.rad HTupleHTupleHtuple (real) (double) (double) (double)

Ausdehnung des Winkelbereichs.

Zusicherung: AngleExtent >= 0

AngleStepAngleStepAngleStepAngleStepangleStep (output_control)  angle.rad HTupleHTupleHtuple (real) (double) (double) (double)

Schrittweite der Winkel (Auflösung).

Zusicherung: AngleStep >= 0 && AngleStep <= pi / 16

ScaleMinScaleMinScaleMinScaleMinscaleMin (output_control)  number(-array) HTupleHTupleHtuple (real) (double) (double) (double)

Kleinste auftretende Skalierung des Musters.

Zusicherung: ScaleMin > 0

ScaleMaxScaleMaxScaleMaxScaleMaxscaleMax (output_control)  number(-array) HTupleHTupleHtuple (real) (double) (double) (double)

Größte auftretende Skalierung des Musters.

Zusicherung: ScaleMax >= ScaleMin

ScaleStepScaleStepScaleStepScaleStepscaleStep (output_control)  number(-array) HTupleHTupleHtuple (real) (double) (double) (double)

Schrittweite der Skalierungen (Auflösung).

Zusicherung: ScaleStep >= 0

MetricMetricMetricMetricmetric (output_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Art der zum Matchen verwendeten Metrik.

MinContrastMinContrastMinContrastMinContrastminContrast (output_control)  number HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Minimaler Kontrast des Objektes in den Suchbildern.

Ergebnis

Ist der Handle des Modells gültig, dann liefert get_shape_model_paramsget_shape_model_paramsGetShapeModelParamsGetShapeModelParamsGetShapeModelParams den Wert 2 (H_MSG_TRUE). Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

create_shape_modelcreate_shape_modelCreateShapeModelCreateShapeModelCreateShapeModel, create_scaled_shape_modelcreate_scaled_shape_modelCreateScaledShapeModelCreateScaledShapeModelCreateScaledShapeModel, create_aniso_shape_modelcreate_aniso_shape_modelCreateAnisoShapeModelCreateAnisoShapeModelCreateAnisoShapeModel, read_shape_modelread_shape_modelReadShapeModelReadShapeModelReadShapeModel

Siehe auch

find_shape_modelfind_shape_modelFindShapeModelFindShapeModelFindShapeModel, find_scaled_shape_modelfind_scaled_shape_modelFindScaledShapeModelFindScaledShapeModelFindScaledShapeModel, find_aniso_shape_modelfind_aniso_shape_modelFindAnisoShapeModelFindAnisoShapeModelFindAnisoShapeModel, find_shape_modelsfind_shape_modelsFindShapeModelsFindShapeModelsFindShapeModels, find_scaled_shape_modelsfind_scaled_shape_modelsFindScaledShapeModelsFindScaledShapeModelsFindScaledShapeModels, find_aniso_shape_modelsfind_aniso_shape_modelsFindAnisoShapeModelsFindAnisoShapeModelsFindAnisoShapeModels

Modul

Matching