当前位置:网站首页>【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)

边栏推荐
- Data communication foundation telnet remote management equipment
- 在.NET 6.0中配置WebHostBuilder
- Under win10 64 bit, matlab fails to configure notebook
- SPARK中 DS V2 push down(下推)的一些说明
- Tableviewcell highly adaptive
- 网易云UI模仿-->侧边栏
- regular expression
- 论文笔记(SESSION-BASED RECOMMENDATIONS WITHRECURRENT NEURAL NETWORKS)
- What will the new Fuzhou Xiamen railway bring to Fujian coastal areas?
- Study notes of the third week of sophomore year
猜你喜欢

Map key not configured and uniapp routing configuration and jump are reported by the uniapp < map >< /map > component

Uniapp error 7 < Map >: marker ID should be a number

Vs Code configures go locale and successfully installs go related plug-ins in vscode problem: Tools failed to install

分布式网络通信框架:本地服务怎么发布成RPC服务

Applet record

Basics of data communication - basic knowledge of network

Meeting OA project (III) -- my meeting (meeting seating and submission for approval)

AirTest

数通基础-网络基础知识

数通基础-二层交换原理
随机推荐
MySQL 5.7.25 source code installation record
时间序列异常检测
[award-winning question] ask Judea pearl, the Turing prize winner and the father of Bayesian networks
Mysql5.7.25 master-slave replication (one-way)
How to use Gmail to pick up / send mail on Foxmail
Data communication foundation TCPIP reference model
Using undertow, Nacos offline logout delay after service stop
Cloud native (36) | introduction and installation of harbor in kubernetes
服务发现原理分析与源码解读
Study notes of the third week of sophomore year
Phpexcel export Emoji symbol error
Learning about opencv (1)
Replay the snake game with C language (II) end
Data communication foundation telnet remote management equipment
Time series anomaly detection
Necessary for beginners: debug breakpoint debugging skills in idea and common breakpoint skills
Sqoop [put it into practice 02] sqoop latest version full database import + data filtering + field type support description and example code (query parameter and field type forced conversion)
论文笔记(SESSION-BASED RECOMMENDATIONS WITHRECURRENT NEURAL NETWORKS)
Sublime install plug-ins
Explain automatic packing and unpacking?