****局部阈值检测表面划痕过程
*1.将原图进行均值化处理得到图2
*2.将图1和图2使用局部阈值算子进行处理dyn_threshold,得到突出的区域
*3.使用阈值分割和形态学和特征对缺陷进行提取
*官方案例surface_scratch.hdev
* 本程序显示了通过表面划痕的提取
* 局部阈值和形态学后处理
*
dev_update_off ()
dev_close_window ()
*
* Step 1: 获取图像
read_image (Image, 'surface_scratch')
get_image_size (Image, Width, Height)
dev_open_window_fit_image (Image, 0, 0, Width, Width, WindowID)
set_display_font (WindowID, 16, 'mono', 'true', 'false')
dev_set_draw ('margin')
dev_set_line_width (4)
dev_display (Image)
Message := 'This program shows the extraction of本程序显示的提取'
Mes