opencv-flip翻转
作者:互联网
#include<opencv2/opencv.hpp> #include<iostream> #include <vector> int main(int argc, char** argv) { cv::Mat src = cv::imread("D:/bb/tu/ma1.png"); cv::imshow("src", src); cv::Mat dst; cv::flip(src,dst,1); //翻转 // >0: 沿y-轴翻转, 0: 沿x-轴翻转, <0: x、y轴同时翻转 cv::imshow("y轴翻转", dst); cv::waitKey(0); return 0; }
标签:src,Mat,int,flip,opencv,include,cv,翻转 来源: https://www.cnblogs.com/liming19680104/p/15592896.html