create_texture_inspection_modelT_create_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModel (Operator)

Name

create_texture_inspection_modelT_create_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModel — Erzeugen eines Texturinspektionsmodells.

Signatur

create_texture_inspection_model( : : ModelType : TextureInspectionModel)

Herror T_create_texture_inspection_model(const Htuple ModelType, Htuple* TextureInspectionModel)

void CreateTextureInspectionModel(const HTuple& ModelType, HTuple* TextureInspectionModel)

void HTextureInspectionModel::HTextureInspectionModel(const HString& ModelType)

void HTextureInspectionModel::HTextureInspectionModel(const char* ModelType)

void HTextureInspectionModel::HTextureInspectionModel(const wchar_t* ModelType)   (Nur Windows)

void HTextureInspectionModel::CreateTextureInspectionModel(const HString& ModelType)

void HTextureInspectionModel::CreateTextureInspectionModel(const char* ModelType)

void HTextureInspectionModel::CreateTextureInspectionModel(const wchar_t* ModelType)   (Nur Windows)

static void HOperatorSet.CreateTextureInspectionModel(HTuple modelType, out HTuple textureInspectionModel)

public HTextureInspectionModel(string modelType)

void HTextureInspectionModel.CreateTextureInspectionModel(string modelType)

Beschreibung

create_texture_inspection_modelcreate_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModelCreateTextureInspectionModel erzeugt ein neues Texturinspektionsmodell TextureInspectionModelTextureInspectionModelTextureInspectionModelTextureInspectionModeltextureInspectionModel vom Typ ModelTypeModelTypeModelTypeModelTypemodelType. Aktuell ist nur der Typ 'basic'"basic""basic""basic""basic" verfügbar.

Die Parameter des Modells können mit get_texture_inspection_model_paramget_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParamGetTextureInspectionModelParam abgefragt und mit set_texture_inspection_model_paramset_texture_inspection_model_paramSetTextureInspectionModelParamSetTextureInspectionModelParamSetTextureInspectionModelParam manipuliert werden.

Das Konzept der Texturinspektion ist bei der Einleitung zum Kapitel Inspektion / Texturinspektion beschrieben.

Ausführungsinformationen

Dieser Operator liefert ein Handle zurück. Es ist zu beachten, dass der Zustand einer Instanz dieses Handletyps durch bestimmte Operatoren geändert werden kann, obwohl das Handle als Eingabeparameter in diesen Operatoren verwendet wird.

Parameter

ModelTypeModelTypeModelTypeModelTypemodelType (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Typ des erzeugten Texturinspektionsmodells.

Defaultwert: 'basic' "basic" "basic" "basic" "basic"

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

Handle des Texturinspektionsmodells.

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)
* 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 create_texture_inspection_modelcreate_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModelCreateTextureInspectionModel gibt 2 (H_MSG_TRUE) zurück.

Nachfolger

set_texture_inspection_model_paramset_texture_inspection_model_paramSetTextureInspectionModelParamSetTextureInspectionModelParamSetTextureInspectionModelParam, get_texture_inspection_model_paramget_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParamGetTextureInspectionModelParam, add_texture_inspection_model_imageadd_texture_inspection_model_imageAddTextureInspectionModelImageAddTextureInspectionModelImageAddTextureInspectionModelImage

Modul

Matching