set_deformable_model_paramT_set_deformable_model_paramSetDeformableModelParamSetDeformableModelParamset_deformable_model_param (Operator)

Name

set_deformable_model_paramT_set_deformable_model_paramSetDeformableModelParamSetDeformableModelParamset_deformable_model_param — Setzen ausgewählter Parameter eines deformierbaren Modells.

Signatur

set_deformable_model_param( : : ModelID, GenParamName, GenParamValue : )

Herror T_set_deformable_model_param(const Htuple ModelID, const Htuple GenParamName, const Htuple GenParamValue)

void SetDeformableModelParam(const HTuple& ModelID, const HTuple& GenParamName, const HTuple& GenParamValue)

void HDeformableModel::SetDeformableModelParam(const HTuple& GenParamName, const HTuple& GenParamValue) const

static void HOperatorSet.SetDeformableModelParam(HTuple modelID, HTuple genParamName, HTuple genParamValue)

void HDeformableModel.SetDeformableModelParam(HTuple genParamName, HTuple genParamValue)

def set_deformable_model_param(model_id: HHandle, gen_param_name: Sequence[str], gen_param_value: Sequence[Union[float, int, str]]) -> None

Beschreibung

Der Operator set_deformable_model_paramset_deformable_model_paramSetDeformableModelParamSetDeformableModelParamSetDeformableModelParamset_deformable_model_param setzt ausgewählte Parameter im Modell ModelIDModelIDModelIDModelIDmodelIDmodel_id. Die folgenden Parameter können modifiziert werden:

'min_contrast'"min_contrast""min_contrast""min_contrast""min_contrast""min_contrast"

Setzt im Modell ModelIDModelIDModelIDModelIDmodelIDmodel_id den minimalen Kontrast des Objekts in den Suchbildern. Damit wird der Wert 'min_contrast'"min_contrast""min_contrast""min_contrast""min_contrast""min_contrast", der ursprünglich z.B. mit create_planar_uncalib_deformable_modelcreate_planar_uncalib_deformable_modelCreatePlanarUncalibDeformableModelCreatePlanarUncalibDeformableModelCreatePlanarUncalibDeformableModelcreate_planar_uncalib_deformable_model gesetzt wurde, überschrieben. Falls das Modell ModelIDModelIDModelIDModelIDmodelIDmodel_id aus einer Datei eingelesen wurde und diese Datei geändert werden soll, muss das Formmodell ModelIDModelIDModelIDModelIDmodelIDmodel_id nochmals in die Datei geschrieben werden, nachdem der Operator set_deformable_model_paramset_deformable_model_paramSetDeformableModelParamSetDeformableModelParamSetDeformableModelParamset_deformable_model_param ausgeführt wurde.

'get_deformable_model_contours_coord_system'"get_deformable_model_contours_coord_system""get_deformable_model_contours_coord_system""get_deformable_model_contours_coord_system""get_deformable_model_contours_coord_system""get_deformable_model_contours_coord_system"

Setzt im Modell ModelIDModelIDModelIDModelIDmodelIDmodel_id das Koordinatensystem, in dem die Konturen beim Aufruf des Operators get_deformable_model_contoursget_deformable_model_contoursGetDeformableModelContoursGetDeformableModelContoursGetDeformableModelContoursget_deformable_model_contours zurückgegeben werden. Wird als Wert 'world'"world""world""world""world""world" übergeben, so werden die Konturen im Weltkoordinatensystem in metrischem Maß zurückgegeben. Dies ist nur für den kalibrierten Fall möglich. Wird als Wert 'image'"image""image""image""image""image" übergeben, so werden die Konturen im Bildkoordinatensystem im Pixelmaß zurückgeben. Für den kalibrierten Fall handelt es sich dabei um das rektifizierte Bildkoordinatensystem. Das rektifizierte Bildkoordinatensystem entspricht dem Koordinatensystem eines Bildes, das man mit change_radial_distortion_imagechange_radial_distortion_imageChangeRadialDistortionImageChangeRadialDistortionImageChangeRadialDistortionImagechange_radial_distortion_image unter Verwendung der rektifizierten Kameraparameter erhält. Die rektifizierten Kameraparameter lassen sich mit get_deformable_model_paramsget_deformable_model_paramsGetDeformableModelParamsGetDeformableModelParamsGetDeformableModelParamsget_deformable_model_params abfragen. Falls das Modell mit create_planar_calib_deformable_model_xldcreate_planar_calib_deformable_model_xldCreatePlanarCalibDeformableModelXldCreatePlanarCalibDeformableModelXldCreatePlanarCalibDeformableModelXldcreate_planar_calib_deformable_model_xld erzeugt wurde, ist dieser Wert standardmäßig auf 'world'"world""world""world""world""world" gesetzt, in allen anderen Fällen auf 'image'"image""image""image""image""image".

