想要学好机器视觉,要把算子、数学原理和项目融汇贯通才可。
Halcon算子形式 F(A:B:C:D)
A为输入对象
B为输出对象
C为输入参数
D为输出参数
数值类
1.替换数组数值
CamPose := replace(RefPose,2,RefPose[2] + Dist)
RefPose:需要替换某个数的一个数组,RefPose[2] = RefPose[2] + Dist,其他元素数值不变
2:被替换的一个数组的索引
仿射变换类
1.创建一个相同2维变换的齐次变换矩阵
hom_mat2d_identity( : : : HomMat2DIdentity)
输入参数:
NumDim:
Number of dimensions of the feature space.特征空间的维度数
Default value: 3
Suggested values: 1, 2, 3, 4, 5, 8, 10, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100
Number of classes of the GMM.高斯混合类型的数量
Default value: 5
Suggested values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Number of centers per class. 每种类的中心数
Default value: 1
Suggested values: 1, 2, 3, 4, 5, 8, 10, 15, 20, 30
Type of the covariance matrices. 协方差矩阵的类型
Default value: 'spherical'
Type of preprocessing used to transform the feature vectors.用于转换特征向量的预处理类型
Default value: 'normalization'
Preprocessing parameter: Number of transformed features (ignored for Preprocessing = 'none' and Preprocessing = 'normalization').
Default value: 10
Suggested values: 1, 2, 3, 4, 5, 8, 10, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100
ScaleWidth:Scale factor for the width of the image.图像宽度的比例因子
Default value: 0.5
Suggested values: 0.25, 0.5, 1.5, 2.0
Typical range of values: 0.001 ≤ ScaleWidth ≤ 10.0
Minimum increment: 0.001
Default value: 0.5
Suggested values: 0.25, 0.5, 1.5, 2.0
Typical range of values: 0.001 ≤ ScaleHeight ≤ 10.0
Minimum increment: 0.001
Default value: 'constant'
List of values: 'bilinear', 'constant', 'nearest_neighbor', 'weighted'
The window handle of the graphics window, where the message should be displayed.图像窗口的窗口句柄处显示信息
Default Value: 'window'
The row coordinate of the desired text position. If set to -1, a default value of 12 is used.所需文本位置的行坐标。如果设置为-1,则使用默认值12。
Default Value: 12
The column coordinate of the desired text position. If set to -1, a default value of 12 is used.所需文本位置的列坐标。如果设置为-1,则使用默认值12。
Default Value: 12
Defines the color of the text as string. If set to [], or '' the currently set color is used. If a tuple of strings is passed, the colors are used cyclically for each new position or textline.定义文本为字符串的颜色。如果设置为[],或“当前设置的颜色被使用”。如果传递了一组字符串,则为每个新位置或文本行循环使用颜色。
Default Value: 'black'
If set to 'true', the text is written within an orange box. If set to' false', no box is displayed. If set to a color string (e.g. 'white', '#FF00CC', etc.), the text is written in a box of that color. Optionally, a second value controls the appearance of a box shadow如果设置为“true”,则将文本写入一个橙色框中。如果设置为“false”,则不会显示任何框。如果设置为颜色字符串(例如:“白色”、“#FF00CC”等等),文本是用这种颜色的框写的。可选地,第二个值控制框阴影的外观。
Default Value: 'true'
Default value: 'el'
Suggested values: 'll', 'le', 'ls', 'lw', 'lr', 'lu', 'lo', 'el', 'ee', 'es', 'ew', 'er', 'eu', 'eo', 'sl', 'se', 'ss', 'sw', 'sr', 'su', 'so', 'wl', 'we', 'ws', 'ww', 'wr','wu', 'wo', 'rl', 're', 'rs', 'rw', 'rr', 'ru', 'ro', 'ul', 'ue', 'us', 'uw', 'ur', ' uu', 'uo', 'ol', 'oe', 'os', 'ow', 'or', 'ou', 'oo'
Filter:滤波器
Default value: 'deriche2'
List of values: 'deriche1', 'deriche2', 'gauss', 'shen'
Threshold for the rejection of the classification.拒绝分类的阈值
Default value: 0.5
Suggested values: 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0
Default value: 3.5
Suggested values: 1.5, 2.5, 3.5, 4.5, 5.5, 7.5, 9.5, 12.5, 15.5, 19.5, 25.5, 33.5, 45.5, 60.5, 110.5
Typical range of values: 0.5 ≤ Radius ≤ 511.5 (lin)
Minimum increment: 1.0
Recommended increment: 1.0
Default value: 3.5
Suggested values: 1.5, 2.5, 3.5, 4.5, 5.5, 7.5, 9.5, 12.5, 15.5, 19.5, 25.5, 33.5, 45.5, 60.5, 110.5
Typical range of values: 0.5 ≤ Radius ≤ 511.5 (lin)
Minimum increment: 1.0
Recommended increment: 1.0
画一个椭圆形或圆形的XLD轮廓
gen_ellipse_contour_xld (:TrackballContour: Cy, Cx, 0, TrackballRadiusPixel, TrackballRadiusPixel, 0, 6.28318, 'positive', 1.5:)
TrackballContour:输出的椭圆轮廓,圆是特殊的椭圆。
Cy:椭圆中心的行坐标
Cx:椭圆中心的列坐标
0:与主轴之间的角度
TrackballRadiusPixel:半长轴的长度
TrackballRadiusPixel:半短轴的长度
0:椭圆的外接圆的第一个点的起始点
6.28318:就是2*3.1415926,椭圆的外接圆的第一个点的起始点
'positive',顺时针还是逆时针的意思,这里看着更像逆时针呀
1.5:相邻轮廓点之间的最大距离