halcon获取多边形的顶点 , 获取任意形状的角点

关键算子:points_foerstner

测试用图:

halcon获取多边形的顶点 , 获取任意形状的角点_第1张图片

halcon代码:

read_image (Image, 'D:/Halcon-WorkSpaces/Test/Image/test12.png')
points_foerstner (Image, 1, 2, 3, 200, 0.1, 'gauss', 'false', \
RowJunctions, ColumnJunctions, CoRRJunctions, CoRCJunctions,\
CoCCJunctions, RowArea, ColumnArea, CoRRArea, CoRCArea, CoCCArea)

for Index := 0 to |RowJunctions|-1 by 1
    disp_cross (3600, RowJunctions[Index], ColumnJunctions[Index], 50, 0)
endfor

效果:

halcon获取多边形的顶点 , 获取任意形状的角点_第2张图片

 

 

你可能感兴趣的:(halcon)