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

边栏推荐
- Session based recommendations with recurrent neural networks
- Vs2019 configuring opencv
- How to use Gmail to pick up / send mail on Foxmail
- 面试第一家公司的面试题及答案(一)
- 【Halcon视觉】算子的结构
- Deduct daily question 838 of a certain day
- SPARK中 DS V2 push down(下推)的一些说明
- 数通基础-Telnet远程管理设备
- Use of Android grendao database
- modelsim 安装教程(应用未安装)
猜你喜欢

我们的Web3创业项目,黄了

Flask框架初学-03-模板
![[Qualcomm][Network] qti服务分析](/img/76/49054ff8c7215eca98cc479ab1d986.png)
[Qualcomm][Network] qti服务分析

On the compilation of student management system of C language course (simple version)

Okaleido生态核心权益OKA,尽在聚变Mining模式

Transform between tree and array in JS (hide the children field if the child node of the tree is empty)

【Halcon视觉】图像滤波

INSTALL_ FAILED_ SHARED_ USER_ Incompatible error resolution

Server memory failure prediction can actually do this!

【Halcon视觉】图像的傅里叶变换
随机推荐
MLX90640 红外热成像仪测温传感器模块开发笔记(六)
Uniapp "no mobile phone or simulator detected, please try again later" and uniapp custom components and communication
Self encapsulated database dbutils universal template
Distributed network communication framework: how to publish local services into RPC services
Data communication foundation STP principle
Learning about opencv (3)
数据库的复习--3.SQL语言
面试第二家公司的面试题及答案(二)
PTA class a 1002
【Halcon视觉】图像的傅里叶变换
Kaptcha image verification code integration
Formwork (III)
【Halcon视觉】图像灰度变化
【Halcon视觉】形态学膨胀
Beginner of flask framework-04-flask blueprint and code separation
Nacos custom service change subscription
Netease cloud UI imitation -- & gt; sidebar
汉诺塔II|汉诺塔4柱
Cause: could't make a guess for solution
数通基础-二层交换原理