Ausführungsinformationen

Dieser Operator modifiziert den Zustand des folgenden Eingabeparameters:

Während der Ausführung dieses Operators muss der Zugriff auf den Wert dieses Parameters synchronisiert werden, wenn er über mehrere Threads hinweg verwendet wird.

Parameter

ModelIDModelIDModelIDModelIDmodelIDmodel_id (input_control, Zustand wird modifiziert)  deformable_model HDeformableModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle des Modells.

GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name (input_control)  attribute.name-array HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Parameternamen.

Werteliste: 'get_deformable_model_contours_coord_system'"get_deformable_model_contours_coord_system""get_deformable_model_contours_coord_system""get_deformable_model_contours_coord_system""get_deformable_model_contours_coord_system""get_deformable_model_contours_coord_system", 'min_contrast'"min_contrast""min_contrast""min_contrast""min_contrast""min_contrast"

GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value (input_control)  attribute.value-array HTupleSequence[Union[float, int, str]]HTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)

Parameterwerte.

Wertevorschläge: 5, 6, 7, 8, 9, 10, 'image'"image""image""image""image""image", 'world'"world""world""world""world""world"

Ergebnis

Sind die Parameterwerte korrekt, dann liefert set_deformable_model_paramset_deformable_model_paramSetDeformableModelParamSetDeformableModelParamSetDeformableModelParamset_deformable_model_param den Wert TRUE. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

create_planar_uncalib_deformable_modelcreate_planar_uncalib_deformable_modelCreatePlanarUncalibDeformableModelCreatePlanarUncalibDeformableModelCreatePlanarUncalibDeformableModelcreate_planar_uncalib_deformable_model, create_planar_calib_deformable_modelcreate_planar_calib_deformable_modelCreatePlanarCalibDeformableModelCreatePlanarCalibDeformableModelCreatePlanarCalibDeformableModelcreate_planar_calib_deformable_model, create_local_deformable_modelcreate_local_deformable_modelCreateLocalDeformableModelCreateLocalDeformableModelCreateLocalDeformableModelcreate_local_deformable_model, read_deformable_modelread_deformable_modelReadDeformableModelReadDeformableModelReadDeformableModelread_deformable_model

Nachfolger

find_planar_uncalib_deformable_modelfind_planar_uncalib_deformable_modelFindPlanarUncalibDeformableModelFindPlanarUncalibDeformableModelFindPlanarUncalibDeformableModelfind_planar_uncalib_deformable_model, find_planar_calib_deformable_modelfind_planar_calib_deformable_modelFindPlanarCalibDeformableModelFindPlanarCalibDeformableModelFindPlanarCalibDeformableModelfind_planar_calib_deformable_model

Siehe auch

get_deformable_model_contoursget_deformable_model_contoursGetDeformableModelContoursGetDeformableModelContoursGetDeformableModelContoursget_deformable_model_contours, get_deformable_model_paramsget_deformable_model_paramsGetDeformableModelParamsGetDeformableModelParamsGetDeformableModelParamsget_deformable_model_params

Modul

Matching