dev_clear_window ()
dev_close_window ()
read_image (Image, 'tooth_rim')
get_image_size (Image, Width, Height)
dev_open_window (0, 0, Width, Height, 'black', WindowHandle)
dev_display (Image)
*阈值分割(灰度zhi)
threshold (Image, Region, 128, 255)
*区域连通
connection (Region, ConnectedRegions)
*利用形状特征选择区域。
select_shape (ConnectedRegions, SelectedRegions, 'area', 'and', 10, 9999)
*区域的面积和中心
area_center (SelectedRegions, Area, Row, Column)