halcon对tuple处理的算子与hdevelop的对应关系
2014-10-12 09:28
477 查看
转自:http://m.blog.csdn.net/blog/caiqi1123/9192237
7.9 Summary
of HDevelop operations
tuple_uniq discards all but one of successive identical
elements from the input tuple Tuple and
returns the remaining elements in Uniq. For
example, if Tuple contains
the values [0,0,1,1,1,2,0,1], the output tuple Uniq will
contain the values [0,1,2,0,1]. It is allowed to mix strings and numbers in the input tuple. To delete really all identical elements of the input tuple, use first the operator tuple_sort.
7.9 Summary
of HDevelop operations
Functionality | HDevelop Operation | HALCON operator |
concatenation | [t1,t2] | tuple_concat |
number of elements | |t| | tuple_length |
select tuple element | t[i] | tuple_select |
select tuple slice | t[i1:i2] | tuple_select_range |
select elements | subset(t,i) | tuple_select |
remove tuple elements | remove(t,i) | tuple_remove |
lookup tuple values | find(t1,t2) | tuple_find |
unify tuple elements | uniq(t) | tuple_uniq |
tuple creation | gen_tuple_const(i1,i2) | tuple_gen_const |
division | a1 / a2 | tuple_div |
multiplication | a1 * a2 | tuple_mult |
modulo | a1 % a2 | tuple_mod |
addition | a1 + a2 | tuple_add |
subtraction | a1 - a2 | tuple_sub |
negation | -a | tuple_neg |
left shift | lsh(i1,i2) | tuple_lsh |
right shift | rsh(i1,i2) | tuple_rsh |
bitwise and | i1 band i2 | tuple_band |
bitwise xor | i1 bxor i2 | tuple_bxor |
bitwise or | i1 bor i2 | tuple_bor |
bitwise complement | bnot i | tuple_bnot |
string conversion | v$s | tuple_string |
string concatenation | v1 + v2 | tuple_concat |
search character | strchr(s1,s2) | tuple_strchr |
search character (reverse) | strrchr(s1,s2) | tuple_strrchr |
search string | strstr(s1,s2) | tuple_strstr |
search string (reverse) | strrstr(s1,s2) | tuple_strrstr |
length of string | strlen(s) | tuple_strlen |
select character | s{i} | tuple_str_bit_select |
select substring | s{i1:i2} | tuple_str_bit_select |
split string | split(s1,s2) | tuple_split |
regular expression match | regexp_match(s1,s2) | tuple_regexp_match |
regular expression replace | regexp_replace(s1,s2,s3) | tuple_regexp_replace |
regular expression select | regexp_select(s1,s2) | tuple_regexp_select |
regular expression test | regexp_test(s1,s2) | tuple_regexp_test |
less than | t1 < t2 | tuple_less |
greater than | t1 > t2 | tuple_greater |
less or equal | t1 <= t2 | tuple_less_equal |
greater or equal | t1 >= t2 | tuple_greater_equal |
equal | t1 = t2 | tuple_equal |
not equal | t1 # t2 | tuple_not_equal |
logical and | l1 and l2 | tuple_and |
logical xor | l1 xor l2 | tuple_xor |
logical or | l1 or l2 | tuple_or |
negation | not l | tuple_not |
sine | sin(a) | tuple_sin |
cosine | cos(a) | tuple_cos |
tangent | tan(a) | tuple_tan |
arc sine | asin(a) | tuple_asin |
arc cosine | acos(a) | tuple_acos |
arc tangent | atan(a) | tuple_atan |
arc tangent2 | atan2(a1,a2) | tuple_atan2 |
hyperbolic sine | sinh(a) | tuple_sinh |
hyperbolic cosine | cosh(a) | tuple_cosh |
hyperbolic tangent | tanh(a) | tuple_tanh |
exponential function | exp(a) | tuple_exp |
natural logarithm | log(a) | tuple_log |
decadic logarithm | log10(a) | tuple_log10 |
power function | pow(a1,a2) | tuple_pow |
ldexp function | ldexp(a1,a2) | tuple_ldexp |
minimum | min(t) | tuple_min |
element-wise minimum | min2(t1,t2) | tuple_min2 |
maximum | max(t) | tuple_max |
element-wise maximum | max2(t1,t2) | tuple_max2 |
sum function | sum(t) | tuple_sum |
mean value | mean(a) | tuple_mean |
standard deviation | deviation(a) | tuple_deviation |
cumulative sum | cumul(a) | tuple_cumul |
median | median(a) | tuple_median |
element rank | select_rank(a,i) | tuple_select_rank |
square root | sqrt(a) | tuple_sqrt |
radians to degrees | deg(a) | tuple_deg |
degrees to radians | rad(a) | tuple_rad |
integer to real | real(a) | tuple_real |
real to integer | int(a) | tuple_int |
real to integer | round(a) | tuple_round |
absolute value | abs(a) | tuple_abs |
floating absolute value | fabs(a) | tuple_fabs |
ceiling function | ceil(a) | tuple_ceil |
floor function | floor(a) | tuple_floor |
fractional part | fmod(a1,a2) | tuple_fmod |
element-wise sign | sgn(a) | tuple_sgn |
sort elements | sort(t) | tuple_sort |
sort elements (returns index) | sort_index(t) | tuple_sort_index |
reverse element order | inverse(t) | tuple_inverse |
test for numeric value | is_number(v) | tuple_is_number |
string to number | number(v) | tuple_number |
environment variable | environment(s) | tuple_environment |
character to ASCII number | ord(a) | tuple_ord |
ASCII number to character | chr(a) | tuple_chr |
tuple of strings to ASCII numbers | ords(s) | tuple_ords |
tuple of integers to string | chrt(i) | tuple_chrt |
random number | rand(a) | tuple_rand |
elements from the input tuple Tuple and
returns the remaining elements in Uniq. For
example, if Tuple contains
the values [0,0,1,1,1,2,0,1], the output tuple Uniq will
contain the values [0,1,2,0,1]. It is allowed to mix strings and numbers in the input tuple. To delete really all identical elements of the input tuple, use first the operator tuple_sort.
相关文章推荐
- halcon对tuple处理的算子与hdevelop的对应关系
- Hibernate 二次笔记 之 非一一对应关系处理
- 用gson处理json时bean和json串的对应关系
- android sutdio版本和gradle版本的对应关系及as报错的处理Error:Failed to open zip file. Gradle's dependency cache ...
- ssm框架学习---mybatis中处理一对一对应关系
- 在VS2005中使用Halcon算子采集和处理图像的步骤
- Halcon异常处理 get_mposition算子异常
- 内排序- 字符串处理 字符与数字之间的对应关系
- 偏微分方程图像处理序列——连续算子和离散算子对应
- Halcon 算子异常处理(C++代码)
- HALCON算子函数——Chapter 18 : Tuple
- 用xpo实现dc技术的关键点-XPO是如何处理接口类型与真实类型的对应关系的
- Halcon PDF文档(hdevelop_users_guide)学习总结之二——创建新算子
- Halcon中gen_rectangle算子的异常处理方法
- Ilungasoft Framework: 使用视图处理继承关系、Tree结构实体关系映射示例[源码]
- 附着关系的处理方案
- 重构之处理概括关系
- SQL SERVER与C#中数据类型的对应关系
- 处理好工作中人际关系的9个谈话技巧
- 冷静处理人与人之间的关系!