Matlab的精髓是矩阵运算(线性代数),halcon的精髓是Blob分析,本节主要将三个Blob分析中常用的阈值处理及其拓展,首先我们列举一下Blob的用途
1)定位
threshold
binary_threshold
dyn_threshold
auto_threshold
按照排列的顺序灵活度越来越高,运用难度越来越大,能够完成的定位效果也会越来越稳定
2)形态学分析
dilation_circle
dilation_rectangle1
erosion_circle
erosion_rectangle1
opening_cirlcle
opening_rectangle1
closing_circle
closing_rectangle1
smallest_rectangle2
select_shape
shape_trans
...
3)颜色分割
decompose3
trans_from_rgb
将RGB颜色空间转换到其他颜色空间,以突出某种颜色的对比度,比如“yiq”颜色空间对于黄色有很好的对比度
List of values: 'argyb', 'cielab', 'cielchab', 'cielchuv', 'cieluv', 'ciexyz', 'ciexyz2', 'ciexyz3', 'ciexyz4', 'hls', 'hsi', 'hsv', 'i1i2i3', 'ihs', 'lms', 'yiq', 'yuv'
reduce_domain (Image, Rectangle3, ImageReduced1)
decompose3 (ImageReduced1, Image1, Image2, Image3)
tr