read_image (Image, 'fabrik') 读取资源,各种格式的图片都可以读取
threshold (Image, Region, 120, 255) shape_trans (Region, RegionTrans, 'convex') 二值化后得到一些像素点 并用shape_trans转换为区域
reduce_domain (Image, RegionTrans, ImageReduced) 将原始图像根据给定的区域裁剪 并生成新的图像ImageReduced,图像大小并不会改变