HALCON
1.语法范式Syntax Style
1.1.基本格式
1.1.1.算子格式
算子(输入图像参数:输出图像参数:输入控制参数:输出控制参数)
其中四个参数任意一个可以为空
** threshold算子,1 Image Para input : Image ;2 Image Para output :Region ;
**3 Control Para input : MinGray,MaxGray4 Control Para output :无
2.get_image_pointer1(: : :,,,)
** threshold算子,1 Image Para input : Image ;2 Image Para output :无;
**3 Control Para input : 无4 Control Para output :,,,
1.1.2.程序结构
HDEV即HALCONDevelop,相当于VC中sln,solution。dev下面有很多窗口。
Switches the update of the PC during program execution on or off.
Switch time measurement for operators on or off.
Switches the update of the variable window during program execution on or off.
Switches the automatic output of iconic output objects into the graphics window during program execution on or off.
1.1.3.符号
这里主要列出一些和C/C++含义不同的符号,以及HALCON中一些重要符号。
编号
符号
符号含义
1
*
注释符号
2
:=
赋值符号,和C中不同
3
=
逻辑符号,判断相等,相对于C中的’==’
4
\
转义符号,至少可以在用于换行的转义,’\+Enter’就可以续行了
5
$
变量指示符号,e.g. +Distance$'.3'表示将变量Distance写成3个字长的字符串形式
6
F1
Help文档,直接看算子
7
F2
回滚到程序头
8
F3/F4
激活/注销此行代码
9
F5
运行程