gen_region_line (RegionLines1, Row2, Column2, Row1, Column1)
angle_lx ( Row2, Column2, Row1, Column1, Angle)
mean_image (GrayImage, ImageMean, 19, 19)
dyn_threshold (GrayImage, ImageMean, RegionDynThresh, 5, 'dark')
rgb1_to_gray (Image, GrayImage)
*预处理------均值滤波
mean_image (GrayImage, ImageMean, 10, 10)
*配合均值滤波使用
dyn_threshold (GrayImage, ImageMean, RegionDynThresh, 3, 'dark')
closing_rectangle1 (RegionDynThresh, RegionClosing,1, 2.5)
connection (RegionClosing, ConnectedRegions)
mean_image dyn_threshold