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

边栏推荐
- Study notes of the second week of sophomore year
- Transform between tree and array in JS (hide the children field if the child node of the tree is empty)
- Azkaban [basic knowledge 01] core concepts + features +web interface + Architecture +job type (you can get started with Azkaban workflow scheduling system in one article)
- 在.NET 6.0中配置WebHostBuilder
- 【Halcon视觉】图像滤波
- Draw arrows with openlayer
- Study on the basis of opencv
- Study notes of the first week of sophomore year
- 面试突击68:为什么 TCP 需要 3 次握手?
- Vs Code configures go locale and successfully installs go related plug-ins in vscode problem: Tools failed to install
猜你喜欢

Like, "new programmer" e-book is free for a limited time!

The practice of OpenCV -- bank card number recognition

regular expression

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

I finished watching this video on my knees at station B

Learning about opencv (1)

Interview shock 68: why does TCP need three handshakes?

Leetcode 504. Hex number
![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](/img/21/5dceab9815b503f0b62d26a430d7eb.png)
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

服务器内存故障预测居然可以这样做!
随机推荐
Wu Enda linear regression of machine learning
Formwork (III)
Use spiel expressions in custom annotations to dynamically obtain method parameters or execute methods
The problem of incomplete or partial display of the last recyclerview is solved
How to use Gmail to pick up / send mail on Foxmail
Uniapp error 7 < Map >: marker ID should be a number
protobuf的基本用法
Flutter event distribution
Data communication foundation TCPIP reference model
Introduction to latex, EPS picture bounding box
服务器内存故障预测居然可以这样做!
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)
面试突击68:为什么 TCP 需要 3 次握手?
数据库的复习--3.SQL语言
Opencv image processing
Usage of the formatter attribute of El table
Flask框架初学-03-模板
Cause: couldn‘t make a guess for 解决方法
Self encapsulated database dbutils universal template
Use of pclint in vs2013