#include<opencv2/core.hpp>#include<opencv2/imgcodecs.hpp>#include<opencv2/highgui.hpp>#include<opencv2/imgproc.hpp>#include<iostream>usingnamespace cv;usingnamespace std;voidPrintMs(constchar*text =""){staticlonglong last =0;longlong cur =getTickCount();if(last ==0){
last = cur;return;}longlong ms =0;
ms =((double)(cur - last)/getTickFrequency())*1000;if(*text !=0){printf("%s = %dms\n", text,ms);}
last =getTickCount();}intmain(int argc,char*argv[]){
Mat img =imread("1.png");
Mat rot;
Mat fl;
cv::rotate(img, rot, ROTATE_90_CLOCKWISE);
cv::flip(img, fl,1);namedWindow("rot");imshow("rot", rot);namedWindow("fl");imshow("fl", fl);waitKey(0);return0;}