Opencv 旋转和镜像
cv::rotata(src,dst,type);
type:
-ROTATE_180;
-ROTATE_90_CLOCKWISE
-ROTATE_90_COUNTERCLOCKWISE;
#include<iostream>
#include<stdio.h>
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
using namespace cv;
using namespace std;
int main(int argc, char *argv)
{
Mat src1 = imread("lena.jpg");
Mat dst1;
Mat dst2;
cv::rotate(src1, dst1, ROTATE_90_CLOCKWISE);
cv::flip(src1, dst2, -1);
namedWindow("dst1");
moveWindow("dst1", 0, 0);
namedWindow("dst2");
moveWindow("dst2", 512,0 );
imshow("dst1",dst1);
imshow("dst2", dst2);
waitKey(0);
return 0;
}