当前位置:网站首页>[Halcon vision] array
[Halcon vision] array
2022-07-26 10:22:00 【Wenbus】
Halcon In the array , And C Language is similar to .
(1) Variable type :int,double,string Other types .
(2) Variable length : If the length is 1, Can be used as a normal variable , The first index value is 0, The maximum index value is the variable length minus 1.
(3) Assignment symbol : A colon plus an equal sign “ := ” .
*1. Array definition and assignment
* Define an empty array
Tuple:=[]
* Specify the data definition array
Tuple1:=[1,2,3,4,5,6,7,8]
Tuple2:=['A','B','C','D']
* Change the element value of the specified position through the array subscript .
Tuple1[2]:=9
* Find the number of arrays
Number:=|Tuple1|
* Merge array
Union:=[Tuple1,Tuple2]
* Extract the elements with specified subscripts in the array
T:=Tuple1[2]
*2. Array string operation
* String merge
A1:=' you '+' good '
* Take the string length
Length:=strlen(A1)
*3. Trigonometric function operation and numerical function operation
* The angle of arc
Degree:=deg(1.36)
* Angle in radians
Radian:=rad(90)
* For the minimum
val_min:=min(Tuple1)
* For maximum
val_max:=max(Tuple1)

边栏推荐
- On the compilation of student management system of C language course (simple version)
- 2022/07/25------字符串的排列
- Introduction to latex, EPS picture bounding box
- Network related journals and conferences in CS
- How to use Gmail to pick up / send mail on Foxmail
- Nacos custom service change subscription
- Wu Enda linear regression of machine learning
- 句句解析js中的完美 / 缓冲运动框架(新手专用)
- Distributed network communication framework: how to publish local services into RPC services
- Time series anomaly detection
猜你喜欢

点赞,《新程序员》电子书限时免费领啦!

【Halcon视觉】软件编程思路

SAP ABAP Netweaver 容器化的一些前沿性研究工作分享

Cause: could't make a guess for solution

2022/07/25------字符串的排列

Necessary for beginners: debug breakpoint debugging skills in idea and common breakpoint skills

【Halcon视觉】图像灰度变化

El table implements adding / deleting rows, and a parameter changes accordingly

Learning about tensorflow (I)

Flask框架初学-03-模板
随机推荐
Closure of go (cumulative sum)
面试突击68:为什么 TCP 需要 3 次握手?
Flask framework beginner-03-template
时间序列异常检测
【Halcon视觉】形态学膨胀
Common errors when starting projects in uniapp ---appid
Data communication foundation - layer 2 switching principle
Deduct daily question 838 of a certain day
Replay the snake game with C language (II) end
Cause: could't make a guess for solution
SQL Server 2008 server engine failed to start?
AirTest
Beginner of flask framework-04-flask blueprint and code separation
The CLOB field cannot be converted when querying Damon database
微信公众号发布提醒(微信公众号模板消息接口)
Time series anomaly detection
Use of pclint in vs2013
Uniapp error 7 < Map >: marker ID should be a number
C language course design Tetris (Part 1)
输入整数后输入整行字符串的解决方法