ClassesClassesClassesClasses | | | | Operators

create_texture_inspection_modelcreate_texture_inspection_modelCreateTextureInspectionModelcreate_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModel (Operator)

Name

create_texture_inspection_modelcreate_texture_inspection_modelCreateTextureInspectionModelcreate_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModel — Create a texture inspection model.

Signature

create_texture_inspection_model( : : ModelType : TextureInspectionModel)

Herror create_texture_inspection_model(const char* ModelType, Hlong* TextureInspectionModel)

Herror T_create_texture_inspection_model(const Htuple ModelType, Htuple* TextureInspectionModel)

Herror create_texture_inspection_model(const HTuple& ModelType, Hlong* TextureInspectionModel)

void HTextureInspectionModel::CreateTextureInspectionModel(const HTuple& ModelType)

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

void HTextureInspectionModel::HTextureInspectionModel(const HString& ModelType)

void HTextureInspectionModel::HTextureInspectionModel(const char* ModelType)

void HTextureInspectionModel::CreateTextureInspectionModel(const HString& ModelType)

void HTextureInspectionModel::CreateTextureInspectionModel(const char* ModelType)

void HOperatorSetX.CreateTextureInspectionModel(
[in] VARIANT ModelType, [out] VARIANT* TextureInspectionModel)

void HTextureInspectionModelX.CreateTextureInspectionModel([in] BSTR ModelType)

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

public HTextureInspectionModel(string modelType)

void HTextureInspectionModel.CreateTextureInspectionModel(string modelType)

Description

create_texture_inspection_modelcreate_texture_inspection_modelCreateTextureInspectionModelcreate_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModel creates a new texture inspection model of type ModelTypeModelTypeModelTypeModelTypeModelTypemodelType. Currently, only the type 'basic'"basic""basic""basic""basic""basic" is supported.

The parameters of the texture inspection can be queried with get_texture_inspection_model_paramget_texture_inspection_model_paramGetTextureInspectionModelParamget_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParam and manipulated by calls to set_texture_inspection_model_paramset_texture_inspection_model_paramSetTextureInspectionModelParamset_texture_inspection_model_paramSetTextureInspectionModelParamSetTextureInspectionModelParam.

Since create_texture_inspection_modelcreate_texture_inspection_modelCreateTextureInspectionModelcreate_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModel and the succeeding operators allocate memory for the texture inspection model, the model has to be cleared with clear_texture_inspection_modelclear_texture_inspection_modelClearTextureInspectionModelclear_texture_inspection_modelClearTextureInspectionModelClearTextureInspectionModel when it is no longer required.

For an explanation of the concept of the texture inspection see the introduction of chapter Inspection / Texture Inspection.

Parallelization

This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.

Parameters

ModelTypeModelTypeModelTypeModelTypeModelTypemodelType (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

The type of the created texture inspection model.

Default value: 'basic' "basic" "basic" "basic" "basic" "basic"

TextureInspectionModelTextureInspectionModelTextureInspectionModelTextureInspectionModelTextureInspectionModeltextureInspectionModel (output_control)  texture_inspection_model HTextureInspectionModel, HTupleHTupleHTextureInspectionModel, HTupleHTextureInspectionModelX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Handle for using and accessing the texture inspection model.

Example (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)
* Clean up
clear_texture_inspection_model (TextureInspectionModel)

Result

The operator create_texture_inspection_modelcreate_texture_inspection_modelCreateTextureInspectionModelcreate_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModel returns the value 2 (H_MSG_TRUE) in the texture inspection model can be allocated correctly. Otherwise, an exception will be raised..

Possible Successors

set_texture_inspection_model_paramset_texture_inspection_model_paramSetTextureInspectionModelParamset_texture_inspection_model_paramSetTextureInspectionModelParamSetTextureInspectionModelParam, get_texture_inspection_model_paramget_texture_inspection_model_paramGetTextureInspectionModelParamget_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParam, add_texture_inspection_model_imageadd_texture_inspection_model_imageAddTextureInspectionModelImageadd_texture_inspection_model_imageAddTextureInspectionModelImageAddTextureInspectionModelImage

Module

Matching


ClassesClassesClassesClasses | | | | Operators