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