网淘巴来吧,欢迎您!

返回首页 微信
微信
手机版
手机版

get_texture_inspection_model_param -查询纹理检测模型参数

2022-11-05 新闻来源:网淘巴 围观:207
''

简短描述

get_texture_inspection_model_param -查询纹理检测模型参数。

签名

get_texture_inspection_model_param(:: TextureInspectionModel, GenParamName: GenParamValue)

描述

操作符get_[文]texture[章]_inspec[来]tion_mo[自]del_par[网]am用于查询纹[淘]理检查模型(T[巴]extureI[文]nspecti[章]onModel[来])的不同参数的[自]值。所需参数的[网]名称在参数Ge[淘]nParamN[巴]ame中传递,[文]对应的值在Ge[章]nParamV[来]alue中返回[自]。可以通过调用[网]get_tex[淘]ture_in[巴]spectio[文]n_model[章]_param来[来]查询多个参数。[自]所有可以被se[网]t_textu[淘]re_insp[巴]ection_[文]model_p[章]aram操作的[来]参数都可以被查[自]询。请参考se[网]t_textu[淘]re_insp[巴]ection_[文]model_p[章]aram的文档[来],以获得单个参[自]数的解释。此外[网],还可以查询以[淘]下参数:

[巴]gmm_cen[文]ters&rd[章]quo;:

返回训练过程中[来]确定为最优的高[自]斯分布的数量。[网]该值可作为以后[淘]纹理检测模型的[巴]参考。分布的范[文]围可能的数量取[章]决于参数的设置[来][自]gmm_pmi[网]ncenter[淘]s&rdquo[巴];和&ldqu[文]o;gmm_p[章]maxcent[来]ers&rdq[自]uo;。每个图[网]像金字塔级可以[淘]有不同数量的高[巴]斯分布。通过添[文]加索引,可以查[章]询特定金字塔级[来]别的高斯分布数[自]量。例如,'gmm_cen[网]ters_3'返回第三层金字[淘]塔的高斯分布的[巴]个数。

[文]image_i[章]ndices&[来]rdquo;:[自]

使用add_t[网]exture_[淘]inspect[巴]ion_mod[文]el_imag[章]e返回添加到纹[来]理检测模型中的[自]图像的索引。只[网]返回当前纹理检[淘]测模型中还没有[巴]被remove[文]_textur[章]e_inspe[来]ction_m[自]odel_im[网]age删除的图[淘]像索引。

为了避免对返回的元组长度的混淆,多值参数,如' image_indexes ', 'gmm_centers', 'levels'和'novelty_threshold'只能单独查询,即不传递任何其他参数给get_texture_inspection_model_param。

参数

texture[巴]_inspec[文]tionmod[章]el (input_[来]control[自])→[网](intege[淘]r)

纹理检查模型的句柄。

例程

* 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)
* Get parameters
get_texture_inspection_model_param (TextureInspectionModel, 'patch_size', \
                                    PatchSize)
* 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)
* Clean up
clear_texture_inspection_model (TextureInspectionModel)

返回结果

 

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏

本文链接:https://www.wtao8.com/post/233.html 转载需授权!

分享到:

相关文章

龙年
大发