get_texture_inspection_result_objectT_get_texture_inspection_result_objectGetTextureInspectionResultObjectGetTextureInspectionResultObjectget_texture_inspection_result_object(算子)

名称

get_texture_inspection_result_objectT_get_texture_inspection_result_objectGetTextureInspectionResultObjectGetTextureInspectionResultObjectget_texture_inspection_result_object — 查询纹理检查的图标结果。

签名

get_texture_inspection_result_object( : Object : TextureInspectionResultID, ResultName : )

Herror T_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

HObject HTextureInspectionResult::GetTextureInspectionResultObject(const wchar_t* ResultName) const   ( Windows only)

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

HObject HTextureInspectionResult.GetTextureInspectionResultObject(HTuple resultName)

HObject HTextureInspectionResult.GetTextureInspectionResultObject(string resultName)

def get_texture_inspection_result_object(texture_inspection_result_id: HHandle, result_name: MaybeSequence[Union[str, int]]) -> HObject

描述

get_texture_inspection_result_objectget_texture_inspection_result_objectGetTextureInspectionResultObjectGetTextureInspectionResultObjectGetTextureInspectionResultObjectget_texture_inspection_result_object queries the iconic result ResultNameResultNameResultNameResultNameresultNameresult_name of the handle TextureInspectionResultIDTextureInspectionResultIDTextureInspectionResultIDTextureInspectionResultIDtextureInspectionResultIDtexture_inspection_result_id returned by apply_texture_inspection_modelapply_texture_inspection_modelApplyTextureInspectionModelApplyTextureInspectionModelApplyTextureInspectionModelapply_texture_inspection_model。The result handle TextureInspectionResultIDTextureInspectionResultIDTextureInspectionResultIDTextureInspectionResultIDtextureInspectionResultIDtexture_inspection_result_id 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_paramSetTextureInspectionModelParamSetTextureInspectionModelParamSetTextureInspectionModelParamset_texture_inspection_model_param

有关纹理检查概念的说明,请参阅 检查 / 纹理检查 一章的引言。

In the following the possible parameter values for ResultNameResultNameResultNameResultNameresultNameresult_name 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_modelApplyTextureInspectionModelApplyTextureInspectionModelApplyTextureInspectionModelapply_texture_inspection_model, 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_modelApplyTextureInspectionModelApplyTextureInspectionModelApplyTextureInspectionModelapply_texture_inspection_model, it is only possible to query the novelty score images for the first image within the tuple.

执行信息

参数

ObjectObjectObjectObjectobjectValobject (输出对象)  object(-array) objectHObjectHObjectHObjectHobject *

Returned iconic object.

TextureInspectionResultIDTextureInspectionResultIDTextureInspectionResultIDTextureInspectionResultIDtextureInspectionResultIDtexture_inspection_result_id (输入控制)  texture_inspection_result HTextureInspectionResult, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the texture inspection result.

ResultNameResultNameResultNameResultNameresultNameresult_name (输入控制)  string(-array) HTupleMaybeSequence[Union[str, int]]HTupleHtuple (string / integer) (string / int / long) (HString / Hlong) (char* / Hlong)

Name of the iconic object to be returned.

默认值: 'novelty_region' "novelty_region" "novelty_region" "novelty_region" "novelty_region" "novelty_region"

值列表: '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"

示例(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')

结果

算子 get_texture_inspection_result_objectget_texture_inspection_result_objectGetTextureInspectionResultObjectGetTextureInspectionResultObjectGetTextureInspectionResultObjectget_texture_inspection_result_object 在给定参数有效且在可接受范围内时返回值 2 (H_MSG_TRUE)。 否则,将抛出异常。

可能的前趋

apply_texture_inspection_modelapply_texture_inspection_modelApplyTextureInspectionModelApplyTextureInspectionModelApplyTextureInspectionModelapply_texture_inspection_model

可能的后继

clear_texture_inspection_resultclear_texture_inspection_resultClearTextureInspectionResultClearTextureInspectionResultClearTextureInspectionResultclear_texture_inspection_result, clear_texture_inspection_modelclear_texture_inspection_modelClearTextureInspectionModelClearTextureInspectionModelClearTextureInspectionModelclear_texture_inspection_model

模块

匹配