基础操作之——生成一张背景图像
1.生成等间距点背景图像
Width := 800
Height := 600
Step := 20
GrayBackground := 230
GrayGrid := 120
Smoothing := 3
* Generate the squared paper.
gen_image_const (Image, 'byte', Width, Height)
scale_image (Image, ImageScaled, 1, GrayBackground)
gen_grid_region (RegionGrid, Step, Step, 'points', Width, Height)
paint_region (RegionGrid, ImageScaled, ImageResult, GrayGrid, 'fill')
gauss_filter (ImageResult, ImageSquaredPaper, Smoothing)
return ()

2.生成等间距网格背景图像
Width := 800
Height := 600
Step := 20
GrayBackground := 230
GrayGrid := 120
Smoothing := 3
* Generate the squared paper.
gen_image_const (Image, 'byte', Width, Height)
scale_image (Image, ImageScaled, 1, GrayBackground)
gen_grid_region (RegionGrid, Step, Step, 'lines', Width, Height)
paint_region (RegionGrid, ImageScaled, ImageResult, GrayGrid, 'fill')
gauss_filter (ImageResult, ImageSquaredPaper, Smoothing)
return ()

------------------------------------
承接
**视觉检测软件开发及调试
**工业软件开发
**上位机软件开发
wechat:luoran2024
qq:565934058
email:taoyuansu@qq.com
海量教育资源及影视资源下载
微信公众号:EFun科技
------------------------------------

浙公网安备 33010602011771号