根据特征过滤区域和XLD
read_image(image, ‘fabrik’)
threshold(image, Region, 128, 255)
connection(Region, ConnectedRegions)
*过滤面积范围在[8000, 9000]进行过滤
dev_display(image)
select_shape(ConnectedRegions, SelectedRegions, ‘area’, ‘and’, 8000, 9000) //提取8000到9000面积大小的区域
dev_display(image)
dev_display(SelectedRegions)
*将要处理区域的形状和给定的形状进行比较,如果大于相似度则输出
select_shape_std (ConnectedRegions, SelectedRegions1, ‘rectangle1’, 90)//提取相似度大于90的矩形区域
dev_display(image)
dev_display(SelectedRegions1)
*过滤有一定关系的区域
select_shape_proto (ConnectedRegions, SelectedRegions, SelectedRegions2, ‘distance_center’, 0, 200)//在ConnectedRegions中提取和SelectedRegions区域边缘在0到200的区域
dev_display(image)
dev_display(SelectedRegions2)