clear_texture_inspection_modelT_clear_texture_inspection_modelClearTextureInspectionModelClearTextureInspectionModel (Operator)

Name

clear_texture_inspection_modelT_clear_texture_inspection_modelClearTextureInspectionModelClearTextureInspectionModel — Clear a texture inspection model and free the allocated memory.

Signature

clear_texture_inspection_model( : : TextureInspectionModel : )

Herror T_clear_texture_inspection_model(const Htuple TextureInspectionModel)

void ClearTextureInspectionModel(const HTuple& TextureInspectionModel)

static void HTextureInspectionModel::ClearTextureInspectionModel(const HTextureInspectionModelArray& TextureInspectionModel)

void HTextureInspectionModel::ClearTextureInspectionModel() const

static void HOperatorSet.ClearTextureInspectionModel(HTuple textureInspectionModel)

static void HTextureInspectionModel.ClearTextureInspectionModel(HTextureInspectionModel[] textureInspectionModel)

void HTextureInspectionModel.ClearTextureInspectionModel()

Description

The operator clear_texture_inspection_modelclear_texture_inspection_modelClearTextureInspectionModelClearTextureInspectionModelClearTextureInspectionModel deletes a texture inspection model that was created by create_texture_inspection_modelcreate_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModelCreateTextureInspectionModel. All memory used by the model is freed. The handle of the model is passed in TextureInspectionModelTextureInspectionModelTextureInspectionModelTextureInspectionModeltextureInspectionModel. It is invalid after the operator call.

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

Execution Information

This operator modifies the state of the following input parameter:

The value of this parameter may not be shared across multiple threads without external synchronization.

Parameters

TextureInspectionModelTextureInspectionModelTextureInspectionModelTextureInspectionModeltextureInspectionModel (input_control, state is modified)  texture_inspection_model(-array) HTextureInspectionModel, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the texture inspection model.

Example (HDevelop)

* Create texture inspection model
create_texture_inspection_model ('basic', TextureInspectionModel)
* 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)

Result

The operator clear_texture_inspection_modelclear_texture_inspection_modelClearTextureInspectionModelClearTextureInspectionModelClearTextureInspectionModel returns the value 2 (H_MSG_TRUE) if a valid handle is passed and the referred texture inspection model can be freed correctly. Otherwise, an exception will be raised.

See also

create_texture_inspection_modelcreate_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModelCreateTextureInspectionModel

Module

Matching