各类交点顶点方式效果对比

原图

方式1,边缘提取,求取交点

read_image (Image123, 'E:/Halcon数据/资源图片/123.png')
gen_rectangle1 (ROI_0, 105.333, 219.074, 174.871, 305.759)
reduce_domain (Image123, ROI_0, ImageReduced)
edges_sub_pix (ImageReduced, Edges, 'canny', 1, 20, 120)
segment_contours_xld (Edges, ContoursSplit, 'lines_ellipses', 2, 10, 5)
fit_line_contour_xld (ContoursSplit, 'tukey', -1, 0, 5, 2, RowBegin, ColBegin, RowEnd, ColEnd, Nr, Nc, Dist)
intersection_lines (RowBegin[0], ColBegin[0], RowEnd[0], ColEnd[0], RowBegin[1], ColBegin[1], RowEnd[1], ColEnd[1], Row, Column, IsOverlapping)
gen_cross_contour_xld (Cross, Row, Column, 60, 0.785398)

方式2,points_foerstner

points_foerstner (ImageReduced, 1, 2, 3, 200, 0.3, 'gauss', 'false', RowJunctions, ColumnJunctions, CoRRJunctions, CoRCJunctions, CoCCJunctions, RowArea, ColumnArea, CoRRArea, CoRCArea, CoCCArea)
gen_cross_contour_xld (Cross_points_foerstner, RowJunctions, ColumnJunctions, 60, 0.785398)

方式3,points_harris

points_harris (ImageReduced, 0.2, 1, 0.1, 100, Row1, Column1)
gen_cross_contour_xld (Cross_points_harris, Row1, Column1, 60, 0.785398)

方式4,points_harris_binomial

points_harris_binomial (ImageReduced, 2, 2, 0.01, 100, 'on', Row2, Column2)
gen_cross_contour_xld (Crosspoints_harris_binomial, Row2, Column2, 6, 0.785398)

方式5,points_sojka

points_sojka (ImageReduced, 9, 2.5, 0.75, 30, 90, 0.5, 'false', Row3, Column3)
gen_cross_contour_xld (Cross_points_sojka , Row3, Column3, 6, 0.785398)

方式6,points_lepetit

points_lepetit (ImageReduced, 2, 1, 1, 1, 'interpolation', Row4, Column4)
gen_cross_contour_xld (Cross_points_lepetit, Row4, Column4, 6, 0.785398)

各点位对比

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值