create_texture_inspection_modelT_create_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModelcreate_texture_inspection_model (算子名称)

名称

create_texture_inspection_modelT_create_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModelcreate_texture_inspection_model — Create a texture inspection model.

参数签名

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)   ( Windows only)

void HTextureInspectionModel::CreateTextureInspectionModel(const HString& ModelType)

void HTextureInspectionModel::CreateTextureInspectionModel(const char* ModelType)

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

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

public HTextureInspectionModel(string modelType)

void HTextureInspectionModel.CreateTextureInspectionModel(string modelType)

def create_texture_inspection_model(model_type: str) -> HHandle

描述

create_texture_inspection_modelcreate_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModelCreateTextureInspectionModelcreate_texture_inspection_model creates a new texture inspection model of type ModelTypeModelTypeModelTypeModelTypemodelTypemodel_type. Currently, only the model 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_paramGetTextureInspectionModelParamGetTextureInspectionModelParamGetTextureInspectionModelParamget_texture_inspection_model_param and manipulated by calls to set_texture_inspection_model_paramset_texture_inspection_model_paramSetTextureInspectionModelParamSetTextureInspectionModelParamSetTextureInspectionModelParamset_texture_inspection_model_param.

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

运行信息

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.

参数表

ModelTypeModelTypeModelTypeModelTypemodelTypemodel_type (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

The type of the created texture inspection model.

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

List of values: 'basic'"basic""basic""basic""basic""basic"

TextureInspectionModelTextureInspectionModelTextureInspectionModelTextureInspectionModeltextureInspectionModeltexture_inspection_model (output_control)  texture_inspection_model HTextureInspectionModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle for using and accessing the texture inspection model.

例程 (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)

结果

该算子 create_texture_inspection_modelcreate_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModelCreateTextureInspectionModelcreate_texture_inspection_model 返回值 2 ( H_MSG_TRUE) in the texture inspection model can be allocated correctly. Otherwise, an exception will be raised..

可能的后置算子

set_texture_inspection_model_paramset_texture_inspection_model_paramSetTextureInspectionModelParamSetTextureInspectionModelParamSetTextureInspectionModelParamset_texture_inspection_model_param, get_texture_inspection_model_paramget_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParamGetTextureInspectionModelParamget_texture_inspection_model_param, add_texture_inspection_model_imageadd_texture_inspection_model_imageAddTextureInspectionModelImageAddTextureInspectionModelImageAddTextureInspectionModelImageadd_texture_inspection_model_image

模块

Matching