在HDevelop中
dev_update_off()
read_image (Image, 'D:/bb/tu/1.jpg')
rgb1_to_gray(Image,Image1)
threshold (Image1, Region, 200, 230)
dilation_circle (Region, RegionDilation1, 1.5)
*圆形膨胀
erosion_circle (Region, RegionDilation, 1.5)
*圆形腐蚀
difference (RegionDilation1, RegionDilation, RegionDifference)
*两个区域差
get_image_size (Image1, Width, Height)
dev_open_window(10,10,Width, Height,'black',WindowHandle)
dev_display(Region)
dev_open_window(10,100,Width, Height,'black',WindowHandle1)
dev_display(RegionDifference)