12.分割区域

目录

1. 拆分相邻区域1

2. 拆分相邻区域2

3. 分体区域合并

4. 正反检测

5. 芯片除尘 


1. 拆分相邻区域1

* This programs demonstrates the use of basic morphology
* operators.
* The aim of the program is to detect each single pellet
* (bright particle on a darker background).
* 
dev_update_off ()
read_image (Image, 'pellets')
dev_close_window ()
get_image_size (Image, Width, Height)
dev_open_window (0, 0, Width, Height, 'black', WindowID)
dev_set_part (0, 0, Height - 1, Width - 1)
set_display_font (WindowID, 16, 'mono', 'true', 'false')
dev_set_colored (6)
dev_set_draw ('margin')
dev_set_line_width (3)
dev_display (Image)
disp_message (WindowID, 'Detect each si

你可能感兴趣的:(Halcon系统化学习,前端,图像处理,c#,人工智能,机器学习,计算机视觉)