Operator Reference

clear_texture_inspection_resultT_clear_texture_inspection_resultClearTextureInspectionResultClearTextureInspectionResultclear_texture_inspection_result (Operator)

clear_texture_inspection_resultT_clear_texture_inspection_resultClearTextureInspectionResultClearTextureInspectionResultclear_texture_inspection_result — Clear a texture inspection result handle and free the allocated memory.

Signature

clear_texture_inspection_result( : : TextureInspectionResultID : )

Herror T_clear_texture_inspection_result(const Htuple TextureInspectionResultID)

void ClearTextureInspectionResult(const HTuple& TextureInspectionResultID)

static void HTextureInspectionResult::ClearTextureInspectionResult(const HTextureInspectionResultArray& TextureInspectionResultID)

void HTextureInspectionResult::ClearTextureInspectionResult() const

static void HOperatorSet.ClearTextureInspectionResult(HTuple textureInspectionResultID)

static void HTextureInspectionResult.ClearTextureInspectionResult(HTextureInspectionResult[] textureInspectionResultID)

void HTextureInspectionResult.ClearTextureInspectionResult()

def clear_texture_inspection_result(texture_inspection_result_id: MaybeSequence[HHandle]) -> None

Description

The operator clear_texture_inspection_resultclear_texture_inspection_resultClearTextureInspectionResultClearTextureInspectionResultclear_texture_inspection_result clears the texture inspection result TextureInspectionResultIDTextureInspectionResultIDTextureInspectionResultIDtextureInspectionResultIDtexture_inspection_result_id that was created by apply_texture_inspection_modelapply_texture_inspection_modelApplyTextureInspectionModelApplyTextureInspectionModelapply_texture_inspection_model. All memory used by the model is freed. The handle of the model 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

  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).
  • Multithreading scope: global (may be called from any thread).
  • Processed without parallelization.

This operator modifies the state of the following input parameter:

During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.

Parameters

TextureInspectionResultIDTextureInspectionResultIDTextureInspectionResultIDtextureInspectionResultIDtexture_inspection_result_id (input_control, state is modified)  texture_inspection_result(-array) HTextureInspectionResult, HTupleMaybeSequence[HHandle]HTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the texture inspection results.

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)
* Set parameter to generate a result handle
set_texture_inspection_model_param (TextureInspectionModel, \
                                    'gen_result_handle', 'true')
* 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_resultclear_texture_inspection_resultClearTextureInspectionResultClearTextureInspectionResultclear_texture_inspection_result 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.

Possible Predecessors

apply_texture_inspection_modelapply_texture_inspection_modelApplyTextureInspectionModelApplyTextureInspectionModelapply_texture_inspection_model

Module

Matching