使用仿射变换进行左右镜像
hom_mat2d_identity (HomMat2DIdentity)
tuple_rad (90, Rad)
hom_mat2d_rotate (HomMat2DIdentity, Rad, Height/2, Width/2, HomMat2DIdentity)
* 0, Width/2, Height, Width/2 以图像中心垂直线进行镜像
hom_mat2d_reflect (HomMat2DIdentity, 0, Width/2, Height, Width/2, HomMat2DIdentity)
affine_trans_image (ImageMirror, ImageAffineTrans, HomMat2DIdentity, 'constant', 'false')
affine_trans_region (SortedRegions, RegionAffineTrans, HomMat2DIdentity, 'nearest_neighbor')


6981

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



