*draw_rectangle2 (3600, Row, Column, Phi, Length1, Length2)
rgb1_to_gray (Image, GrayImage)
gen_rectangle2 (Rectangle, 60.518, 301.901, 0, 74.1184, 22.560)
reduce_domain (GrayImage,Rectangle , ImageReduced)
scale_image_max (ImageReduced, ImageScaleMax)
char_threshold (ImageScaleMax, Rectangle, Characters, 0, 100, Threshold)
connection (Characters, ConnectedRegions3)
gen_contour_region_xld (ConnectedRegions3, Out_Contours, 'border')
* fill_up (Region_glue, RegionFillUp)
* difference(RegionFillUp, Region_, Region_inside)
* gen_contour_region_xld (Region_inside, in_Contours, 'border')
*smooth_contours_xld (Contours, SmoothedContours, 35) //平滑XLD轮廓
* distance_contours_xld (Out_Contours, in_Contours, ContourOut, 'point_to_point')
get_contour_attrib_xld (Out_Contours, 'distance', Attrib)
* tuple_sort (Attrib, Sorted)
* distance_cc
get_contour_attrib_xld
最新推荐文章于 2023-11-13 11:03:13 发布