当前位置:网站首页>[Halcon vision] programming logic
[Halcon vision] programming logic
2022-07-26 10:22:00 【Wenbus】
Halcon Programming , There are three main kinds of logic .
(1) Sequential structure : From top to bottom , One step operation .
(2) Selection structure :if...endif...
(3) Loop structure :for...endfor... while...endwhile...

* Programming logic
a:=2
b:=6
c:=8
d:=0
* Choice logic
if ((a<b or a<c) and a>0 )
d:=a
endif
* Circular logic
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
边栏推荐
- 【有奖提问】向图灵奖得主、贝叶斯网络之父 Judea Pearl 提问啦
- 函数模板参数(函数参数在哪)
- 单元测试,到底什么是单元测试,为什么单测这么难写
- Study notes of the fifth week of sophomore year
- Flask框架初学-03-模板
- 【杂谈】Error loading psycopg2 module :No module named psycopg2
- AirTest
- Redis realizes the correct posture of token bucket
- 数通基础-二层交换原理
- Production of a-modal drag function in antui
猜你喜欢
随机推荐
点赞,《新程序员》电子书限时免费领啦!
The reason why go language is particularly slow to develop run and build commands
Transform between tree and array in JS (hide the children field if the child node of the tree is empty)
AirTest
SQL Server 2008 R2 installation problems
Flask framework beginner-03-template
【socket】三次握手是在listen中完成,accept只从完成连接的队列中拿出一个连接
IEEE conference upload font problem
Application of crosstab in SQL Server
Time series anomaly detection
On the compilation of student management system of C language course (simple version)
SPARK中 DS V2 push down(下推)的一些说明
Common errors when starting projects in uniapp ---appid
C language course design Tetris (Part 1)
Flask框架初学-03-模板
【杂谈】Error loading psycopg2 module :No module named psycopg2
Kaptcha image verification code integration
Opencv image processing
The problem of incomplete or partial display of the last recyclerview is solved
Learning about tensor (III)









