get_texture_inspection_model_paramT_get_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParam (Operator)

Name

get_texture_inspection_model_paramT_get_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParam — Abfragen von Parametern eines Texturinspektionsmodells.

Signatur

get_texture_inspection_model_param( : : TextureInspectionModel, GenParamName : GenParamValue)

Herror T_get_texture_inspection_model_param(const Htuple TextureInspectionModel, const Htuple GenParamName, Htuple* GenParamValue)

void GetTextureInspectionModelParam(const HTuple& TextureInspectionModel, const HTuple& GenParamName, HTuple* GenParamValue)

HTuple HTextureInspectionModel::GetTextureInspectionModelParam(const HTuple& GenParamName) const

HTuple HTextureInspectionModel::GetTextureInspectionModelParam(const HString& GenParamName) const

HTuple HTextureInspectionModel::GetTextureInspectionModelParam(const char* GenParamName) const

HTuple HTextureInspectionModel::GetTextureInspectionModelParam(const wchar_t* GenParamName) const   (Nur Windows)

static void HOperatorSet.GetTextureInspectionModelParam(HTuple textureInspectionModel, HTuple genParamName, out HTuple genParamValue)

HTuple HTextureInspectionModel.GetTextureInspectionModelParam(HTuple genParamName)

HTuple HTextureInspectionModel.GetTextureInspectionModelParam(string genParamName)

Beschreibung

Der Operator get_texture_inspection_model_paramget_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParamGetTextureInspectionModelParam wird genutzt, um die Werte der verschiedenen Parameter des Texturinspektionsmodells TextureInspectionModelTextureInspectionModelTextureInspectionModelTextureInspectionModeltextureInspectionModel abzufragen. Die Namen der gewünschten Parameter werden im Parameter GenParamNameGenParamNameGenParamNameGenParamNamegenParamName übergeben. Die zugehörigen Werte werden in GenParamValueGenParamValueGenParamValueGenParamValuegenParamValue zurückgegeben. Es können mehrere Parameter mit einem einzigen Aufruf von get_texture_inspection_model_paramget_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParamGetTextureInspectionModelParam abgefragt werden. Es können alle Parameter abgefragt werden, die mit set_texture_inspection_model_paramset_texture_inspection_model_paramSetTextureInspectionModelParamSetTextureInspectionModelParamSetTextureInspectionModelParam gesetzt werden können. Für die Beschreibung der einzelnen Parameter siehe die Dokumentation von set_texture_inspection_model_paramset_texture_inspection_model_paramSetTextureInspectionModelParamSetTextureInspectionModelParamSetTextureInspectionModelParam. Darüber hinaus ist es möglich, die folgenden Parameter abzurufen:

'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" und '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" liefert beispielsweise die Anzahl der gaußschen Verteilungen für die dritte Bildpyramidenstufe.

'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_imageAddTextureInspectionModelImageAddTextureInspectionModelImageAddTextureInspectionModelImage 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_imageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImageRemoveTextureInspectionModelImage entfernt wurden.

Zur besseren Übersicht können Parametern die tuplewertig 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", 'gmm_centers'"gmm_centers""gmm_centers""gmm_centers""gmm_centers", 'levels'"levels""levels""levels""levels" und '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

Parameter

TextureInspectionModelTextureInspectionModelTextureInspectionModelTextureInspectionModeltextureInspectionModel (input_control)  texture_inspection_model HTextureInspectionModel, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle des Texturinspektionsmodells.

GenParamNameGenParamNameGenParamNameGenParamNamegenParamName (input_control)  string(-array) HTupleHTupleHtuple (string) (string) (HString) (char*)

Name des abgefragten Modellparameters.

Defaultwert: '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", 'gmm_centers'"gmm_centers""gmm_centers""gmm_centers""gmm_centers", '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_threshold'"gmm_em_threshold""gmm_em_threshold""gmm_em_threshold""gmm_em_threshold", 'gmm_ncomp'"gmm_ncomp""gmm_ncomp""gmm_ncomp""gmm_ncomp", 'gmm_pmaxcenters'"gmm_pmaxcenters""gmm_pmaxcenters""gmm_pmaxcenters""gmm_pmaxcenters", 'gmm_pmincenters'"gmm_pmincenters""gmm_pmincenters""gmm_pmincenters""gmm_pmincenters", 'gmm_preprocessing'"gmm_preprocessing""gmm_preprocessing""gmm_preprocessing""gmm_preprocessing", 'gmm_randseed'"gmm_randseed""gmm_randseed""gmm_randseed""gmm_randseed", 'gmm_sigma'"gmm_sigma""gmm_sigma""gmm_sigma""gmm_sigma", 'image_indices'"image_indices""image_indices""image_indices""image_indices", 'levels'"levels""levels""levels""levels", 'novelty_threshold'"novelty_threshold""novelty_threshold""novelty_threshold""novelty_threshold", 'num_levels'"num_levels""num_levels""num_levels""num_levels", '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_size'"patch_size""patch_size""patch_size""patch_size", 'sensitivity'"sensitivity""sensitivity""sensitivity""sensitivity"

GenParamValueGenParamValueGenParamValueGenParamValuegenParamValue (output_control)  string(-array) HTupleHTupleHtuple (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_paramGetTextureInspectionModelParamGetTextureInspectionModelParamGetTextureInspectionModelParam 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_modelCreateTextureInspectionModelCreateTextureInspectionModelCreateTextureInspectionModel, train_texture_inspection_modeltrain_texture_inspection_modelTrainTextureInspectionModelTrainTextureInspectionModelTrainTextureInspectionModel

Nachfolger

add_texture_inspection_model_imageadd_texture_inspection_model_imageAddTextureInspectionModelImageAddTextureInspectionModelImageAddTextureInspectionModelImage, train_texture_inspection_modeltrain_texture_inspection_modelTrainTextureInspectionModelTrainTextureInspectionModelTrainTextureInspectionModel

Siehe auch

set_texture_inspection_model_paramset_texture_inspection_model_paramSetTextureInspectionModelParamSetTextureInspectionModelParamSetTextureInspectionModelParam

Modul

Matching