halcon获取多边形的顶点 , 获取任意形状的角点
程序员文章站
2022-07-12 22:38:45
...
关键算子:points_foerstner
测试用图:
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
效果: