get_texture_inspection_model_paramT_get_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParamget_texture_inspection_model_param (Operator)
Name
get_texture_inspection_model_paramT_get_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParamget_texture_inspection_model_param — Abfragen von Parametern eines Texturinspektionsmodells.
Signatur
Beschreibung
Der Operator get_texture_inspection_model_paramget_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParamGetTextureInspectionModelParamget_texture_inspection_model_param wird genutzt, um die
Werte der verschiedenen Parameter des Texturinspektionsmodells
TextureInspectionModelTextureInspectionModelTextureInspectionModelTextureInspectionModeltextureInspectionModeltexture_inspection_model abzufragen. Die Namen der gewünschten
Parameter werden im Parameter GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name übergeben. Die
zugehörigen Werte werden in GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value zurückgegeben. Es können
mehrere Parameter mit einem einzigen Aufruf von
get_texture_inspection_model_paramget_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParamGetTextureInspectionModelParamget_texture_inspection_model_param abgefragt werden. Es können alle
Parameter abgefragt werden, die mit
set_texture_inspection_model_paramset_texture_inspection_model_paramSetTextureInspectionModelParamSetTextureInspectionModelParamSetTextureInspectionModelParamset_texture_inspection_model_param gesetzt werden können. Für die
Beschreibung der einzelnen Parameter siehe die Dokumentation von
set_texture_inspection_model_paramset_texture_inspection_model_paramSetTextureInspectionModelParamSetTextureInspectionModelParamSetTextureInspectionModelParamset_texture_inspection_model_param. Darüber hinaus ist es möglich,
die folgenden Parameter abzurufen:
- 'gmm_centers'"gmm_centers""gmm_centers""gmm_centers""gmm_centers""gmm_centers":
-
Gibt die Anzahl der gaußschen Verteilungen zurück, die im Trainingsprozess
als optimal ermittelt wurde. Diese Rückgabe kann als Referenz für
zukünftig zu erstellende Texturmodelle dienen. Der Wertebereich für die
mögliche Anzahl an Verteilungen wird durch die Festlegung der Parameter
'gmm_pmincenters'"gmm_pmincenters""gmm_pmincenters""gmm_pmincenters""gmm_pmincenters""gmm_pmincenters" und 'gmm_pmaxcenters'"gmm_pmaxcenters""gmm_pmaxcenters""gmm_pmaxcenters""gmm_pmaxcenters""gmm_pmaxcenters" bestimmt. Jede
Bildpyramidenstufe kann eine unterschiedliche Anzahl an gaußschen
Verteilungen aufweisen. Durch das Anhängen eines Indizes an den Parameter
lässt sich die Anzahl der gaußschen Verteilungen für eine bestimme
Bildpyramidenstufe anzeigen. 'gmm_centers_3'"gmm_centers_3""gmm_centers_3""gmm_centers_3""gmm_centers_3""gmm_centers_3" liefert
beispielsweise die Anzahl der gaußschen Verteilungen für die dritte
Bildpyramidenstufe.
- 'image_indices'"image_indices""image_indices""image_indices""image_indices""image_indices":
-
Gibt die Indices der Bilder zurück, die dem Texturinspektionsmodell
mit add_texture_inspection_model_imageadd_texture_inspection_model_imageAddTextureInspectionModelImageAddTextureInspectionModelImageAddTextureInspectionModelImageadd_texture_inspection_model_image hinzugefügt wurden. Es
werden nur die Indices der Bilder zurückgegeben, die sich aktuell im
Modell befinden, also nicht mit
remove_texture_inspection_model_imageremove_texture_inspection_model_imageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImageremove_texture_inspection_model_image entfernt wurden.
- 'trained_covartype'"trained_covartype""trained_covartype""trained_covartype""trained_covartype""trained_covartype":
-
Liefert den Typ der Kovarianzmatrix, der während des Trainings verwendet
wurde. Der Benutzer hat die Möglichkeit die bevorzugte Art der
Kovarianzmatrix mit dem Setzen von 'gmm_covartype'"gmm_covartype""gmm_covartype""gmm_covartype""gmm_covartype""gmm_covartype" in
set_texture_inspection_model_paramset_texture_inspection_model_paramSetTextureInspectionModelParamSetTextureInspectionModelParamSetTextureInspectionModelParamset_texture_inspection_model_param einzustellen. Wenn jedoch das
Training mit dem bevorzugten Kovarianz-Typ fehlschlägt, wird das Training
mit einem Kovarianz-Typ mit weniger Freiheitsgeraden neu initialisiert.
Wenn zum Beispiel das Training mit 'diag'"diag""diag""diag""diag""diag" scheitert, wird ein
weiteres Training mit 'spherical'"spherical""spherical""spherical""spherical""spherical" ausgeführt.
Zur besseren Übersicht können Parametern die tupelwertig sein können
nur einzeln und nicht zusammen mit anderen Parametern abgefragt werden.
Dazu gehören die Parameter 'image_indices'"image_indices""image_indices""image_indices""image_indices""image_indices",
'gmm_centers'"gmm_centers""gmm_centers""gmm_centers""gmm_centers""gmm_centers", 'levels'"levels""levels""levels""levels""levels" und 'novelty_threshold'"novelty_threshold""novelty_threshold""novelty_threshold""novelty_threshold""novelty_threshold".
Das Konzept der Texturinspektion ist bei der Einleitung zum Kapitel
Inspektion / Texturinspektion beschrieben.
Ausführungsinformationen
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
Parameter
TextureInspectionModelTextureInspectionModelTextureInspectionModelTextureInspectionModeltextureInspectionModeltexture_inspection_model (input_control) texture_inspection_model → HTextureInspectionModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle des Texturinspektionsmodells.
GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name (input_control) string(-array) → HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Name des abgefragten Modellparameters.
Defaultwert:
'novelty_threshold'
"novelty_threshold"
"novelty_threshold"
"novelty_threshold"
"novelty_threshold"
"novelty_threshold"
Werteliste: 'gen_result_handle'"gen_result_handle""gen_result_handle""gen_result_handle""gen_result_handle""gen_result_handle", 'gmm_centers'"gmm_centers""gmm_centers""gmm_centers""gmm_centers""gmm_centers", 'gmm_covartype'"gmm_covartype""gmm_covartype""gmm_covartype""gmm_covartype""gmm_covartype", 'gmm_em_max_iter'"gmm_em_max_iter""gmm_em_max_iter""gmm_em_max_iter""gmm_em_max_iter""gmm_em_max_iter", 'gmm_em_regularize'"gmm_em_regularize""gmm_em_regularize""gmm_em_regularize""gmm_em_regularize""gmm_em_regularize", 'gmm_em_threshold'"gmm_em_threshold""gmm_em_threshold""gmm_em_threshold""gmm_em_threshold""gmm_em_threshold", 'gmm_ncomp'"gmm_ncomp""gmm_ncomp""gmm_ncomp""gmm_ncomp""gmm_ncomp", 'gmm_pmaxcenters'"gmm_pmaxcenters""gmm_pmaxcenters""gmm_pmaxcenters""gmm_pmaxcenters""gmm_pmaxcenters", 'gmm_pmincenters'"gmm_pmincenters""gmm_pmincenters""gmm_pmincenters""gmm_pmincenters""gmm_pmincenters", 'gmm_preprocessing'"gmm_preprocessing""gmm_preprocessing""gmm_preprocessing""gmm_preprocessing""gmm_preprocessing", 'gmm_randseed'"gmm_randseed""gmm_randseed""gmm_randseed""gmm_randseed""gmm_randseed", 'gmm_sigma'"gmm_sigma""gmm_sigma""gmm_sigma""gmm_sigma""gmm_sigma", 'image_indices'"image_indices""image_indices""image_indices""image_indices""image_indices", 'levels'"levels""levels""levels""levels""levels", 'novelty_threshold'"novelty_threshold""novelty_threshold""novelty_threshold""novelty_threshold""novelty_threshold", 'num_levels'"num_levels""num_levels""num_levels""num_levels""num_levels", 'patch_normalization'"patch_normalization""patch_normalization""patch_normalization""patch_normalization""patch_normalization", 'patch_rotational_robustness'"patch_rotational_robustness""patch_rotational_robustness""patch_rotational_robustness""patch_rotational_robustness""patch_rotational_robustness", 'patch_size'"patch_size""patch_size""patch_size""patch_size""patch_size", 'sensitivity'"sensitivity""sensitivity""sensitivity""sensitivity""sensitivity", 'trained_covartype'"trained_covartype""trained_covartype""trained_covartype""trained_covartype""trained_covartype"
GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value (output_control) string(-array) → HTupleSequence[Union[int, float, str]]HTupleHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*)
Wert des abgefragten Modellparameters.
Beispiel (HDevelop)
* Create texture inspection model
create_texture_inspection_model ('basic', TextureInspectionModel)
* Make this short example fast:
set_texture_inspection_model_param (TextureInspectionModel, \
'gmm_em_max_iter', 1)
* Get parameters
get_texture_inspection_model_param (TextureInspectionModel, 'patch_size', \
PatchSize)
* Read and add training images
read_image (TrainImage, 'carpet/carpet_01')
add_texture_inspection_model_image (TrainImage, TextureInspectionModel, \
Indices)
* Train the model
train_texture_inspection_model (TextureInspectionModel)
* Read and apply a test image
read_image (TestImage, 'carpet/carpet_02')
apply_texture_inspection_model (TestImage, DefectCandidates, \
TextureInspectionModel, \
TextureInspectionResultID)
Ergebnis
Der Operator get_texture_inspection_model_paramget_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParamGetTextureInspectionModelParamget_texture_inspection_model_param gibt 2 (H_MSG_TRUE) zurück,
sofern alle Parameter korrekt sind. Andernfalls wird eine Fehlerbehandlung
ausgelöst.
Vorgänger
create_texture_inspection_modelcreate_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModelCreateTextureInspectionModelcreate_texture_inspection_model,
train_texture_inspection_modeltrain_texture_inspection_modelTrainTextureInspectionModelTrainTextureInspectionModelTrainTextureInspectionModeltrain_texture_inspection_model
Nachfolger
add_texture_inspection_model_imageadd_texture_inspection_model_imageAddTextureInspectionModelImageAddTextureInspectionModelImageAddTextureInspectionModelImageadd_texture_inspection_model_image,
train_texture_inspection_modeltrain_texture_inspection_modelTrainTextureInspectionModelTrainTextureInspectionModelTrainTextureInspectionModeltrain_texture_inspection_model
Siehe auch
set_texture_inspection_model_paramset_texture_inspection_model_paramSetTextureInspectionModelParamSetTextureInspectionModelParamSetTextureInspectionModelParamset_texture_inspection_model_param
Modul
Matching