* Index of all regions containing a given pixel
*
read_image (Image, 'fabrik')
dev_close_window ()
dev_open_window (0, 0, 512, 512, 'black', WindowID)
dev_set_color ('white')
dev_set_draw ('fill')
* Segment an image using regiongrowing
regiongrowing (Image, Regions, 1, 1, 3, 400)
Button := 1
dev_set_color ('red')
while (Button == 1)
* Click with the mouse on the region to be selected
* Quit
Halcon判断一个点是否在某个区域
最新推荐文章于 2025-02-15 20:31:06 发布