dev_get_window (WindowHandle)
dev_set_color ('green')
* 1. 创建ROI draw_rake函数
Elements:=20
DetectHeight:=120
DetectWidth:=35
draw_rake (Regions, WindowHandle, Elements, DetectHeight, DetectWidth, Row1, Column1, Row2, Column2)
绘制过程中,需要沿着圆的边缘点击4个以上点坐标同时外加远离圆心或朝向圆心方向才可以绘制完成。
第4个以上点一定要点回原点去,否则会变成圆弧。
decompose3 (Image, Image1, Image2, Image3)
trans_from_rgb (Image1, Image2, Image3, ImageResult1, ImageResult2, ImageResult3, 'hsv')
scale_image_max (ImageResult2, GrayImage)
*gray_range_rect (GrayImage, ImageResult1, 41, 11)
mean_image (GrayImage, ImageMean, 111,11)
scale_image (ImageMean, ImageScaled,2, -300)
gray_closing_rect (ImageScaled, ImageClosing, 31 ,111)
fast_threshold (ImageClosing, Region, 30, 255, 10)