*检测思路 先对图像进行傅里叶变换 在频域内用一个滤波器对图像进行卷积 再傅里叶逆变换 得到图像的背景色
*用分解三原色后的蓝像素图减去背景图 得到更明显的带噪点的图
*腐蚀带噪点的图,去掉小的区域 得到大的折痕图 再检测图像的线和宽度
*detect-mura-defects-blur.hdev
*模糊图像中的壁面缺陷检测
* this example shows how to detect mura defects
* in blurred images
*
dev_close_window ()
*停止刷新PC 变量 窗口
dev_update_off ()
Path := 'lcd/mura_defects_blur_'
read_image (Image, Path + '01')
get_image_size (Image, Width, Height)
dev_open_window_fit_size (0, 0, Width, Height, 640, 480, WindowHandle)
*设置不依赖操作系统的字体
set_display_font (WindowHandle, 14, 'mono', 'true', 'false')
dev_set_draw ('margin')
dev_set_line_width (3)
dev_set_color ('red')
ScaleFactor