read_image (Image0, 'F:/image/0.bmp')
draw_rectangle1(WindowHandle, Row1, Column1, Row2, Column2)
gen_rectangle1(Rectangle,Row1, Column1, Row2, Column2)
reduce_domain(Image0, Rectangle, ImageReduced)crop_domain(ImageReduced, ImagePart)
write_image (ImagePart, 'bmp', 0, 'F:/image/11.bmp')
注:crop_domain - 剪切定义的灰度值。
操作符crop_domain从输入图像中剪切矩形区域。此矩形是输入图像的域的最小的周围矩形。新定义域包括新图像的所有像素。新的图像矩阵具有矩形的大小。