频道栏目
首页 > 资讯 > 其他综合 > 正文

opencv基础-flip函数之实现图像翻转

18-07-20        来源:[db:作者]  
收藏   我要投稿

opencv基础-flip函数:实现图像翻转

flip函数原型

void flip(InputArray src, OutputArray dst, int flipCode);
flag的值
ROTATE_90_CLOCKWISE = 0, //!

完整代码

#include 
#include 
#include 
#include 
using namespace  std;
using namespace cv;
int main()
{
	const string dstName = "";
	Mat img = imread(dstName, 1);
	cout << img.rows << endl;
	Mat dst;
	flip(img, dst, 0);
	//namedWindow("test");
	imshow("name", dst);
	waitKey(0);
	system("pause");
	return 0;
}

涉及到的函数

Mat imread( const string& filename, int flags=1 );
void imshow(const string& winname, InputArray mat);
int waitKey(int delay = 0);
相关TAG标签
上一篇:IOS开发之UITableView索引条
下一篇:ubuntu虚拟机联网操作教程
相关文章
图文推荐

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训 | 举报中心

版权所有: 红黑联盟--致力于做实用的IT技术学习网站