set_metrology_object_fuzzy_paramT_set_metrology_object_fuzzy_paramSetMetrologyObjectFuzzyParamSetMetrologyObjectFuzzyParamset_metrology_object_fuzzy_param (算子)
名称
set_metrology_object_fuzzy_paramT_set_metrology_object_fuzzy_paramSetMetrologyObjectFuzzyParamSetMetrologyObjectFuzzyParamset_metrology_object_fuzzy_param — 为计量模型设置模糊参数或模糊函数。
签名
void SetMetrologyObjectFuzzyParam(const HTuple& MetrologyHandle, const HTuple& Index, const HTuple& GenParamName, const HTuple& GenParamValue)
void HMetrologyModel::SetMetrologyObjectFuzzyParam(const HTuple& Index, const HTuple& GenParamName, const HTuple& GenParamValue) const
void HMetrologyModel::SetMetrologyObjectFuzzyParam(const HString& Index, const HTuple& GenParamName, const HTuple& GenParamValue) const
void HMetrologyModel::SetMetrologyObjectFuzzyParam(const char* Index, const HTuple& GenParamName, const HTuple& GenParamValue) const
void HMetrologyModel::SetMetrologyObjectFuzzyParam(const wchar_t* Index, const HTuple& GenParamName, const HTuple& GenParamValue) const
(
Windows only)
描述
set_metrology_object_paramset_metrology_object_paramSetMetrologyObjectParamSetMetrologyObjectParamSetMetrologyObjectParamset_metrology_object_param is used to set or change the
fuzzy parameters or fuzzy functions of a metrology object in
order to adapt the model to a particular edge selection
before applying the operator apply_metrology_modelapply_metrology_modelApplyMetrologyModelApplyMetrologyModelApplyMetrologyModelapply_metrology_model。
有关二维计量概念的说明,请参阅 二维计量 一章的引言。
The metrology model is defined by the handle
MetrologyHandleMetrologyHandleMetrologyHandleMetrologyHandlemetrologyHandlemetrology_handle. The parameter IndexIndexIndexIndexindexindex specifies
the metrology objects for which the parameters should be changed or set.
The parameters of all metrology objects are set if the parameter
IndexIndexIndexIndexindexindex is set to 'all'"all""all""all""all""all".
The fuzzy parameter or the type of fuzzy function is passed
in the parameter GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name. The corresponding value or
the fuzzy function is passed in the parameter GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value.
If at least one fuzzy function is set, internally the operator
fuzzy_measure_posfuzzy_measure_posFuzzyMeasurePosFuzzyMeasurePosFuzzyMeasurePosfuzzy_measure_pos will be used when searching the objects
with the operator apply_metrology_modelapply_metrology_modelApplyMetrologyModelApplyMetrologyModelApplyMetrologyModelapply_metrology_model。More information
about fuzzy functions can be found with the operator
fuzzy_measure_posfuzzy_measure_posFuzzyMeasurePosFuzzyMeasurePosFuzzyMeasurePosfuzzy_measure_pos。The following generic
parameters and parameter values for GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name and
GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value are possible:
- 'fuzzy_thresh'"fuzzy_thresh""fuzzy_thresh""fuzzy_thresh""fuzzy_thresh""fuzzy_thresh":
-
The parameter specifies the
minimum fuzzy value. The meaning and the use of this
parameter is described with the operator fuzzy_measure_posfuzzy_measure_posFuzzyMeasurePosFuzzyMeasurePosFuzzyMeasurePosfuzzy_measure_pos。There, the parameter corresponds to the parameter
FuzzyThreshFuzzyThreshFuzzyThreshFuzzyThreshfuzzyThreshfuzzy_thresh.
默认值: '0.5'"0.5""0.5""0.5""0.5""0.5"
- 'function_contrast'"function_contrast""function_contrast""function_contrast""function_contrast""function_contrast":
-
The parameter specifies
a fuzzy function of type contrast. The meaning and the
use of this parameter is described with the operator
set_fuzzy_measureset_fuzzy_measureSetFuzzyMeasureSetFuzzyMeasureSetFuzzyMeasureset_fuzzy_measure。There, the parameter
corresponds to the parameter SetTypeSetTypeSetTypeSetTypesetTypeset_type with the value
'contrast'"contrast""contrast""contrast""contrast""contrast" and its value corresponds to the parameter
FunctionFunctionFunctionFunctionfunctionfunction.
默认值: 'disabled'"disabled""disabled""disabled""disabled""disabled"
- 'function_position'"function_position""function_position""function_position""function_position""function_position":
-
The parameter specifies
a fuzzy function of type position. The meaning and the
use of this parameter is described with the operator
set_fuzzy_measureset_fuzzy_measureSetFuzzyMeasureSetFuzzyMeasureSetFuzzyMeasureset_fuzzy_measure。There, the parameter corresponds to
the parameter SetTypeSetTypeSetTypeSetTypesetTypeset_type with the value
'position'"position""position""position""position""position" and its value corresponds to the parameter
FunctionFunctionFunctionFunctionfunctionfunction.
默认值: 'disabled'"disabled""disabled""disabled""disabled""disabled"
- 'function_position_center'"function_position_center""function_position_center""function_position_center""function_position_center""function_position_center":
-
The parameter
specifies a fuzzy function of type position_center. The
meaning and the use of this parameter is described with the
operator set_fuzzy_measureset_fuzzy_measureSetFuzzyMeasureSetFuzzyMeasureSetFuzzyMeasureset_fuzzy_measure。There, the parameter
corresponds to the parameter SetTypeSetTypeSetTypeSetTypesetTypeset_type with the value
'position'"position""position""position""position""position" and its value corresponds to the parameter
FunctionFunctionFunctionFunctionfunctionfunction.
默认值: 'disabled'"disabled""disabled""disabled""disabled""disabled"
- 'function_position_end'"function_position_end""function_position_end""function_position_end""function_position_end""function_position_end":
-
The parameter specifies
a fuzzy function of type position_end. The meaning and
the use of this parameter is described with the operator
set_fuzzy_measureset_fuzzy_measureSetFuzzyMeasureSetFuzzyMeasureSetFuzzyMeasureset_fuzzy_measure。There, the parameter corresponds to
the parameter SetTypeSetTypeSetTypeSetTypesetTypeset_type with the value
'position_end'"position_end""position_end""position_end""position_end""position_end" and its value corresponds to the
parameter FunctionFunctionFunctionFunctionfunctionfunction.
默认值: 'disabled'"disabled""disabled""disabled""disabled""disabled"
- 'function_position_first_edge'"function_position_first_edge""function_position_first_edge""function_position_first_edge""function_position_first_edge""function_position_first_edge":
-
The parameter
specifies a fuzzy function of type position_first_edge.
The meaning and the use of this parameter is described with the
operator set_fuzzy_measureset_fuzzy_measureSetFuzzyMeasureSetFuzzyMeasureSetFuzzyMeasureset_fuzzy_measure。There, the parameter
corresponds to the parameter SetTypeSetTypeSetTypeSetTypesetTypeset_type with the value
'position_first_edge'"position_first_edge""position_first_edge""position_first_edge""position_first_edge""position_first_edge" and its value corresponds to the
parameter FunctionFunctionFunctionFunctionfunctionfunction.
默认值: 'disabled'"disabled""disabled""disabled""disabled""disabled"
- 'function_position_last_edge'"function_position_last_edge""function_position_last_edge""function_position_last_edge""function_position_last_edge""function_position_last_edge":
-
The parameter
specifies a fuzzy function of type position_last_edge.
The meaning and the use of this parameter is described with the
operator set_fuzzy_measureset_fuzzy_measureSetFuzzyMeasureSetFuzzyMeasureSetFuzzyMeasureset_fuzzy_measure。There, the parameter
corresponds to the parameter SetTypeSetTypeSetTypeSetTypesetTypeset_type with the value
'position_last_edge'"position_last_edge""position_last_edge""position_last_edge""position_last_edge""position_last_edge" and its value corresponds to the
parameter FunctionFunctionFunctionFunctionfunctionfunction.
默认值: 'disabled'"disabled""disabled""disabled""disabled""disabled"
A fuzzy function is discarded if the fuzzy function value
is set to 'disabled'"disabled""disabled""disabled""disabled""disabled". All previously defined fuzzy
functions and fuzzy parameters can be discarded
completely using reset_metrology_object_fuzzy_paramreset_metrology_object_fuzzy_paramResetMetrologyObjectFuzzyParamResetMetrologyObjectFuzzyParamResetMetrologyObjectFuzzyParamreset_metrology_object_fuzzy_param。The
current configuration of the metrology objects can
be accessed with get_metrology_object_fuzzy_paramget_metrology_object_fuzzy_paramGetMetrologyObjectFuzzyParamGetMetrologyObjectFuzzyParamGetMetrologyObjectFuzzyParamget_metrology_object_fuzzy_param。Note
that if at least one fuzzy function is specified, the operator
fuzzy_measure_posfuzzy_measure_posFuzzyMeasurePosFuzzyMeasurePosFuzzyMeasurePosfuzzy_measure_pos is used for the edge detection.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
此算子修改后续输入参数的状态:
在执行此算子时,若该参数值需在多个线程间使用,则必须对其访问进行同步。
参数
MetrologyHandleMetrologyHandleMetrologyHandleMetrologyHandlemetrologyHandlemetrology_handle (输入控制,状态被修改) metrology_model → HMetrologyModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
计量模型的句柄。
IndexIndexIndexIndexindexindex (输入控制) integer(-array) → HTupleMaybeSequence[Union[str, int]]HTupleHtuple (string / integer) (string / int / long) (HString / Hlong) (char* / Hlong)
Index of the metrology objects.
默认值:
'all'
"all"
"all"
"all"
"all"
"all"
建议值:
'all'"all""all""all""all""all", 0, 1, 2
GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name (输入控制) attribute.name-array → HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)
通用参数的名称。
默认值:
'fuzzy_thresh'
"fuzzy_thresh"
"fuzzy_thresh"
"fuzzy_thresh"
"fuzzy_thresh"
"fuzzy_thresh"
值列表:
'function_contrast'"function_contrast""function_contrast""function_contrast""function_contrast""function_contrast", 'function_position'"function_position""function_position""function_position""function_position""function_position", 'function_position_center'"function_position_center""function_position_center""function_position_center""function_position_center""function_position_center", 'function_position_end'"function_position_end""function_position_end""function_position_end""function_position_end""function_position_end", 'function_position_first_edge'"function_position_first_edge""function_position_first_edge""function_position_first_edge""function_position_first_edge""function_position_first_edge", 'function_position_last_edge'"function_position_last_edge""function_position_last_edge""function_position_last_edge""function_position_last_edge""function_position_last_edge", 'fuzzy_thresh'"fuzzy_thresh""fuzzy_thresh""fuzzy_thresh""fuzzy_thresh""fuzzy_thresh"
GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value (输入控制) attribute.value-array → HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
通用参数的值。
默认值:
0.5
建议值:
0.1, 0.3, 0.5, 0.6, 0.7, 0.9, 1, 2, 3, 4, 5, 10, 20
结果
如果参数有效,算子
set_metrology_object_fuzzy_paramset_metrology_object_fuzzy_paramSetMetrologyObjectFuzzyParamSetMetrologyObjectFuzzyParamSetMetrologyObjectFuzzyParamset_metrology_object_fuzzy_param 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。
可能的前趋
get_metrology_object_fuzzy_paramget_metrology_object_fuzzy_paramGetMetrologyObjectFuzzyParamGetMetrologyObjectFuzzyParamGetMetrologyObjectFuzzyParamget_metrology_object_fuzzy_param
可能的后继
apply_metrology_modelapply_metrology_modelApplyMetrologyModelApplyMetrologyModelApplyMetrologyModelapply_metrology_model,
reset_metrology_object_fuzzy_paramreset_metrology_object_fuzzy_paramResetMetrologyObjectFuzzyParamResetMetrologyObjectFuzzyParamResetMetrologyObjectFuzzyParamreset_metrology_object_fuzzy_param,
get_metrology_object_fuzzy_paramget_metrology_object_fuzzy_paramGetMetrologyObjectFuzzyParamGetMetrologyObjectFuzzyParamGetMetrologyObjectFuzzyParamget_metrology_object_fuzzy_param
另见
set_metrology_object_paramset_metrology_object_paramSetMetrologyObjectParamSetMetrologyObjectParamSetMetrologyObjectParamset_metrology_object_param
模块
二维计量