查看: 15|回复: 0

halcon 轮廓操作 十字架生成

[复制链接]

255

主题

1

回帖

1300

积分

管理员

积分
1300
QQ
发表于 2025-7-5 09:57:13 | 显示全部楼层 |阅读模式
  1. *生成轮廓
  2. gen_circle_contour_xld (ROI_0, 178.205, 142.948, 96.3524, 0, 6.28318, 'positive', 1)


  3. gen_rectangle2_contour_xld (Rectangle, 300, 200, 100, 100.5, 20.5)

  4. *轮廓和区域的互转

  5. gen_region_contour_xld (Rectangle, Region, 'filled')

  6. gen_contour_region_xld (Region, Contours, 'border')

  7. *获取region的所有数据点
  8. get_region_points (Region, Rows, Columns)

  9. *获取xld的所有数据点
  10. get_contour_xld (Contours, Row, Col)


  11. *生成一个十字架显示
  12. gen_cross_contour_xld (Cross, Row, Col, 6, 0.785398)

  13. gen_cross_contour_xld (Cross1, Rows, Columns, 6, 0.785398)

  14. area_center (Region, Area, Row1, Column)





  15. gen_cross_contour_xld (Cross2, Row1, Column, 6, 0.785398)
复制代码


高级模式
B Color Image Link Quote Code Smilies

本版积分规则

关于我们

企业文化

人才招聘

常见问题

建议反馈

合作伙伴

商务合作

新闻媒体

产品服务

客户案例

联系我们

联系电话:14776878570(同VX号)

邮箱:14776878570@163.com(同VX号)

工作时间:周一至周六(早上8点至下午10点)

关注微信公众号

QQ|Archiver|手机版|小黑屋|鸿翔机器人

GMT+8, 2025-8-6 00:47 , Processed in 0.061468 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.