get_param_numget_param_numGetParamNumGetParamNumget_param_num (算子)
名称
get_param_numget_param_numGetParamNumGetParamNumget_param_num — 获取 HALCON 算子的不同参数类的数量。
签名
Herror get_param_num(const char* OperatorName, char* CName, Hlong* InpObjPar, Hlong* OutpObjPar, Hlong* InpCtrlPar, Hlong* OutpCtrlPar, char* Type)
Herror T_get_param_num(const Htuple OperatorName, Htuple* CName, Htuple* InpObjPar, Htuple* OutpObjPar, Htuple* InpCtrlPar, Htuple* OutpCtrlPar, Htuple* Type)
void GetParamNum(const HTuple& OperatorName, HTuple* CName, HTuple* InpObjPar, HTuple* OutpObjPar, HTuple* InpCtrlPar, HTuple* OutpCtrlPar, HTuple* Type)
static HString HInfo::GetParamNum(const HString& OperatorName, Hlong* InpObjPar, Hlong* OutpObjPar, Hlong* InpCtrlPar, Hlong* OutpCtrlPar, HString* Type)
static HString HInfo::GetParamNum(const char* OperatorName, Hlong* InpObjPar, Hlong* OutpObjPar, Hlong* InpCtrlPar, Hlong* OutpCtrlPar, HString* Type)
static HString HInfo::GetParamNum(const wchar_t* OperatorName, Hlong* InpObjPar, Hlong* OutpObjPar, Hlong* InpCtrlPar, Hlong* OutpCtrlPar, HString* Type)
(
Windows only)
static void HOperatorSet.GetParamNum(HTuple operatorName, out HTuple CName, out HTuple inpObjPar, out HTuple outpObjPar, out HTuple inpCtrlPar, out HTuple outpCtrlPar, out HTuple type)
static string HInfo.GetParamNum(string operatorName, out int inpObjPar, out int outpObjPar, out int inpCtrlPar, out int outpCtrlPar, out string type)
def get_param_num(operator_name: str) -> Tuple[str, int, int, int, int, str]
描述
算子 get_param_numget_param_numGetParamNumGetParamNumGetParamNumget_param_num returns the number of the input and
output object parameters, as well as the input and output control parameters for
the indicated HALCON-operator. Further, you will receive the name of the
C-function (CNameCNameCNameCNameCNamecname) called by the operator.
The output parameter TypeTypeTypeTypetypetype indicates, whether the operator
is a system operator or an user procedure.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
OperatorNameOperatorNameOperatorNameOperatorNameoperatorNameoperator_name (输入控制) proc_name → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of the operator.
默认值:
'get_param_num'
"get_param_num"
"get_param_num"
"get_param_num"
"get_param_num"
"get_param_num"
CNameCNameCNameCNameCNamecname (输出控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of the called C-function.
InpObjParInpObjParInpObjParInpObjParinpObjParinp_obj_par (输出控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of the input object parameters.
OutpObjParOutpObjParOutpObjParOutpObjParoutpObjParoutp_obj_par (输出控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of the output object parameters.
InpCtrlParInpCtrlParInpCtrlParInpCtrlParinpCtrlParinp_ctrl_par (输出控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of the input control parameters.
OutpCtrlParOutpCtrlParOutpCtrlParOutpCtrlParoutpCtrlParoutp_ctrl_par (输出控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of the output control parameters.
TypeTypeTypeTypetypetype (输出控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
System operator or user procedure.
建议值:
'system'"system""system""system""system""system", 'user'"user""user""user""user""user"
结果
算子 get_param_numget_param_numGetParamNumGetParamNumGetParamNumget_param_num 返回值 2 (
H_MSG_TRUE)
if the
name of the operator exists.否则将抛出异常。
可能的前趋
get_keywordsget_keywordsGetKeywordsGetKeywordsGetKeywordsget_keywords,
search_operatorsearch_operatorSearchOperatorSearchOperatorSearchOperatorsearch_operator,
get_operator_nameget_operator_nameGetOperatorNameGetOperatorNameGetOperatorNameget_operator_name,
get_operator_infoget_operator_infoGetOperatorInfoGetOperatorInfoGetOperatorInfoget_operator_info
可能的后继
get_param_typesget_param_typesGetParamTypesGetParamTypesGetParamTypesget_param_types
替代
get_operator_infoget_operator_infoGetOperatorInfoGetOperatorInfoGetOperatorInfoget_operator_info,
get_param_infoget_param_infoGetParamInfoGetParamInfoGetParamInfoget_param_info
另见
get_param_namesget_param_namesGetParamNamesGetParamNamesGetParamNamesget_param_names,
get_param_typesget_param_typesGetParamTypesGetParamTypesGetParamTypesget_param_types,
get_operator_nameget_operator_nameGetOperatorNameGetOperatorNameGetOperatorNameget_operator_name
模块
基础