当前位置:网站首页>【Halcon视觉】编程逻辑
【Halcon视觉】编程逻辑
2022-07-26 10:16:00 【文布斯】
Halcon编程中,主要有三种逻辑。
(1)顺序结构:从上到下,单步运行。
(2)选择结构:if...endif...
(3)循环结构:for...endfor... while...endwhile...
*编程逻辑
a:=2
b:=6
c:=8
d:=0
*选择逻辑
if ((a<b or a<c) and a>0 )
d:=a
endif
*循环逻辑
My_MaxVal:=0
k:=[a,b,c,d]
for Index := 0 to |k|-1 by 1
if (My_MaxVal<k[Index])
My_MaxVal:=k[Index]
endif
endfor
边栏推荐
- Applet record
- How to use Gmail to pick up / send mail on Foxmail
- SQL优化的魅力!从 30248s 到 0.001s
- 点赞,《新程序员》电子书限时免费领啦!
- 【Halcon视觉】形态学腐蚀
- 数据库的复习--3.SQL语言
- Interview shock 68: why does TCP need three handshakes?
- 简单化构造函数的继承方法(二)- ES6中的class继承
- Opencv image processing
- Error in render: "typeerror: cannot read properties of undefined (reading 'length')" --- error when calling interface
猜你喜欢
Session based recommendations with recurrent neural networks
Map key not configured and uniapp routing configuration and jump are reported by the uniapp < map >< /map > component
Learning about opencv (3)
Principle analysis and source code interpretation of service discovery
Learning about opencv (1)
Beginner of flask framework-04-flask blueprint and code separation
Study on the basis of opencv
【有奖提问】向图灵奖得主、贝叶斯网络之父 Judea Pearl 提问啦
[Qualcomm][Network] qti服务分析
Applet record
随机推荐
Study notes of the third week of sophomore year
Force deduction DFS
In Net 6.0
AirTest
Principle analysis and source code interpretation of service discovery
数据库的复习--1.概述
Study notes of the second week of sophomore year
Phpexcel export Emoji symbol error
Use of tabbarcontroller
Session based recommendations with recurrent neural networks
Jpg to EPS
I finished watching this video on my knees at station B
Basics of data communication - basic knowledge of network
PMM (percona monitoring and management) installation record
Necessary for beginners: debug breakpoint debugging skills in idea and common breakpoint skills
【Halcon视觉】阈值分割
Replay the snake game with C language (II) end
Okaleido ecological core equity Oka, all in fusion mining mode
【Halcon视觉】形态学腐蚀
点赞,《新程序员》电子书限时免费领啦!