*select_shape_proto算子实现对比两个区域的差异性
*distance_center',两个区域的中心距离
*distance_contour',两个区域的外部轮廓距离
*’covers‘:两个区域包含的部分
*overlaps_abs':两个区域重叠的部分
read_image (Image, 'fabrik')
dev_close_window ()
dev_open_window (0, 0, 512, 512, 'black', WindowID)
dev_set_color ('white')
dev_set_draw ('fill')
regiongrowing (Image, Regions, 1, 1, 3, 400)
select_obj (Regions, Pattern, 21)//白色背景
dev_clear_window ()
select_shape_proto (Regions, Pattern, SelectedRegions1, 'distance_center', 0, 200)
stop ()
dev_clear_window ()
select_shape_proto (Regions, Pattern, SelectedRegions2, 'distance_contour', 0, 10)
stop ()
dev_clear_window ()
count_obj (Regions, Number)
for i := 1 to Number by 1
select_obj (Regions, ObjectSelected, i)
select_shape_proto (ObjectSelected, Pattern, SelectedRegions3, 'covers', 0, 1)
endfor
select_shape_proto (Regions, Pattern, SelectedRegions3, 'covers', 0, 1)
*算子的特征详细解释
*select_shape_proto算子解析_WK9510的博客-CSDN博客