halcon的XLD特征峰,轮廓特征

gen_circle (Circle, 200, 200, 100.5)
gen_ellipse_contour_xld (ContEllipse, 200, 200, 0, 100, 50, 0, 6.28318, ‘positive’, 1.5)
gen_circle_contour_xld (ContCircle, 200, 200, 100, 0, 6.28318, ‘positive’, 1)
*生成多边形
gen_polygons_xld (ContCircle, Polygons, ‘ramer’, 35)
*测试轮廓是否自相交
test_self_intersection_xld (ContCircle, ‘true’, DoesIntersect)
*获得轮廓的面积,中心和点集
area_center_xld (Polygons, Area, Row, Column, PointOrder)
*获得区域的中心和面积
area_center (Circle, Area1, Row1, Column1)
*根据点生成多变形轮廓
gen_contour_polygon_xld (Contour, [249,350,225,249], [299,299,349,299])
area_center_xld (Contour, Area2, Row2, Column2, PointOrder1)
test_self_intersection_xld (Contour, ‘true’, DoesIntersect1)
*以轮廓作为点云求中心he面积
area_center_points_xld (Contour, Area3, Row3, Column3)
*获得多边形的定点,边长和角度
get_polygon_xld (Polygons, Row4, Col, Length, Phi)

在这里插入图片描述
dev_open_window (0, 0, 512, 512, ‘black’, WindowHandle)

gen_circle_contour_xld (ContCircle1, 290, 260, 100, 0, 1, ‘positive’, 1)
query_contour_global_attribs_xld (ContCircle1, Attribs)
*计算拟合直线
regress_contours_xld (ContCircle1, RegressContours, ‘no’, 1)
query_contour_global_attribs_xld (RegressContours, Attribs1)
get_contour_global_attrib_xld (RegressContours, ‘regr_norm_row’, Attrib)
get_regress_params_xld (RegressContours, Length1, Nx, Ny, Dist, Fpx, Fpy, Lpx, Lpy, Mean, Deviation)

regress_contours_xld (RegressContours, RegressContours1, ‘drop’, 1)

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值