halcon对tuple处理的算子与hdevelop的对应关系

来源:互联网 发布:三菱plc编程电缆 编辑:程序博客网 时间:2024/06/04 19:19

转自:http://m.blog.csdn.net/blog/caiqi1123/9192237

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

 

 

 

 

tuple_uniq discards all but one of successive identical elements from the input tuple Tuple and returns the remaining elements in UniqFor 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.


0 0
原创粉丝点击