![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
cv
MangoGZH
厦门大学
展开
-
cv:仿射变换 && 射影变换
仿射变换仿射变换为2维图像与2维图像之间的变换关系,变换前后,保持了图像的“平行性”、“平直性”。getAffineTransform()根据两幅图像中非共线的三对点,计算2x3的仿射变换矩阵函数原型C++:Mat getAffineTransform(InputArray src, InputArray dst)Mat getAffineTransform(const Point2f* src, const Point2f* dst)Parameters: src – 原图的三个固定顶点.原创 2020-06-15 15:06:44 · 501 阅读 · 0 评论 -
cv:常用函数
cvtColor()cvtColor()函数用于实现图像的色彩空间转换,一般包括四个参数,原型:void cvtColor(InputArray src, OutputArray dst, int code, int dstCn=0 );————————————————. InputArray src: 输入图像即要进行颜色空间变换的原图像,可以是Mat类. OutputArray dst: 输出图像即进行颜色空间变换后存储图像,也可以Mat类. int code: 转换的代码或标识. int原创 2020-06-10 16:15:17 · 1809 阅读 · 0 评论