当前位置:网站首页>【Halcon视觉】数组
【Halcon视觉】数组
2022-07-26 10:16:00 【文布斯】
Halcon中的数组,与C语言类似。
(1)变量类型:int,double,string等类型。
(2)变量长度:如果长度为1,则可以作为正常变量使用,第一个索引值为0,最大的索引值为变量长度减1。
(3)赋值符号:一个冒号加一个等号 “ := ” 。
*1.数组定义和赋值
*定义空数组
Tuple:=[]
*指定数据定义数组
Tuple1:=[1,2,3,4,5,6,7,8]
Tuple2:=['A','B','C','D']
*通过数组下标更改指定位置的元素值。
Tuple1[2]:=9
*求数组个数
Number:=|Tuple1|
*合并数组
Union:=[Tuple1,Tuple2]
*提取数组中指定下标的元素
T:=Tuple1[2]
*2.数组字符串运算
*字符串合并
A1:='你'+'好'
*取字符串长度
Length:=strlen(A1)
*3.三角函数运算和数值函数运算
*弧度转角度
Degree:=deg(1.36)
*角度转弧度
Radian:=rad(90)
*求最小值
val_min:=min(Tuple1)
*求最大值
val_max:=max(Tuple1)

边栏推荐
- [qualcomm][network] QTI service analysis
- C language course design Tetris (Part 1)
- Set view dynamic picture
- Using undertow, Nacos offline logout delay after service stop
- 详细解析js中的混合方式构造对象(构造加属性,原型加方法)
- Vs2019 configuring opencv
- 句句解析js中的完美 / 缓冲运动框架(新手专用)
- Solve the problem of storing cookies in IE7 & IE8
- 面试突击68:为什么 TCP 需要 3 次握手?
- Introduction to latex, EPS picture bounding box
猜你喜欢

Okaleido ecological core equity Oka, all in fusion mining mode

What will the new Fuzhou Xiamen railway bring to Fujian coastal areas?

I finished watching this video on my knees at station B

30 minutes to thoroughly understand the synchronized lock upgrade process

Learning about tensorflow (II)

Basic usage of protobuf

数通基础-TCPIP参考模型
![[qualcomm][network] QTI service analysis](/img/76/49054ff8c7215eca98cc479ab1d986.png)
[qualcomm][network] QTI service analysis

Installation and use of cocoapods

Basics of data communication - basic knowledge of network
随机推荐
Reproduce the snake game in C language (I) build pages and construct snakes
MySQL 5.7.25 source code installation record
About automatic operation on Web pages
Distributed network communication framework: how to publish local services into RPC services
The use of MySQL in nodejs
IEEE conference upload font problem
Draw arrows with openlayer
Netease cloud UI imitation -- & gt; sidebar
Self encapsulated database dbutils universal template
【有奖提问】向图灵奖得主、贝叶斯网络之父 Judea Pearl 提问啦
The fourth week of summer vacation
Wechat applet learning notes 2
【Halcon视觉】极坐标变换
Uniapp common error [wxml file compilation error]./pages/home/home Wxml and using MySQL front provided by phpstudy to establish an independent MySQL database and a detailed tutorial for independent da
SQL Server 2008 R2 installation problems
AirTest
服务器内存故障预测居然可以这样做!
点赞,《新程序员》电子书限时免费领啦!
Okaleido生态核心权益OKA,尽在聚变Mining模式
Cause: couldn‘t make a guess for 解决方法