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

边栏推荐
- Application of crosstab in SQL Server
- Distributed network communication framework: how to publish local services into RPC services
- Network related journals and conferences in CS
- 新建福厦铁路全线贯通 这将给福建沿海带来什么?
- Data communication foundation STP principle
- Using undertow, Nacos offline logout delay after service stop
- 【Halcon视觉】仿射变换
- 【Halcon视觉】图像的傅里叶变换
- Learning about opencv (3)
- Kaptcha image verification code integration
猜你喜欢

新建福厦铁路全线贯通 这将给福建沿海带来什么?

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

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

Data communication foundation telnet remote management equipment

Basics of data communication - basic knowledge of network

AirTest

Server memory failure prediction can actually do this!

30分钟彻底弄懂 synchronized 锁升级过程

【Halcon视觉】仿射变换

PLC概述
随机推荐
Beginner of flask framework-04-flask blueprint and code separation
在.NET 6.0中配置WebHostBuilder
Li Kou daily question 917
Formwork (III)
Okaleido生态核心权益OKA,尽在聚变Mining模式
Mlx90640 infrared thermal imager temperature sensor module development notes (6)
Rocky basic exercise -shell script 2
Wechat official account release reminder (wechat official account template message interface)
【C#语言】具名类型和匿名类型
【Halcon视觉】软件编程思路
El table implements adding / deleting rows, and a parameter changes accordingly
Some descriptions of DS V2 push down in spark
Redis realizes distributed lock and gets a watchdog
详细解析js中的混合方式构造对象(构造加属性,原型加方法)
Meeting OA project (III) -- my meeting (meeting seating and submission for approval)
PLC概述
Jpg to EPS
【Halcon视觉】形态学膨胀
Kaptcha image verification code integration
Data communication foundation TCPIP reference model