tuple_gen_constgenerates a new tuple inNewtuple. The input parameterLengthdetermines the number of elements for the new tuple. Thus,Lengthmay only consist of a single number. IfLengthcontains a floating point number, this may only represent an integer value (without fraction). The data type an...
tuple_gen_const(: : Length, Const : Newtuple) 函数作用: 生成特定长度的元组及初始化元素,参数Length为新元组的元素个数,如果输入Length是浮点型,只取其整数部分。 新元组生成的个数及值是由输入参数Const决定的,Const只由一个元素组成。元组中所有的元素的数据类型和值同于参数Const。 参数列表: Length(in)...
tuple_gen_const() 定义:生成特定长度的元组并初始化其元素 举例:gen_tuple_const(1000,1.5) — 生成一个长度为1000,里面每一个数组元素都为1.5的数组 表达式用法:gen_tuple_const(|Row|,1.5) 举例:disp_circle (200000, Row, Column, gen_tuple_const(|Row|,1.5)) — 生成半径为1.5的圆,个数和位置取...
tuple_gen_constgenerates a new tuple inNewtuple. The input parameterLengthdetermines the number of elements for the new tuple. Thus,Lengthmay only consist of a single number. IfLengthcontains a floating point number, this may only represent an integer value (without fraction). The data type an...
TupleGreater(0))) != 0) { if ((int)(new HTuple((new HTuple(hv_ScaleR_COPY_INP_TMP.TupleLength())).TupleEqual( 1))) != 0) { { HTuple ExpTmpOutVar_0; HOperatorSet.TupleGenConst(hv_NumMatches, hv_ScaleR_COPY_INP_TMP, out ExpTmpOutVar_0); hv_ScaleR_COPY_INP_TMP.Dispose()...
tuple_atan2 (y, x, ATan) *计算一个元组四个象限的反正切 *参数1:输入y值的元组 *参数2:输入x值的元组 *参数3:返回元组的反正切--单位:弧度 *说明:tanA=y/x, 则 A=arctany/x *[0.785398, -0.785398, 0.5235] tuple_ceil (a, Ceil)
元组tuple的基本操作 1. 两个重要的算子 2. 一些基本操作 3. 运算 3.1 算数运算 3.2 位运算 3.3 保留有效数字 3.4 比较操作 3.5 布尔操作 3.6 三角函数 3.7 指数函数 3.8 数字函数 3.9 其他函数 1. 两个重要的算子 tuple_gen_const( : : Length, Const : Newtuple) ...
tuple_gen_const(10,5,Newtuple) if 语句 if 语句用于条件选择,即根据不同条件选择执行不同的主体语句 语法: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 if(条件) 主体语句 elseif(条件) 主体语句else主体语句 endif for 循环语句 介绍HALCON的 for 循环语句。在编程中经常会用到循环语句,来进行循环...
(1)gen_tuple_const函数 tuple := gen_tuple_const(100,4711)//创建一个具有100个元素的,每个元素都为4711的数据 tuple_new := gen_tuple_const(|tuple_old|,4711)//创建一个和原来数据长度一样的数据 上面的函数也可以通过如下表达式实现:tuple_new := (tuple_old * 0) + 4711 ...
gen_tuple_const global H_MSG_FAIL H_MSG_FALSE H_MSG_TRUE H_MSG_VOID if ifelse insert int inverse is_number ldexp log log10 lsh max max2 mean median min min2 not number or ord ords pow rad rand real regexp_match regexp_replace regexp_select regexp_test remove repeat return round ...