ClassesClassesClassesClasses | | | | Operators

get_texture_inspection_result_objectget_texture_inspection_result_objectGetTextureInspectionResultObjectget_texture_inspection_result_objectGetTextureInspectionResultObjectGetTextureInspectionResultObject (Operator)

Name

get_texture_inspection_result_objectget_texture_inspection_result_objectGetTextureInspectionResultObjectget_texture_inspection_result_objectGetTextureInspectionResultObjectGetTextureInspectionResultObject — Query iconic results of a texture inspection.

Signature

get_texture_inspection_result_object( : Object : TextureInspectionResultID, ResultName : )

Herror get_texture_inspection_result_object(Hobject* Object, const Hlong TextureInspectionResultID, const char* ResultName)

Herror T_get_texture_inspection_result_object(Hobject* Object, const Htuple TextureInspectionResultID, const Htuple ResultName)

Herror get_texture_inspection_result_object(Hobject* Object, const HTuple& TextureInspectionResultID, const HTuple& ResultName)

void GetTextureInspectionResultObject(HObject* Object, const HTuple& TextureInspectionResultID, const HTuple& ResultName)

HObject HTextureInspectionResult::GetTextureInspectionResultObject(const HTuple& ResultName) const

HObject HTextureInspectionResult::GetTextureInspectionResultObject(const HString& ResultName) const

HObject HTextureInspectionResult::GetTextureInspectionResultObject(const char* ResultName) const

void HOperatorSetX.GetTextureInspectionResultObject(
[out] IHUntypedObjectX*Object, [in] VARIANT TextureInspectionResultID, [in] VARIANT ResultName)

IHUntypedObjectX* HTextureInspectionResultX.GetTextureInspectionResultObject([in] VARIANT ResultName)

static void HOperatorSet.GetTextureInspectionResultObject(out HObject objectVal, HTuple textureInspectionResultID, HTuple resultName)

HObject HTextureInspectionResult.GetTextureInspectionResultObject(HTuple resultName)

HObject HTextureInspectionResult.GetTextureInspectionResultObject(string resultName)

Description

get_texture_inspection_result_objectget_texture_inspection_result_objectGetTextureInspectionResultObjectget_texture_inspection_result_objectGetTextureInspectionResultObjectGetTextureInspectionResultObject queries the iconic result ResultNameResultNameResultNameResultNameResultNameresultName of the handle TextureInspectionResultIDTextureInspectionResultIDTextureInspectionResultIDTextureInspectionResultIDTextureInspectionResultIDtextureInspectionResultID returned by apply_texture_inspection_modelapply_texture_inspection_modelApplyTextureInspectionModelapply_texture_inspection_modelApplyTextureInspectionModelApplyTextureInspectionModel. The result handle TextureInspectionResultIDTextureInspectionResultIDTextureInspectionResultIDTextureInspectionResultIDTextureInspectionResultIDtextureInspectionResultID was only created when 'gen_result_handle'"gen_result_handle""gen_result_handle""gen_result_handle""gen_result_handle""gen_result_handle" was set to 'true'"true""true""true""true""true" with set_texture_inspection_model_paramset_texture_inspection_model_paramSetTextureInspectionModelParamset_texture_inspection_model_paramSetTextureInspectionModelParamSetTextureInspectionModelParam.

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

In the following the possible parameter values for ResultNameResultNameResultNameResultNameResultNameresultName are listed:

'novelty_region'"novelty_region""novelty_region""novelty_region""novelty_region""novelty_region":

Returns the novelty regions of all pyramid levels in an object tuple. To query the novelty regions of single pyramid levels the corresponding index has to be added, e.g., 'novelty_region_1'"novelty_region_1""novelty_region_1""novelty_region_1""novelty_region_1""novelty_region_1". Please note that if a tuple of images was passed to apply_texture_inspection_modelapply_texture_inspection_modelApplyTextureInspectionModelapply_texture_inspection_modelApplyTextureInspectionModelApplyTextureInspectionModel, it is only possible to query the novelty regions for the first image within the tuple.

'novelty_score_image'"novelty_score_image""novelty_score_image""novelty_score_image""novelty_score_image""novelty_score_image":

Returns the novelty score images of all pyramid levels in an object tuple. To query the novelty regions of single pyramid levels the corresponding index has to be added, e.g., 'novelty_score_image_1'"novelty_score_image_1""novelty_score_image_1""novelty_score_image_1""novelty_score_image_1""novelty_score_image_1". Please note that if a tuple of images was passed to apply_texture_inspection_modelapply_texture_inspection_modelApplyTextureInspectionModelapply_texture_inspection_modelApplyTextureInspectionModelApplyTextureInspectionModel, it is only possible to query the novelty score images for the first image within the tuple.

Parallelization

Parameters

ObjectObjectObjectObjectObjectobjectVal (output_object)  object(-array) objectHObjectHObjectHObjectHObjectXHobject *

Returned iconic object.

TextureInspectionResultIDTextureInspectionResultIDTextureInspectionResultIDTextureInspectionResultIDTextureInspectionResultIDtextureInspectionResultID (input_control)  texture_inspection_result HTextureInspectionResult, HTupleHTupleHTextureInspectionResult, HTupleHTextureInspectionResultX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Handle of the texture inspection result.

ResultNameResultNameResultNameResultNameResultNameresultName (input_control)  string(-array) HTupleHTupleHTupleVARIANTHtuple (string / integer) (string / int / long) (HString / Hlong) (char* / Hlong) (BSTR / Hlong) (char* / Hlong)

Name of the iconic object to be returned.

Default value: 'novelty_region' "novelty_region" "novelty_region" "novelty_region" "novelty_region" "novelty_region"

List of values: 'novelty_region'"novelty_region""novelty_region""novelty_region""novelty_region""novelty_region", 'novelty_score_image'"novelty_score_image""novelty_score_image""novelty_score_image""novelty_score_image""novelty_score_image"

Example (HDevelop)

* Create texture inspection model
create_texture_inspection_model ('basic', TextureInspectionModel)
* Set parameters
set_texture_inspection_model_param (TextureInspectionModel, \
                                    'gen_result_handle', 'true')
* 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)
* Get result objects
get_texture_inspection_result_object (Object, TextureInspectionResultID, \
                                      'novelty_score_image')
* Clean up
clear_texture_inspection_model (TextureInspectionModel)
clear_texture_inspection_result (TextureInspectionResultID)

Result

The operator get_texture_inspection_result_objectget_texture_inspection_result_objectGetTextureInspectionResultObjectget_texture_inspection_result_objectGetTextureInspectionResultObjectGetTextureInspectionResultObject returns the value 2 (H_MSG_TRUE) if the given parameters are valid and within acceptable range. Otherwise, an exception will be raised.

Possible Predecessors

apply_texture_inspection_modelapply_texture_inspection_modelApplyTextureInspectionModelapply_texture_inspection_modelApplyTextureInspectionModelApplyTextureInspectionModel

Possible Successors

clear_texture_inspection_resultclear_texture_inspection_resultClearTextureInspectionResultclear_texture_inspection_resultClearTextureInspectionResultClearTextureInspectionResult, clear_texture_inspection_modelclear_texture_inspection_modelClearTextureInspectionModelclear_texture_inspection_modelClearTextureInspectionModelClearTextureInspectionModel

Module

Matching


ClassesClassesClassesClasses | | | | Operators