获取最小外接矩形的四个顶点
shape_trans(RegionClosingXM, RegionTransXM, 'rectangle2')
gen_contour_region_xld(RegionTransXM, Contours, 'border')
smallest_rectangle2_xld(Contours, Row1, Column1, Phi, Length1, Length2)
gen_rectangle2_contour_xld(Rectangle, Row1, Column1, Phi, Length1, Length2)
gen_polygons_xld (Rectangle, Polygons, 'ramer', 2)
get_polygon_xld (Polygons, RowsXM, ColumnsXM, Length, Phi)
gen_cross_contour_xld (Cross4, RowsXM, ColumnsXM, 60, Phi)
该文讨论了如何从图像处理的结果中获取最小外接矩形,并详细阐述了从RegionClosingXM和RegionTransXM开始,通过gen_contour_region_xld、smallest_rectangle2_xld等函数计算矩形的顶点和尺寸,然后利用gen_rectangle2_contour_xld生成矩形轮廓,进一步通过gen_polygons_xld和get_polygon_xld处理多边形,最后生成Cross4来表示矩形的四个顶点。
4458

被折叠的 条评论
为什么被折叠?



