读写region
read_image(Image, ‘fabrik’) //读取fabrik图像
read_region(Region, ‘ReadRegion.hobj’) //读取region文件
write_region(Region, ‘WriteRegion.hobj’) //保存region文件
读写XLD
read_image(Image, ‘fabrik’) //读取fabrik图像
edges_sub_pix(Image, Edges, ‘canny’, 1, 20, 40) //轮廓算子,用canny算法求出轮廓xld
write_contour_xld_dxf(Edges, ‘Coutour.dxf’) //将xld轮廓保存到Coutour.dxf文件中
read_contour_xld_dxf(Contours, ‘Coutour.dxf’, [], [], DxfStatus) //读取xld文件