halcon常用函数1

1,read_image(image,'xxx')回车执行

文件是单引号

2,get_image_size(Image,width,weight)

获取图片大小

3,dev_close_window()

关窗口

4,dev_open_window()

open(0,0,Width,Weight,'black',windowHandle)

句柄是编号,开窗口

5,dev_display(Image)

显示图片

6,threshold(Image,Region,120,255)亮度120-255

左column右row

7,connection(Region,ConnectedRegion)

打散图片中离散的几个被threshold的部分(颜色变了

这样就可以删除其他部分了

8,select_shape(ConnectedRegion,selectedRegion,'area','and',8000,8500)

输入区域,输出区域,面积,?,最大,最小值

特征值检测

9,area_center(SelectedRegion,Area,Row,Column)

显示中心

10,gen_cross_contour_xla(Cross,Row,Column,6,0)

数字是size和角度

11,opening_circle(WirsFilled,Balls,15.5)

12,select_shape(?,?,'circularuity','and',0.85,1.0)

13,fill_up(SelectedRegions1,RegionFillup)

填充

14,reduce_domain(Image,RegionFillup,ImageReduced)

抠图

15,thereshold_sub_pix()

16,select_contour_xld

17,binary_threshold

18,dyn_threshold

局部

19,mean_image

  • 8
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值