说明
hom_mat2d_reflect 算子将关于由两点(Px,Py)和(Qx,Qy)给出的轴的反射添加到齐次2d变换矩阵HomMat2D,并返回HomMat2DReflect中的结果矩阵。
可以利用hom_mat2d_reflect生成想要的镜像变换的仿射矩阵;
对图像的镜像操作
read_image (Image, 'printer_chip/printer_chip_01')
area_center (Image, Area, Row, Column)
hom_mat2d_identity (HomMat2DIdentity)
* 垂直镜像
hom_mat2d_reflect (HomMat2DIdentity, Row, 0, Row, 100, HomMat2DReflect)
affine_trans_image (Image, ImageAffineTrans, HomMat2DReflect,

最低0.47元/天 解锁文章
746

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



