学习笔记
---
------
----------
-------------
--------------------
--------------------------------
---------------------------------------
*---2576*2576 1288
Length1:=1287.5
Length2:=1287.5
gen_rectangle2 (Rectangle2, Row5, Column5, 0, Length1, Length2)
reduce_domain (ImageRotate, Rectangle2, ImageReduced)
*屏蔽四个角定位线
gen_rectangle2_contour_xld (Rectangle2, Row5, Column5, 0, Length1, Length2)
get_contour_xld (Rectangle2, Row3, Col)
gen_cross_contour_xld (Cross, Row3, Col, 200, 0)
for Index6 := 0 to 3 by 1
Length13:=200
Length23:=200
gen_rectangle2 (Rectangle4, Row3[Index6], Col[Index6], 0, Length13, Length23)
color := [255,255,255] //白色
overpaint_region (ImageReduced, Rectangle4, color, 'fill') //填充成白色
endfor
crop_domain (ImageReduced, ImagePart)
write_image (ImagePart, 'bmp', 0, 'C:/Users/Administrator/Desktop/'+Index6 +'.bmp')